Changelog in Linux kernel 6.12.63

 
9p: fix cache/debug options printing in v9fs_show_options [+ + +]
Author: Eric Sandeen <sandeen@redhat.com>
Date:   Tue Dec 2 16:30:53 2025 -0600

    9p: fix cache/debug options printing in v9fs_show_options
    
    [ Upstream commit f0445613314f474c1a0ec6fa8a5cd153a618f1b6 ]
    
    commit 4eb3117888a92 changed the cache= option to accept either string
    shortcuts or bitfield values. It also changed /proc/mounts to emit the
    option as the hexadecimal numeric value rather than the shortcut string.
    
    However, by printing "cache=%x" without the leading 0x, shortcuts such
    as "cache=loose" will emit "cache=f" and 'f' is not a string that is
    parseable by kstrtoint(), so remounting may fail if a remount with
    "cache=f" is attempted.
    
    debug=%x has had the same problem since options have been displayed in
    c4fac9100456 ("9p: Implement show_options")
    
    Fix these by adding the 0x prefix to the hexadecimal value shown in
    /proc/mounts.
    
    Fixes: 4eb3117888a92 ("fs/9p: Rework cache modes and add new options to Documentation")
    Signed-off-by: Eric Sandeen <sandeen@redhat.com>
    Message-ID: <54b93378-dcf1-4b04-922d-c8b4393da299@redhat.com>
    [Dominique: use %#x at Al Viro's suggestion, also handle debug]
    Tested-by: Remi Pommarel <repk@triplefau.lt>
    Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
accel/ivpu: Ensure rpm_runtime_put in case of engine reset/resume fail [+ + +]
Author: Karol Wachowski <karol.wachowski@linux.intel.com>
Date:   Tue Sep 16 10:48:09 2025 +0200

    accel/ivpu: Ensure rpm_runtime_put in case of engine reset/resume fail
    
    [ Upstream commit 9f6c63285737b141ca25a619add80a96111b8b96 ]
    
    Previously, aborting work could return early after engine reset or resume
    failure, skipping the necessary runtime_put cleanup leaving the device
    with incorrect reference count breaking runtime power management state.
    
    Replace early returns with goto statements to ensure runtime_put is always
    executed.
    
    Fixes: a47e36dc5d90 ("accel/ivpu: Trigger device recovery on engine reset/resume failure")
    Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
    Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
    Link: https://lore.kernel.org/r/20250916084809.850073-1-karol.wachowski@linux.intel.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

accel/ivpu: Fix DCT active percent format [+ + +]
Author: Karol Wachowski <karol.wachowski@linux.intel.com>
Date:   Wed Oct 1 12:43:22 2025 +0200

    accel/ivpu: Fix DCT active percent format
    
    [ Upstream commit aa1c2b073ad23847dd2e7bdc7d30009f34ed7f59 ]
    
    The pcode MAILBOX STATUS register PARAM2 field expects DCT active
    percent in U1.7 value format. Convert percentage value to this
    format before writing to the register.
    
    Fixes: a19bffb10c46 ("accel/ivpu: Implement DCT handling")
    Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
    Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
    Link: https://lore.kernel.org/r/20251001104322.1249896-1-karol.wachowski@linux.intel.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

accel/ivpu: Make function parameter names consistent [+ + +]
Author: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Date:   Fri Aug 8 13:10:14 2025 +0200

    accel/ivpu: Make function parameter names consistent
    
    [ Upstream commit cf87f93847dea607e8a35983cb006ef8493f8065 ]
    
    Make ivpu_hw_btrs_dct_set_status() and ivpu_fw_boot_params_setup()
    declaration and definition parameter names consistent.
    
    Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
    Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
    Link: https://lore.kernel.org/r/20250808111014.328607-1-jacek.lawrynowicz@linux.intel.com
    Stable-dep-of: aa1c2b073ad2 ("accel/ivpu: Fix DCT active percent format")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

accel/ivpu: Prevent runtime suspend during context abort work [+ + +]
Author: Andrzej Kacprowski <Andrzej.Kacprowski@intel.com>
Date:   Tue Feb 4 09:46:18 2025 +0100

    accel/ivpu: Prevent runtime suspend during context abort work
    
    [ Upstream commit 7806bad76ac397a767f0c369534133c71c73b157 ]
    
    Increment the runtime PM counter when entering
    ivpu_context_abort_work_fn() to prevent the device
    from suspending while the function is executing.
    
    Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
    Signed-off-by: Andrzej Kacprowski <Andrzej.Kacprowski@intel.com>
    Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20250204084622.2422544-3-jacek.lawrynowicz@linux.intel.com
    Stable-dep-of: 9f6c63285737 ("accel/ivpu: Ensure rpm_runtime_put in case of engine reset/resume fail")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
ACPI: processor_core: fix map_x2apic_id for amd-pstate on am4 [+ + +]
Author: René Rebe <rene@exactco.de>
Date:   Wed Nov 26 16:55:13 2025 +0100

    ACPI: processor_core: fix map_x2apic_id for amd-pstate on am4
    
    [ Upstream commit 17e7972979e147cc51d4a165e6b6b0f93273ca68 ]
    
    On all AMD AM4 systems I have seen, e.g ASUS X470-i, Pro WS X570 Ace
    and equivalent Gigabyte, amd-pstate does not initialize when the
    x2apic is enabled in the BIOS. Kernel debug messages include:
    
    [    0.315438] acpi LNXCPU:00: Failed to get CPU physical ID.
    [    0.354756] ACPI CPPC: No CPC descriptor for CPU:0
    [    0.714951] amd_pstate: the _CPC object is not present in SBIOS or ACPI disabled
    
    I tracked this down to map_x2apic_id() checking device_declaration
    passed in via the type argument of acpi_get_phys_id() via
    map_madt_entry() while map_lapic_id() does not.
    
    It appears these BIOSes use Processor statements for declaring the CPUs
    in the ACPI namespace instead of processor device objects (which should
    have been used). CPU declarations via Processor statements were
    deprecated in ACPI 6.0 that was released 10 years ago. They should not
    be used any more in any contemporary platform firmware.
    
    I tried to contact Asus support multiple times, but never received a
    reply nor did any BIOS update ever change this.
    
    Fix amd-pstate w/ x2apic on am4 by allowing map_x2apic_id() to work with
    CPUs declared via Processor statements for IDs less than 255, which is
    consistent with ACPI 5.0 that still allowed Processor statements to be
    used for declaring CPUs.
    
    Fixes: 7237d3de78ff ("x86, ACPI: add support for x2apic ACPI extensions")
    Signed-off-by: René Rebe <rene@exactco.de>
    [ rjw: Changelog edits ]
    Link: https://patch.msgid.link/20251126.165513.1373131139292726554.rene@exactco.de
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ACPI: property: Fix fwnode refcount leak in acpi_fwnode_graph_parse_endpoint() [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Tue Nov 11 15:50:00 2025 +0800

    ACPI: property: Fix fwnode refcount leak in acpi_fwnode_graph_parse_endpoint()
    
    [ Upstream commit 593ee49222a0d751062fd9a5e4a963ade4ec028a ]
    
    acpi_fwnode_graph_parse_endpoint() calls fwnode_get_parent() to obtain the
    parent fwnode but returns without calling fwnode_handle_put() on it. This
    potentially leads to a fwnode refcount leak and prevents the parent node
    from being released properly.
    
    Call fwnode_handle_put() on the parent fwnode before returning to prevent
    the leak from occurring.
    
    Fixes: 3b27d00e7b6d ("device property: Move fwnode graph ops to firmware specific locations")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
    [ rjw: Changelog edits ]
    Link: https://patch.msgid.link/20251111075000.1828-1-vulab@iscas.ac.cn
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
ALSA: dice: fix buffer overflow in detect_stream_formats() [+ + +]
Author: Junrui Luo <moonafterrain@outlook.com>
Date:   Fri Nov 28 12:06:31 2025 +0800

    ALSA: dice: fix buffer overflow in detect_stream_formats()
    
    commit 324f3e03e8a85931ce0880654e3c3eb38b0f0bba upstream.
    
    The function detect_stream_formats() reads the stream_count value directly
    from a FireWire device without validating it. This can lead to
    out-of-bounds writes when a malicious device provides a stream_count value
    greater than MAX_STREAMS.
    
    Fix by applying the same validation to both TX and RX stream counts in
    detect_stream_formats().
    
    Reported-by: Yuhao Jiang <danisjiang@gmail.com>
    Reported-by: Junrui Luo <moonafterrain@outlook.com>
    Fixes: 58579c056c1c ("ALSA: dice: use extended protocol to detect available stream formats")
    Cc: stable@vger.kernel.org
    Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
    Signed-off-by: Junrui Luo <moonafterrain@outlook.com>
    Link: https://patch.msgid.link/SYBPR01MB7881B043FC68B4C0DA40B73DAFDCA@SYBPR01MB7881.ausprd01.prod.outlook.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

ALSA: firewire-motu: add bounds check in put_user loop for DSP events [+ + +]
Author: Junrui Luo <moonafterrain@outlook.com>
Date:   Tue Dec 9 13:16:41 2025 +0800

    ALSA: firewire-motu: add bounds check in put_user loop for DSP events
    
    [ Upstream commit 298e753880b6ea99ac30df34959a7a03b0878eed ]
    
    In the DSP event handling code, a put_user() loop copies event data.
    When the user buffer size is not aligned to 4 bytes, it could overwrite
    beyond the buffer boundary.
    
    Fix by adding a bounds check before put_user().
    
    Suggested-by: Takashi Iwai <tiwai@suse.de>
    Fixes: 634ec0b2906e ("ALSA: firewire-motu: notify event for parameter change in register DSP model")
    Signed-off-by: Junrui Luo <moonafterrain@outlook.com>
    Link: https://patch.msgid.link/SYBPR01MB788112C72AF8A1C8C448B4B8AFA3A@SYBPR01MB7881.ausprd01.prod.outlook.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ALSA: firewire-motu: fix buffer overflow in hwdep read for DSP events [+ + +]
Author: Junrui Luo <moonafterrain@outlook.com>
Date:   Wed Dec 3 12:27:03 2025 +0800

    ALSA: firewire-motu: fix buffer overflow in hwdep read for DSP events
    
    [ Upstream commit 210d77cca3d0494ed30a5c628b20c1d95fa04fb1 ]
    
    The DSP event handling code in hwdep_read() could write more bytes to
    the user buffer than requested, when a user provides a buffer smaller
    than the event header size (8 bytes).
    
    Fix by using min_t() to clamp the copy size, This ensures we never copy
    more than the user requested.
    
    Reported-by: Yuhao Jiang <danisjiang@gmail.com>
    Reported-by: Junrui Luo <moonafterrain@outlook.com>
    Fixes: 634ec0b2906e ("ALSA: firewire-motu: notify event for parameter change in register DSP model")
    Signed-off-by: Junrui Luo <moonafterrain@outlook.com>
    Link: https://patch.msgid.link/SYBPR01MB78810656377E79E58350D951AFD9A@SYBPR01MB7881.ausprd01.prod.outlook.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ALSA: uapi: Fix typo in asound.h comment [+ + +]
Author: Andres J Rosa <andyrosa@gmail.com>
Date:   Wed Dec 3 10:25:01 2025 -0600

    ALSA: uapi: Fix typo in asound.h comment
    
    [ Upstream commit 9a97857db0c5655b8932f86b5d18bb959079b0ee ]
    
    Fix 'level-shit' to 'level-shift' in struct snd_cea_861_aud_if comment.
    
    Fixes: 7ba1c40b536e ("ALSA: Add definitions for CEA-861 Audio InfoFrames")
    Signed-off-by: Andres J Rosa <andyrosa@gmail.com>
    Link: https://patch.msgid.link/20251203162509.1822-1-andyrosa@gmail.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ALSA: wavefront: Fix integer overflow in sample size validation [+ + +]
Author: Junrui Luo <moonafterrain@outlook.com>
Date:   Thu Nov 6 10:49:46 2025 +0800

    ALSA: wavefront: Fix integer overflow in sample size validation
    
    commit 0c4a13ba88594fd4a27292853e736c6b4349823d upstream.
    
    The wavefront_send_sample() function has an integer overflow issue
    when validating sample size. The header->size field is u32 but gets
    cast to int for comparison with dev->freemem
    
    Fix by using unsigned comparison to avoid integer overflow.
    
    Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
    Cc: stable@vger.kernel.org
    Signed-off-by: Junrui Luo <moonafterrain@outlook.com>
    Link: https://patch.msgid.link/SYBPR01MB7881B47789D1B060CE8BF4C3AFC2A@SYBPR01MB7881.ausprd01.prod.outlook.com
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

 
arm64: dts: exynos: gs101: fix sysreg_apm reg property [+ + +]
Author: Peter Griffin <peter.griffin@linaro.org>
Date:   Mon Oct 13 21:51:34 2025 +0100

    arm64: dts: exynos: gs101: fix sysreg_apm reg property
    
    [ Upstream commit 4348c22a4f15dbef1314f1a353d7f053b24e9ace ]
    
    Both the start address and size are incorrect for the apm_sysreg DT
    node. Update to match the TRM (rather than how it was defined
    downstream).
    
    Fixes: ea89fdf24fd9 ("arm64: dts: exynos: google: Add initial Google gs101 SoC support")
    Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
    Reviewed-by: André Draszik <andre.draszik@linaro.org>
    Link: https://patch.msgid.link/20251013-automatic-clocks-v1-5-72851ee00300@linaro.org
    Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: freescale: imx8mp-venice-gw7905-2x: remove duplicate usdhc1 props [+ + +]
Author: Tim Harvey <tharvey@gateworks.com>
Date:   Thu Sep 18 08:44:45 2025 -0700

    arm64: dts: freescale: imx8mp-venice-gw7905-2x: remove duplicate usdhc1 props
    
    [ Upstream commit 8b7e58ab4a02601a0e86e9f9701d4612038d8b29 ]
    
    Remove the un-intended duplicate properties from usdhc1.
    
    Fixes: 0d5b288c2110e ("arm64: dts: freescale: Add imx8mp-venice-gw7905-2x")
    Signed-off-by: Tim Harvey <tharvey@gateworks.com>
    Reviewed-by: Peng Fan <peng.fan@nxp.com>
    Signed-off-by: Shawn Guo <shawnguo@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: imx8mm-venice-gw72xx: remove unused sdhc1 pinctrl [+ + +]
Author: Tim Harvey <tharvey@gateworks.com>
Date:   Thu Sep 18 08:44:49 2025 -0700

    arm64: dts: imx8mm-venice-gw72xx: remove unused sdhc1 pinctrl
    
    [ Upstream commit d949b8d12d6e8fa119bca10d3157cd42e810f6f7 ]
    
    The SDHC1 interface is not used on the imx8mm-venice-gw72xx. Remove the
    unused pinctrl_usdhc1 iomux node.
    
    Fixes: 6f30b27c5ef5 ("arm64: dts: imx8mm: Add Gateworks i.MX 8M Mini Development Kits")
    Signed-off-by: Tim Harvey <tharvey@gateworks.com>
    Reviewed-by: Peng Fan <peng.fan@nxp.com>
    Signed-off-by: Shawn Guo <shawnguo@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: imx8mp-venice-gw702x: remove off-board sdhc1 [+ + +]
Author: Tim Harvey <tharvey@gateworks.com>
Date:   Thu Sep 18 08:44:51 2025 -0700

    arm64: dts: imx8mp-venice-gw702x: remove off-board sdhc1
    
    [ Upstream commit 9db04b310ef99b546e4240c55842e81b06b78579 ]
    
    SDHC1 on the GW702x SOM routes to a connector for use on a baseboard
    and as such are defined in the baseboard device-trees.
    
    Remove it from the gw702x SOM device-tree.
    
    Fixes: 0d5b288c2110 ("arm64: dts: freescale: Add imx8mp-venice-gw7905-2x")
    Signed-off-by: Tim Harvey <tharvey@gateworks.com>
    Reviewed-by: Peng Fan <peng.fan@nxp.com>
    Signed-off-by: Shawn Guo <shawnguo@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: imx8mp-venice-gw702x: remove off-board uart [+ + +]
Author: Tim Harvey <tharvey@gateworks.com>
Date:   Thu Sep 18 08:44:50 2025 -0700

    arm64: dts: imx8mp-venice-gw702x: remove off-board uart
    
    [ Upstream commit effe98060f70eb96e142f656e750d6af275ceac3 ]
    
    UART1 and UART3 go to a connector for use on a baseboard and as such are
    defined in the baseboard device-trees. Remove them from the gw702x SOM
    device-tree.
    
    Fixes: 0d5b288c2110 ("arm64: dts: freescale: Add imx8mp-venice-gw7905-2x")
    Signed-off-by: Tim Harvey <tharvey@gateworks.com>
    Reviewed-by: Peng Fan <peng.fan@nxp.com>
    Signed-off-by: Shawn Guo <shawnguo@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: qcom: msm8996: add interconnect paths to USB2 controller [+ + +]
Author: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Date:   Thu Oct 2 11:53:01 2025 +0300

    arm64: dts: qcom: msm8996: add interconnect paths to USB2 controller
    
    [ Upstream commit 242f7558e7bf54cb63c06506f7b0630dd67d45a4 ]
    
    Add the missing interconnects to the USB2 host. The Fixes tag points to
    the commit which broke probing of the USB host on that platform.
    
    Fixes: 130733a10079 ("interconnect: qcom: msm8996: Promote to core_initcall")
    Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Acked-by: Bjorn Andersson <andersson@kernel.org>
    Link: https://lore.kernel.org/r/20251002-fix-msm8996-icc-v1-2-a36a05d1f869@oss.qualcomm.com
    Signed-off-by: Georgi Djakov <djakov@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: qcom: qcm6490-shift-otter: Add missing reserved-memory [+ + +]
Author: Alexander Martinz <amartinz@shiftphones.com>
Date:   Thu Oct 9 11:06:33 2025 +0200

    arm64: dts: qcom: qcm6490-shift-otter: Add missing reserved-memory
    
    [ Upstream commit f404fdcb50021fdad6bc734d69468cc777901a80 ]
    
    It seems we also need to reserve a region of 81 MiB called "removed_mem"
    otherwise we can easily hit memory errors with higher RAM usage.
    
    Fixes: 249666e34c24 ("arm64: dts: qcom: add QCM6490 SHIFTphone 8")
    Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
    Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    Link: https://lore.kernel.org/r/20251009-otter-further-bringup-v2-3-5bb2f4a02cea@fairphone.com
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: qcom: sdm845-oneplus: Correct gpio used for slider [+ + +]
Author: Gergo Koteles <soyer@irl.hu>
Date:   Sat Sep 27 13:20:28 2025 +0200

    arm64: dts: qcom: sdm845-oneplus: Correct gpio used for slider
    
    [ Upstream commit d7ec7d34237498fab7a6afed8da4b7139b0e387c ]
    
    The previous GPIO numbers were wrong. Update them to the correct
    ones and fix the label.
    
    Fixes: 288ef8a42612 ("arm64: dts: sdm845: add oneplus6/6t devices")
    Signed-off-by: Gergo Koteles <soyer@irl.hu>
    Signed-off-by: David Heidelberg <david@ixit.cz>
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Link: https://lore.kernel.org/r/20250927-slider-correct-v1-1-fb8cc7fdcedf@ixit.cz
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: qcom: sm8650: set ufs as dma coherent [+ + +]
Author: Neil Armstrong <neil.armstrong@linaro.org>
Date:   Tue Oct 7 20:53:44 2025 +0200

    arm64: dts: qcom: sm8650: set ufs as dma coherent
    
    [ Upstream commit c2703c90161b45bca5b65f362adbae02ed71fcc1 ]
    
    The UFS device is ovbiously dma coherent like the other IOMMU devices
    like usb, mmc, ... let's fix this by adding the flag.
    
    To be sure an extensive test has been performed to be sure it's
    safe, as downstream uses this flag for UFS as well.
    
    As an experiment, I checked how the dma-coherent could impact
    the UFS bandwidth, and it happens the max bandwidth on cached
    write is slighly highter (up to 10%) while using less cpu time
    since cache sync/flush is skipped.
    
    Fixes: 10e024671295 ("arm64: dts: qcom: sm8650: add interconnect dependent device nodes")
    Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
    Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
    Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    Link: https://lore.kernel.org/r/20251007-topic-sm8650-upstream-ufs-dma-coherent-v1-1-f3cfeaee04ce@linaro.org
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: qcom: x1e80100: Add missing quirk for HS only USB controller [+ + +]
Author: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Date:   Fri Oct 24 16:20:18 2025 +0530

    arm64: dts: qcom: x1e80100: Add missing quirk for HS only USB controller
    
    [ Upstream commit 6b3e8a5d6c88609d9ce93789524f818cca0aa485 ]
    
    The PIPE clock is provided by the USB3 PHY, which is predictably not
    connected to the HS-only controller. Add "qcom,select-utmi-as-pipe-clk"
    quirk to  HS only USB controller to disable pipe clock requirement.
    
    Fixes: 4af46b7bd66f ("arm64: dts: qcom: x1e80100: Add USB nodes")
    Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
    Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
    Link: https://lore.kernel.org/r/20251024105019.2220832-2-krishna.kurapati@oss.qualcomm.com
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: qcom: x1e80100: Fix compile warnings for USB HS controller [+ + +]
Author: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Date:   Sun Oct 19 17:26:30 2025 +0530

    arm64: dts: qcom: x1e80100: Fix compile warnings for USB HS controller
    
    [ Upstream commit 0dab10c38282e6ef87ef88efb99d4106cce7ed33 ]
    
    With W=1, the following error comes up:
    
    Warning (graph_child_address): /soc@0/usb@a2f8800/usb@a200000/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
    
    This could be since the controller is only HS capable and only one port
    node is added.
    
    Fixes: 4af46b7bd66f ("arm64: dts: qcom: x1e80100: Add USB nodes")
    Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    Link: https://lore.kernel.org/r/20251019115630.2222720-1-krishna.kurapati@oss.qualcomm.com
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: rockchip: Add eeprom vcc-supply for Radxa ROCK 3C [+ + +]
Author: FUKAUMI Naoki <naoki@radxa.com>
Date:   Wed Nov 12 03:51:31 2025 +0000

    arm64: dts: rockchip: Add eeprom vcc-supply for Radxa ROCK 3C
    
    [ Upstream commit 260316d35cf8f8606c5ed7a349cc92e1e71d8150 ]
    
    The VCC supply for the BL24C16 EEPROM chip found on Radxa ROCK 3C is
    vcca1v8_pmu. [1] Describe this supply.
    
    [1] https://dl.radxa.com/rock3/docs/hw/3c/v1400/radxa_rock_3c_v1400_schematic.pdf p.13
    
    Fixes: ee219017ddb50 ("arm64: dts: rockchip: Add Radxa ROCK 3C")
    Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
    Link: https://patch.msgid.link/20251112035133.28753-4-naoki@radxa.com
    Signed-off-by: Heiko Stuebner <heiko@sntech.de>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: rockchip: Add eeprom vcc-supply for Radxa ROCK 5A [+ + +]
Author: FUKAUMI Naoki <naoki@radxa.com>
Date:   Wed Nov 12 03:51:30 2025 +0000

    arm64: dts: rockchip: Add eeprom vcc-supply for Radxa ROCK 5A
    
    [ Upstream commit 3069ff1930aa71e125874c780ffaa6caeda5800a ]
    
    The VCC supply for the BL24C16 EEPROM chip found on Radxa ROCK 5A is
    vcc_3v3_pmu, which is routed to vcc_3v3_s3 via a zero-ohm resistor. [1]
    Describe this supply.
    
    [1] https://dl.radxa.com/rock5/5a/docs/hw/radxa_rock5a_V1.1_sch.pdf p.4, p.19
    
    Fixes: 89c880808cff8 ("arm64: dts: rockchip: add I2C EEPROM to rock-5a")
    Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
    Link: https://patch.msgid.link/20251112035133.28753-3-naoki@radxa.com
    Signed-off-by: Heiko Stuebner <heiko@sntech.de>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: rockchip: Move the EEPROM to correct I2C bus on Radxa ROCK 5A [+ + +]
Author: FUKAUMI Naoki <naoki@radxa.com>
Date:   Wed Nov 12 03:51:29 2025 +0000

    arm64: dts: rockchip: Move the EEPROM to correct I2C bus on Radxa ROCK 5A
    
    [ Upstream commit 92e6e0b0e595afdda6296c760551ad3ffe9d5231 ]
    
    The BL24C16 EEPROM chip found on Radxa ROCK 5A is connected to the
    i2c0 bus, [1] so move the eeprom node from the i2c2 bus to the i2c0
    bus.
    
    [1] Link: https://dl.radxa.com/rock5/5a/docs/hw/radxa_rock5a_V1.1_sch.pdf p.19
    
    Fixes: 89c880808cff8 ("arm64: dts: rockchip: add I2C EEPROM to rock-5a")
    Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
    Link: https://patch.msgid.link/20251112035133.28753-2-naoki@radxa.com
    Signed-off-by: Heiko Stuebner <heiko@sntech.de>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

arm64: dts: ti: k3-am62p: Fix memory ranges for GPU [+ + +]
Author: Randolph Sapp <rs@ti.com>
Date:   Fri Sep 19 14:33:42 2025 -0500

    arm64: dts: ti: k3-am62p: Fix memory ranges for GPU
    
    [ Upstream commit 76546090b1726118cd6fb3db7159fc2a3fdda8a0 ]
    
    Update the memory region listed in the k3-am62p.dtsi for the BXS-4-64
    GPU to match the Main Memory Map described in the TRM [1].
    
    [1] https://www.ti.com/lit/ug/spruj83b/spruj83b.pdf
    
    Fixes: 29075cc09f43 ("arm64: dts: ti: Introduce AM62P5 family of SoCs")
    Signed-off-by: Randolph Sapp <rs@ti.com>
    Reviewed-by: Michael Walle <mwalle@kernel.org>
    Link: https://patch.msgid.link/20250919193341.707660-2-rs@ti.com
    Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
ARM: 9464/1: fix input-only operand modification in load_unaligned_zeropad() [+ + +]
Author: Liyuan Pang <pangliyuan1@huawei.com>
Date:   Tue Dec 9 03:19:45 2025 +0100

    ARM: 9464/1: fix input-only operand modification in load_unaligned_zeropad()
    
    [ Upstream commit edb924a7211c9aa7a4a415e03caee4d875e46b8e ]
    
    In the inline assembly inside load_unaligned_zeropad(), the "addr" is
    constrained as input-only operand. The compiler assumes that on exit
    from the asm statement these operands contain the same values as they
    had before executing the statement, but when kernel page fault happened, the assembly fixup code "bic %2 %2, #0x3" modify the value of "addr", which may lead to an unexpected behavior.
    
    Use a temporary variable "tmp" to handle it, instead of modifying the
    input-only operand, just like what arm64's load_unaligned_zeropad()
    does.
    
    Fixes: b9a50f74905a ("ARM: 7450/1: dcache: select DCACHE_WORD_ACCESS for little-endian ARMv6+ CPUs")
    Co-developed-by: Xie Yuanbin <xieyuanbin1@huawei.com>
    Signed-off-by: Xie Yuanbin <xieyuanbin1@huawei.com>
    Signed-off-by: Liyuan Pang <pangliyuan1@huawei.com>
    Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ARM: dts: am335x-netcom-plus-2xx: add missing GPIO labels [+ + +]
Author: Yegor Yefremov <yegorslists@googlemail.com>
Date:   Tue Oct 7 12:38:51 2025 +0200

    ARM: dts: am335x-netcom-plus-2xx: add missing GPIO labels
    
    [ Upstream commit d0c4b1723c419a18cb434903c7754954ecb51d35 ]
    
    Fixes: 8e9d75fd2ec2 ("ARM: dts: am335x-netcom: add GPIO names for NetCom Plus 2-port devices")
    
    Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
    Link: https://lore.kernel.org/r/20251007103851.3765678-1-yegorslists@googlemail.com
    Signed-off-by: Kevin Hilman <khilman@baylibre.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ARM: dts: omap3: beagle-xm: Correct obsolete TWL4030 power compatible [+ + +]
Author: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
Date:   Sun Sep 14 21:25:15 2025 +0200

    ARM: dts: omap3: beagle-xm: Correct obsolete TWL4030 power compatible
    
    [ Upstream commit f7f3bc18300a230e0f1bfb17fc8889435c1e47f5 ]
    
    The "ti,twl4030-power-beagleboard-xm" compatible string is obsolete and
    is not supported by any in-kernel driver. Currently, the kernel falls
    back to the second entry, "ti,twl4030-power-idle-osc-off", to bind a
    driver to this node.
    
    Make this fallback explicit by removing the obsolete board-specific
    compatible. This preserves the existing functionality while making the
    DTS compliant with the new, stricter 'ti,twl.yaml' binding.
    
    Fixes: 9188883fd66e9 ("ARM: dts: Enable twl4030 off-idle configuration for selected omaps")
    Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
    Link: https://lore.kernel.org/r/20250914192516.164629-3-jihed.chaibi.dev@gmail.com
    Signed-off-by: Kevin Hilman <khilman@baylibre.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ARM: dts: omap3: n900: Correct obsolete TWL4030 power compatible [+ + +]
Author: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
Date:   Sun Sep 14 21:25:16 2025 +0200

    ARM: dts: omap3: n900: Correct obsolete TWL4030 power compatible
    
    [ Upstream commit 3862123e9b56663c7a3e4a308e6e65bffe44f646 ]
    
    The "ti,twl4030-power-n900" compatible string is obsolete and is not
    supported by any in-kernel driver. Currently, the kernel falls back to
    the second entry, "ti,twl4030-power-idle-osc-off", to bind a driver to
    this node.
    
    Make this fallback explicit by removing the obsolete board-specific
    compatible. This preserves the existing functionality while making the
    DTS compliant with the new, stricter 'ti,twl.yaml' binding.
    
    Fixes: daebabd578647 ("mfd: twl4030-power: Fix PM idle pin configuration to not conflict with regulators")
    Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
    Link: https://lore.kernel.org/r/20250914192516.164629-4-jihed.chaibi.dev@gmail.com
    Signed-off-by: Kevin Hilman <khilman@baylibre.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ARM: dts: renesas: gose: Remove superfluous port property [+ + +]
Author: Wolfram Sang <wsa+renesas@sang-engineering.com>
Date:   Mon Sep 29 11:36:02 2025 +0200

    ARM: dts: renesas: gose: Remove superfluous port property
    
    [ Upstream commit 00df14f34615630f92f97c9d6790bd9d25c4242d ]
    
    'bus-width' is defined for the corresponding vin input port already.
    No need to declare it in the output port again. Fixes:
    
        arch/arm/boot/dts/renesas/r8a7793-gose.dtb: composite-in@20 (adi,adv7180cp): ports:port@3:endpoint: Unevaluated properties are not allowed ('bus-width' was unexpected)
        from schema $id: http://devicetree.org/schemas/media/i2c/adi,adv7180.yaml#
    
    Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Link: https://patch.msgid.link/20250929093616.17679-2-wsa+renesas@sang-engineering.com
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ARM: dts: renesas: r9a06g032-rzn1d400-db: Drop invalid #cells properties [+ + +]
Author: Wolfram Sang <wsa+renesas@sang-engineering.com>
Date:   Tue Oct 7 12:46:25 2025 +0200

    ARM: dts: renesas: r9a06g032-rzn1d400-db: Drop invalid #cells properties
    
    [ Upstream commit ca7fffb6e92a7c93604ea2bae0e1c89b20750937 ]
    
    The 'ethernet-ports' node in the SoC DTSI handles them already. Fixes:
    
        arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dtb: switch@44050000 (renesas,r9a06g032-a5psw): Unevaluated properties are not allowed ('#address-cells', '#size-cells' were unexpected)
                from schema $id: http://devicetree.org/schemas/net/dsa/renesas,rzn1-a5psw.yaml#
    
    Fixes: 5b6d7c3c5861ad4a ("ARM: dts: r9a06g032-rzn1d400-db: Add switch description")
    Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Link: https://patch.msgid.link/20251007104624.19786-2-wsa+renesas@sang-engineering.com
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ARM: dts: samsung: exynos4210-i9100: turn off SDIO WLAN chip during system suspend [+ + +]
Author: Marek Szyprowski <m.szyprowski@samsung.com>
Date:   Wed Nov 26 11:26:16 2025 +0100

    ARM: dts: samsung: exynos4210-i9100: turn off SDIO WLAN chip during system suspend
    
    [ Upstream commit 863d69923bdb6f414d0a3f504f1dfaeacbc00b09 ]
    
    Commit 8c3170628a9c ("wifi: brcmfmac: keep power during suspend if board
    requires it") changed default behavior of the BRCMFMAC driver, which now
    keeps SDIO card powered during system suspend to enable optional support
    for WOWL. This feature is not supported by the legacy Exynos4 based
    boards and leads to WLAN disfunction after system suspend/resume cycle.
    Fix this by annotating SDIO host used by WLAN chip with
    'cap-power-off-card' property, which should have been there from the
    beginning.
    
    Fixes: 8620cc2f99b7 ("ARM: dts: exynos: Add devicetree file for the Galaxy S2")
    Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    Link: https://patch.msgid.link/20251126102618.3103517-3-m.szyprowski@samsung.com
    Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ARM: dts: samsung: exynos4210-trats: turn off SDIO WLAN chip during system suspend [+ + +]
Author: Marek Szyprowski <m.szyprowski@samsung.com>
Date:   Wed Nov 26 11:26:17 2025 +0100

    ARM: dts: samsung: exynos4210-trats: turn off SDIO WLAN chip during system suspend
    
    [ Upstream commit 97cc9c346b2c9cde075b9420fc172137d2427711 ]
    
    Commit 8c3170628a9c ("wifi: brcmfmac: keep power during suspend if board
    requires it") changed default behavior of the BRCMFMAC driver, which now
    keeps SDIO card powered during system suspend to enable optional support
    for WOWL. This feature is not supported by the legacy Exynos4 based
    boards and leads to WLAN disfunction after system suspend/resume cycle.
    Fix this by annotating SDIO host used by WLAN chip with
    'cap-power-off-card' property, which should have been there from the
    beginning.
    
    Fixes: a19f6efc01df ("ARM: dts: exynos: Enable WLAN support for the Trats board")
    Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    Link: https://patch.msgid.link/20251126102618.3103517-4-m.szyprowski@samsung.com
    Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ARM: dts: samsung: exynos4412-midas: turn off SDIO WLAN chip during system suspend [+ + +]
Author: Marek Szyprowski <m.szyprowski@samsung.com>
Date:   Wed Nov 26 11:26:18 2025 +0100

    ARM: dts: samsung: exynos4412-midas: turn off SDIO WLAN chip during system suspend
    
    [ Upstream commit 2ff147fdfa99b8cbb8c2833e685fde7c42580ae6 ]
    
    Commit 8c3170628a9c ("wifi: brcmfmac: keep power during suspend if board
    requires it") changed default behavior of the BRCMFMAC driver, which now
    keeps SDIO card powered during system suspend to enable optional support
    for WOWL. This feature is not supported by the legacy Exynos4 based
    boards and leads to WLAN disfunction after system suspend/resume cycle.
    Fix this by annotating SDIO host used by WLAN chip with
    'cap-power-off-card' property, which should have been there from the
    beginning.
    
    Fixes: f77cbb9a3e5d ("ARM: dts: exynos: Add bcm4334 device node to Trats2")
    Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    Link: https://patch.msgid.link/20251126102618.3103517-5-m.szyprowski@samsung.com
    Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ARM: dts: samsung: universal_c210: turn off SDIO WLAN chip during system suspend [+ + +]
Author: Marek Szyprowski <m.szyprowski@samsung.com>
Date:   Wed Nov 26 11:26:15 2025 +0100

    ARM: dts: samsung: universal_c210: turn off SDIO WLAN chip during system suspend
    
    [ Upstream commit 97aee67e2406ea381408915e606c5f86448f3949 ]
    
    Commit 8c3170628a9c ("wifi: brcmfmac: keep power during suspend if board
    requires it") changed default behavior of the BRCMFMAC driver, which now
    keeps SDIO card powered during system suspend to enable optional support
    for WOWL. This feature is not supported by the legacy Exynos4 based
    boards and leads to WLAN disfunction after system suspend/resume cycle.
    Fix this by annotating SDIO host used by WLAN chip with
    'cap-power-off-card' property, which should have been there from the
    beginning.
    
    Fixes: f1b0ffaa686f ("ARM: dts: exynos: Enable WLAN support for the UniversalC210 board")
    Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    Link: https://patch.msgid.link/20251126102618.3103517-2-m.szyprowski@samsung.com
    Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ARM: dts: stm32: stm32mp157c-phycore: Fix STMPE811 touchscreen node properties [+ + +]
Author: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
Date:   Tue Sep 16 00:46:11 2025 +0200

    ARM: dts: stm32: stm32mp157c-phycore: Fix STMPE811 touchscreen node properties
    
    [ Upstream commit e40b061cd379f4897e705d17cf1b4572ad0f3963 ]
    
    Move st,adc-freq, st,mod-12b, st,ref-sel, and st,sample-time properties
    from the touchscreen subnode to the parent touch@44 node. These properties
    are defined in the st,stmpe.yaml schema for the parent node, not the
    touchscreen subnode, resolving the validation error about unevaluated
    properties.
    
    Fixes: 27538a18a4fcc ("ARM: dts: stm32: add STM32MP1-based Phytec SoM")
    Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
    Link: https://lore.kernel.org/r/20250915224611.169980-1-jihed.chaibi.dev@gmail.com
    Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
ASoC: ak4458: Disable regulator when error happens [+ + +]
Author: Shengjiu Wang <shengjiu.wang@nxp.com>
Date:   Wed Dec 3 18:05:28 2025 +0800

    ASoC: ak4458: Disable regulator when error happens
    
    [ Upstream commit ae585fabb9713a43e358cf606451386757225c95 ]
    
    Disable regulator in runtime resume when error happens to balance
    the reference count of regulator.
    
    Fixes: 7e3096e8f823 ("ASoC: ak4458: Add regulator support")
    Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
    Link: https://patch.msgid.link/20251203100529.3841203-2-shengjiu.wang@nxp.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ASoC: ak5558: Disable regulator when error happens [+ + +]
Author: Shengjiu Wang <shengjiu.wang@nxp.com>
Date:   Wed Dec 3 18:05:29 2025 +0800

    ASoC: ak5558: Disable regulator when error happens
    
    [ Upstream commit 1f8f726a2a29c28f65b30880335a1610c5e63594 ]
    
    Disable regulator in runtime resume when error happens to balance
    the reference count of regulator.
    
    Fixes: 2ff6d5a108c6 ("ASoC: ak5558: Add regulator support")
    Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
    Link: https://patch.msgid.link/20251203100529.3841203-3-shengjiu.wang@nxp.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ASoC: bcm: bcm63xx-pcm-whistler: Check return value of of_dma_configure() [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Tue Dec 2 18:16:42 2025 +0800

    ASoC: bcm: bcm63xx-pcm-whistler: Check return value of of_dma_configure()
    
    [ Upstream commit 0ebbd45c33d0049ebf5a22c1434567f0c420b333 ]
    
    bcm63xx_soc_pcm_new() does not check the return value of
    of_dma_configure(), which may fail with -EPROBE_DEFER or
    other errors, allowing PCM setup to continue with incomplete
    DMA configuration.
    
    Add error checking for of_dma_configure() and return on failure.
    
    Fixes: 88eb404ccc3e ("ASoC: brcm: Add DSL/PON SoC audio driver")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Link: https://patch.msgid.link/20251202101642.492-1-vulab@iscas.ac.cn
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ASoC: codecs: nau8325: Silence uninitialized variables warnings [+ + +]
Author: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Date:   Wed Dec 3 15:06:12 2025 +0100

    ASoC: codecs: nau8325: Silence uninitialized variables warnings
    
    commit 2c7e5e17c05f1d5e10e63e1baff2b362cd08dcd6 upstream.
    
    clang W=1 builds warn:
    
      nau8325.c:430:13: error: variable 'n2_max' is uninitialized when used here [-Werror,-Wuninitialized]
    
    which are false positive, because the variables will be always
    initialized when used (guarded by mclk_max!=0 check).  However
    initializing them upfront makes the code more obvious and easier, plus
    it silences the warning.
    
    Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
    Link: https://patch.msgid.link/20251203140611.87191-2-krzysztof.kozlowski@oss.qualcomm.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

ASoC: fsl_xcvr: clear the channel status control memory [+ + +]
Author: Shengjiu Wang <shengjiu.wang@nxp.com>
Date:   Wed Nov 26 14:45:09 2025 +0800

    ASoC: fsl_xcvr: clear the channel status control memory
    
    [ Upstream commit 73b97d46dde64fa184d47865d4a532d818c3a007 ]
    
    memset_io() writes memory byte by byte with __raw_writeb() on the arm
    platform if the size is word. but XCVR data RAM memory can't be accessed
    with byte address, so with memset_io() the channel status control memory
    is not really cleared, use writel_relaxed() instead.
    
    Fixes: 28564486866f ("ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver")
    Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
    Link: https://patch.msgid.link/20251126064509.1900974-1-shengjiu.wang@nxp.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ASoC: Intel: catpt: Fix error path in hw_params() [+ + +]
Author: Cezary Rojewski <cezary.rojewski@intel.com>
Date:   Wed Nov 26 10:55:20 2025 +0100

    ASoC: Intel: catpt: Fix error path in hw_params()
    
    [ Upstream commit 86a5b621be658fc8fe594ca6db317d64de30cce1 ]
    
    Do not leave any resources hanging on the DSP side if
    applying user settings fails.
    
    Fixes: 768a3a3b327d ("ASoC: Intel: catpt: Optimize applying user settings")
    Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
    Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Link: https://patch.msgid.link/20251126095523.3925364-4-cezary.rojewski@intel.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ASoC: nau8325: add missing build config [+ + +]
Author: Jaroslav Kysela <perex@perex.cz>
Date:   Wed Nov 26 10:16:35 2025 +0100

    ASoC: nau8325: add missing build config
    
    [ Upstream commit cd41d3420ef658b2ca902d7677536ec8e25b610a ]
    
    This configuration was missing from the initial commit.
    
    Found by Jiri Benc <jbenc@redhat.com>
    
    Fixes: c0a3873b9938 ("ASoC: nau8325: new driver")
    Cc: Seven Lee <wtli@nuvoton.com>
    Signed-off-by: Jaroslav Kysela <perex@perex.cz>
    Link: https://patch.msgid.link/20251126091759.2490019-3-perex@perex.cz
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ASoC: nau8325: use simple i2c probe function [+ + +]
Author: Jaroslav Kysela <perex@perex.cz>
Date:   Wed Nov 26 10:16:34 2025 +0100

    ASoC: nau8325: use simple i2c probe function
    
    [ Upstream commit b4d072c98e47c562834f2a050ca98a1c709ef4f9 ]
    
    The i2c probe functions here don't use the id information provided in
    their second argument, so the single-parameter i2c probe function
    ("probe_new") can be used instead.
    
    This avoids scanning the identifier tables during probes.
    
    Signed-off-by: Jaroslav Kysela <perex@perex.cz>
    Link: https://patch.msgid.link/20251126091759.2490019-2-perex@perex.cz
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Stable-dep-of: cd41d3420ef6 ("ASoC: nau8325: add missing build config")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ASoC: tas2781: correct the wrong period [+ + +]
Author: Shenghao Ding <shenghao-ding@ti.com>
Date:   Sat Nov 22 07:44:27 2025 +0800

    ASoC: tas2781: correct the wrong period
    
    [ Upstream commit 950167a99dfd27eeaf177092908c598a31c79a7e ]
    
    A wrong preiod at the end of the sentence was reported by one of my
    customers. Their thorough code review is greatly appreciated.
    
    Fixes: 49e2e353fb0d ("ASoC: tas2781: Add Calibration Kcontrols for Chromebook")
    Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
    Link: https://patch.msgid.link/20251121234427.402-1-shenghao-ding@ti.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
backlight: led-bl: Add devlink to supplier LEDs [+ + +]
Author: Luca Ceresoli <luca.ceresoli@bootlin.com>
Date:   Mon May 19 22:19:11 2025 +0200

    backlight: led-bl: Add devlink to supplier LEDs
    
    [ Upstream commit 9341d6698f4cfdfc374fb6944158d111ebe16a9d ]
    
    LED Backlight is a consumer of one or multiple LED class devices, but
    devlink is currently unable to create correct supplier-producer links when
    the supplier is a class device. It creates instead a link where the
    supplier is the parent of the expected device.
    
    One consequence is that removal order is not correctly enforced.
    
    Issues happen for example with the following sections in a device tree
    overlay:
    
        // An LED driver chip
        pca9632@62 {
            compatible = "nxp,pca9632";
            reg = <0x62>;
    
            // ...
    
            addon_led_pwm: led-pwm@3 {
                reg = <3>;
                label = "addon:led:pwm";
            };
        };
    
        backlight-addon {
            compatible = "led-backlight";
            leds = <&addon_led_pwm>;
            brightness-levels = <255>;
            default-brightness-level = <255>;
        };
    
    In this example, the devlink should be created between the backlight-addon
    (consumer) and the pca9632@62 (supplier). Instead it is created between the
    backlight-addon (consumer) and the parent of the pca9632@62, which is
    typically the I2C bus adapter.
    
    On removal of the above overlay, the LED driver can be removed before the
    backlight device, resulting in:
    
        Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010
        ...
        Call trace:
         led_put+0xe0/0x140
         devm_led_release+0x6c/0x98
    
    Another way to reproduce the bug without any device tree overlays is
    unbinding the LED class device (pca9632@62) before unbinding the consumer
    (backlight-addon):
    
      echo 11-0062 >/sys/bus/i2c/drivers/leds-pca963x/unbind
      echo ...backlight-dock >/sys/bus/platform/drivers/led-backlight/unbind
    
    Fix by adding a devlink between the consuming led-backlight device and the
    supplying LED device, as other drivers and subsystems do as well.
    
    Fixes: ae232e45acf9 ("backlight: add led-backlight driver")
    Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
    Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
    Reviewed-by: Herve Codina <herve.codina@bootlin.com>
    Tested-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
    Link: https://patch.msgid.link/20250519-led-backlight-add-devlink-to-supplier-class-device-v6-1-845224aeb2ce@bootlin.com
    Signed-off-by: Lee Jones <lee@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

backlight: lp855x: Fix lp855x.h kernel-doc warnings [+ + +]
Author: Randy Dunlap <rdunlap@infradead.org>
Date:   Mon Nov 10 22:09:16 2025 -0800

    backlight: lp855x: Fix lp855x.h kernel-doc warnings
    
    [ Upstream commit 2d45db63260c6ae3cf007361e04a1c41bd265084 ]
    
    Add a missing struct short description and a missing leading " *" to
    lp855x.h to avoid kernel-doc warnings:
    
    Warning: include/linux/platform_data/lp855x.h:126 missing initial short
     description on line:
     * struct lp855x_platform_data
    Warning: include/linux/platform_data/lp855x.h:131 bad line:
       Only valid when mode is PWM_BASED.
    
    Fixes: 7be865ab8634 ("backlight: new backlight driver for LP855x devices")
    Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
    Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
    Link: https://patch.msgid.link/20251111060916.1995920-1-rdunlap@infradead.org
    Signed-off-by: Lee Jones <lee@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
blk-mq: Abort suspend when wakeup events are pending [+ + +]
Author: Cong Zhang <cong.zhang@oss.qualcomm.com>
Date:   Wed Dec 3 11:34:21 2025 +0800

    blk-mq: Abort suspend when wakeup events are pending
    
    [ Upstream commit c196bf43d706592d8801a7513603765080e495fb ]
    
    During system suspend, wakeup capable IRQs for block device can be
    delayed, which can cause blk_mq_hctx_notify_offline() to hang
    indefinitely while waiting for pending request to complete.
    Skip the request waiting loop and abort suspend when wakeup events are
    pending to prevent the deadlock.
    
    Fixes: bf0beec0607d ("blk-mq: drain I/O when all CPUs in a hctx are offline")
    Signed-off-by: Cong Zhang <cong.zhang@oss.qualcomm.com>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
block/blk-throttle: Fix throttle slice time for SSDs [+ + +]
Author: Guenter Roeck <linux@roeck-us.net>
Date:   Fri Nov 14 15:54:32 2025 -0800

    block/blk-throttle: Fix throttle slice time for SSDs
    
    [ Upstream commit f76581f9f1d29e32e120b0242974ba266e79de58 ]
    
    Commit d61fcfa4bb18 ("blk-throttle: choose a small throtl_slice for SSD")
    introduced device type specific throttle slices if BLK_DEV_THROTTLING_LOW
    was enabled. Commit bf20ab538c81 ("blk-throttle: remove
    CONFIG_BLK_DEV_THROTTLING_LOW") removed support for BLK_DEV_THROTTLING_LOW,
    but left the device type specific throttle slices in place. This
    effectively changed throttling behavior on systems with SSD which now use
    a different and non-configurable slice time compared to non-SSD devices.
    Practical impact is that throughput tests with low configured throttle
    values (65536 bps) experience less than expected throughput on SSDs,
    presumably due to rounding errors associated with the small throttle slice
    time used for those devices. The same tests pass when setting the throttle
    values to 65536 * 4 = 262144 bps.
    
    The original code sets the throttle slice time to DFL_THROTL_SLICE_HD if
    CONFIG_BLK_DEV_THROTTLING_LOW is disabled. Restore that code to fix the
    problem. With that, DFL_THROTL_SLICE_SSD is no longer necessary. Revert to
    the original code and re-introduce DFL_THROTL_SLICE to replace both
    DFL_THROTL_SLICE_HD and DFL_THROTL_SLICE_SSD. This effectively reverts
    commit d61fcfa4bb18 ("blk-throttle: choose a small throtl_slice for SSD").
    
    While at it, also remove MAX_THROTL_SLICE since it is not used anymore.
    
    Fixes: bf20ab538c81 ("blk-throttle: remove CONFIG_BLK_DEV_THROTTLING_LOW")
    Cc: Yu Kuai <yukuai@kernel.org>
    Cc: Tejun Heo <tj@kernel.org>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Khazhismel Kumykov <khazhy@google.com>
    Reviewed-by: Yu Kuai <yukuai@fnnas.com>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
block/mq-deadline: Introduce dd_start_request() [+ + +]
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Oct 13 12:28:02 2025 -0700

    block/mq-deadline: Introduce dd_start_request()
    
    [ Upstream commit 93a358af59c6e8ab00b57cfdb1c437516a4948ca ]
    
    Prepare for adding a second caller of this function. No functionality
    has been changed.
    
    Cc: Damien Le Moal <dlemoal@kernel.org>
    Cc: Yu Kuai <yukuai@kernel.org>
    Cc: chengkaitao <chengkaitao@kylinos.cn>
    Signed-off-by: Bart Van Assche <bvanassche@acm.org>
    Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Stable-dep-of: d60055cf5270 ("block/mq-deadline: Switch back to a single dispatch list")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

block/mq-deadline: Switch back to a single dispatch list [+ + +]
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Oct 13 12:28:03 2025 -0700

    block/mq-deadline: Switch back to a single dispatch list
    
    [ Upstream commit d60055cf52703a705b86fb25b9b7931ec7ee399c ]
    
    Commit c807ab520fc3 ("block/mq-deadline: Add I/O priority support")
    modified the behavior of request flag BLK_MQ_INSERT_AT_HEAD from
    dispatching a request before other requests into dispatching a request
    before other requests with the same I/O priority. This is not correct since
    BLK_MQ_INSERT_AT_HEAD is used when requeuing requests and also when a flush
    request is inserted.  Both types of requests should be dispatched as soon
    as possible. Hence, make the mq-deadline I/O scheduler again ignore the I/O
    priority for BLK_MQ_INSERT_AT_HEAD requests.
    
    Cc: Damien Le Moal <dlemoal@kernel.org>
    Cc: Yu Kuai <yukuai@kernel.org>
    Reported-by: chengkaitao <chengkaitao@kylinos.cn>
    Closes: https://lore.kernel.org/linux-block/20251009155253.14611-1-pilgrimtao@gmail.com/
    Fixes: c807ab520fc3 ("block/mq-deadline: Add I/O priority support")
    Signed-off-by: Bart Van Assche <bvanassche@acm.org>
    Reviewed-by: Damien Le Moalv <dlemoal@kernel.org>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
block: fix comment for op_is_zone_mgmt() to include RESET_ALL [+ + +]
Author: shechenglong <shechenglong@xfusion.com>
Date:   Wed Dec 3 23:17:49 2025 +0800

    block: fix comment for op_is_zone_mgmt() to include RESET_ALL
    
    [ Upstream commit 8a32282175c964eb15638e8dfe199fc13c060f67 ]
    
    REQ_OP_ZONE_RESET_ALL is a zone management request, and op_is_zone_mgmt()
    has returned true for it.
    
    Update the comment to remove the misleading exception note so
    the documentation matches the implementation.
    
    Fixes: 12a1c9353c47 ("block: fix op_is_zone_mgmt() to handle REQ_OP_ZONE_RESET_ALL")
    Signed-off-by: shechenglong <shechenglong@xfusion.com>
    Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
    Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

block: fix memory leak in __blkdev_issue_zero_pages [+ + +]
Author: Shaurya Rane <ssrane_b23@ee.vjti.ac.in>
Date:   Thu Dec 4 23:42:59 2025 +0530

    block: fix memory leak in __blkdev_issue_zero_pages
    
    [ Upstream commit f7e3f852a42d7cd8f1af2c330d9d153e30c8adcf ]
    
    Move the fatal signal check before bio_alloc() to prevent a memory
    leak when BLKDEV_ZERO_KILLABLE is set and a fatal signal is pending.
    
    Previously, the bio was allocated before checking for a fatal signal.
    If a signal was pending, the code would break out of the loop without
    freeing or chaining the just-allocated bio, causing a memory leak.
    
    This matches the pattern already used in __blkdev_issue_write_zeroes()
    where the signal check precedes the allocation.
    
    Fixes: bf86bcdb4012 ("blk-lib: check for kill signal in ioctl BLKZEROOUT")
    Reported-by: syzbot+527a7e48a3d3d315d862@syzkaller.appspotmail.com
    Closes: https://syzkaller.appspot.com/bug?extid=527a7e48a3d3d315d862
    Signed-off-by: Shaurya Rane <ssrane_b23@ee.vjti.ac.in>
    Reviewed-by: Keith Busch <kbusch@kernel.org>
    Tested-by: syzbot+527a7e48a3d3d315d862@syzkaller.appspotmail.com
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

block: return unsigned int from queue_dma_alignment [+ + +]
Author: Christoph Hellwig <hch@lst.de>
Date:   Tue Nov 19 17:09:19 2024 +0100

    block: return unsigned int from queue_dma_alignment
    
    [ Upstream commit ed5db174cf39374215934f21b04639a7a1513023 ]
    
    The underlying limit is defined as an unsigned int, so return that from
    queue_dma_alignment as well.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: John Garry <john.g.garry@oracle.com>
    Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
    Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
    Link: https://lore.kernel.org/r/20241119160932.1327864-3-hch@lst.de
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Stable-dep-of: 2c38ec934ddf ("block: fix cached zone reports on devices with native zone append")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

block: Use RCU in blk_mq_[un]quiesce_tagset() instead of set->tag_list_lock [+ + +]
Author: Mohamed Khalfella <mkhalfella@purestorage.com>
Date:   Fri Dec 5 13:17:02 2025 -0800

    block: Use RCU in blk_mq_[un]quiesce_tagset() instead of set->tag_list_lock
    
    [ Upstream commit 59e25ef2b413c72da6686d431e7759302cfccafa ]
    
    blk_mq_{add,del}_queue_tag_set() functions add and remove queues from
    tagset, the functions make sure that tagset and queues are marked as
    shared when two or more queues are attached to the same tagset.
    Initially a tagset starts as unshared and when the number of added
    queues reaches two, blk_mq_add_queue_tag_set() marks it as shared along
    with all the queues attached to it. When the number of attached queues
    drops to 1 blk_mq_del_queue_tag_set() need to mark both the tagset and
    the remaining queues as unshared.
    
    Both functions need to freeze current queues in tagset before setting on
    unsetting BLK_MQ_F_TAG_QUEUE_SHARED flag. While doing so, both functions
    hold set->tag_list_lock mutex, which makes sense as we do not want
    queues to be added or deleted in the process. This used to work fine
    until commit 98d81f0df70c ("nvme: use blk_mq_[un]quiesce_tagset")
    made the nvme driver quiesce tagset instead of quiscing individual
    queues. blk_mq_quiesce_tagset() does the job and quiesce the queues in
    set->tag_list while holding set->tag_list_lock also.
    
    This results in deadlock between two threads with these stacktraces:
    
      __schedule+0x47c/0xbb0
      ? timerqueue_add+0x66/0xb0
      schedule+0x1c/0xa0
      schedule_preempt_disabled+0xa/0x10
      __mutex_lock.constprop.0+0x271/0x600
      blk_mq_quiesce_tagset+0x25/0xc0
      nvme_dev_disable+0x9c/0x250
      nvme_timeout+0x1fc/0x520
      blk_mq_handle_expired+0x5c/0x90
      bt_iter+0x7e/0x90
      blk_mq_queue_tag_busy_iter+0x27e/0x550
      ? __blk_mq_complete_request_remote+0x10/0x10
      ? __blk_mq_complete_request_remote+0x10/0x10
      ? __call_rcu_common.constprop.0+0x1c0/0x210
      blk_mq_timeout_work+0x12d/0x170
      process_one_work+0x12e/0x2d0
      worker_thread+0x288/0x3a0
      ? rescuer_thread+0x480/0x480
      kthread+0xb8/0xe0
      ? kthread_park+0x80/0x80
      ret_from_fork+0x2d/0x50
      ? kthread_park+0x80/0x80
      ret_from_fork_asm+0x11/0x20
    
      __schedule+0x47c/0xbb0
      ? xas_find+0x161/0x1a0
      schedule+0x1c/0xa0
      blk_mq_freeze_queue_wait+0x3d/0x70
      ? destroy_sched_domains_rcu+0x30/0x30
      blk_mq_update_tag_set_shared+0x44/0x80
      blk_mq_exit_queue+0x141/0x150
      del_gendisk+0x25a/0x2d0
      nvme_ns_remove+0xc9/0x170
      nvme_remove_namespaces+0xc7/0x100
      nvme_remove+0x62/0x150
      pci_device_remove+0x23/0x60
      device_release_driver_internal+0x159/0x200
      unbind_store+0x99/0xa0
      kernfs_fop_write_iter+0x112/0x1e0
      vfs_write+0x2b1/0x3d0
      ksys_write+0x4e/0xb0
      do_syscall_64+0x5b/0x160
      entry_SYSCALL_64_after_hwframe+0x4b/0x53
    
    The top stacktrace is showing nvme_timeout() called to handle nvme
    command timeout. timeout handler is trying to disable the controller and
    as a first step, it needs to blk_mq_quiesce_tagset() to tell blk-mq not
    to call queue callback handlers. The thread is stuck waiting for
    set->tag_list_lock as it tries to walk the queues in set->tag_list.
    
    The lock is held by the second thread in the bottom stack which is
    waiting for one of queues to be frozen. The queue usage counter will
    drop to zero after nvme_timeout() finishes, and this will not happen
    because the thread will wait for this mutex forever.
    
    Given that [un]quiescing queue is an operation that does not need to
    sleep, update blk_mq_[un]quiesce_tagset() to use RCU instead of taking
    set->tag_list_lock, update blk_mq_{add,del}_queue_tag_set() to use RCU
    safe list operations. Also, delete INIT_LIST_HEAD(&q->tag_set_list)
    in blk_mq_del_queue_tag_set() because we can not re-initialize it while
    the list is being traversed under RCU. The deleted queue will not be
    added/deleted to/from a tagset and it will be freed in blk_free_queue()
    after the end of RCU grace period.
    
    Signed-off-by: Mohamed Khalfella <mkhalfella@purestorage.com>
    Fixes: 98d81f0df70c ("nvme: use blk_mq_[un]quiesce_tagset")
    Reviewed-by: Ming Lei <ming.lei@redhat.com>
    Reviewed-by: Bart Van Assche <bvanassche@acm.org>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
bpf: Check skb->transport_header is set in bpf_skb_check_mtu [+ + +]
Author: Martin KaFai Lau <martin.lau@kernel.org>
Date:   Wed Nov 12 15:23:30 2025 -0800

    bpf: Check skb->transport_header is set in bpf_skb_check_mtu
    
    [ Upstream commit d946f3c98328171fa50ddb908593cf833587f725 ]
    
    The bpf_skb_check_mtu helper needs to use skb->transport_header when
    the BPF_MTU_CHK_SEGS flag is used:
    
            bpf_skb_check_mtu(skb, ifindex, &mtu_len, 0, BPF_MTU_CHK_SEGS)
    
    The transport_header is not always set. There is a WARN_ON_ONCE
    report when CONFIG_DEBUG_NET is enabled + skb->gso_size is set +
    bpf_prog_test_run is used:
    
    WARNING: CPU: 1 PID: 2216 at ./include/linux/skbuff.h:3071
     skb_gso_validate_network_len
     bpf_skb_check_mtu
     bpf_prog_3920e25740a41171_tc_chk_segs_flag # A test in the next patch
     bpf_test_run
     bpf_prog_test_run_skb
    
    For a normal ingress skb (not test_run), skb_reset_transport_header
    is performed but there is plan to avoid setting it as described in
    commit 2170a1f09148 ("net: no longer reset transport_header in __netif_receive_skb_core()").
    
    This patch fixes the bpf helper by checking
    skb_transport_header_was_set(). The check is done just before
    skb->transport_header is used, to avoid breaking the existing bpf prog.
    The WARN_ON_ONCE is limited to bpf_prog_test_run, so targeting bpf-next.
    
    Fixes: 34b2021cc616 ("bpf: Add BPF-helper for MTU checking")
    Cc: Jesper Dangaard Brouer <hawk@kernel.org>
    Reported-by: Kaiyan Mei <M202472210@hust.edu.cn>
    Reported-by: Yinhao Hu <dddddd@hust.edu.cn>
    Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
    Link: https://lore.kernel.org/r/20251112232331.1566074-1-martin.lau@linux.dev
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

bpf: Fix invalid prog->stats access when update_effective_progs fails [+ + +]
Author: Pu Lehui <pulehui@huawei.com>
Date:   Sat Nov 15 10:23:43 2025 +0000

    bpf: Fix invalid prog->stats access when update_effective_progs fails
    
    [ Upstream commit 7dc211c1159d991db609bdf4b0fb9033c04adcbc ]
    
    Syzkaller triggers an invalid memory access issue following fault
    injection in update_effective_progs. The issue can be described as
    follows:
    
    __cgroup_bpf_detach
      update_effective_progs
        compute_effective_progs
          bpf_prog_array_alloc <-- fault inject
      purge_effective_progs
        /* change to dummy_bpf_prog */
        array->items[index] = &dummy_bpf_prog.prog
    
    ---softirq start---
    __do_softirq
      ...
        __cgroup_bpf_run_filter_skb
          __bpf_prog_run_save_cb
            bpf_prog_run
              stats = this_cpu_ptr(prog->stats)
              /* invalid memory access */
              flags = u64_stats_update_begin_irqsave(&stats->syncp)
    ---softirq end---
    
      static_branch_dec(&cgroup_bpf_enabled_key[atype])
    
    The reason is that fault injection caused update_effective_progs to fail
    and then changed the original prog into dummy_bpf_prog.prog in
    purge_effective_progs. Then a softirq came, and accessing the members of
    dummy_bpf_prog.prog in the softirq triggers invalid mem access.
    
    To fix it, skip updating stats when stats is NULL.
    
    Fixes: 492ecee892c2 ("bpf: enable program stats")
    Signed-off-by: Pu Lehui <pulehui@huawei.com>
    Link: https://lore.kernel.org/r/20251115102343.2200727-1-pulehui@huaweicloud.com
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

bpf: Fix stackmap overflow check in __bpf_get_stackid() [+ + +]
Author: Arnaud Lecomte <contact@arnaud-lcm.com>
Date:   Sat Oct 25 19:29:41 2025 +0000

    bpf: Fix stackmap overflow check in __bpf_get_stackid()
    
    [ Upstream commit 23f852daa4bab4d579110e034e4d513f7d490846 ]
    
    Syzkaller reported a KASAN slab-out-of-bounds write in __bpf_get_stackid()
    when copying stack trace data. The issue occurs when the perf trace
     contains more stack entries than the stack map bucket can hold,
     leading to an out-of-bounds write in the bucket's data array.
    
    Fixes: ee2a098851bf ("bpf: Adjust BPF stack helper functions to accommodate skip > 0")
    Reported-by: syzbot+c9b724fbb41cf2538b7b@syzkaller.appspotmail.com
    Signed-off-by: Arnaud Lecomte <contact@arnaud-lcm.com>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Acked-by: Yonghong Song <yonghong.song@linux.dev>
    Acked-by: Song Liu <song@kernel.org>
    Link: https://lore.kernel.org/bpf/20251025192941.1500-1-contact@arnaud-lcm.com
    
    Closes: https://syzkaller.appspot.com/bug?extid=c9b724fbb41cf2538b7b
    Signed-off-by: Sasha Levin <sashal@kernel.org>

bpf: Free special fields when update [lru_,]percpu_hash maps [+ + +]
Author: Leon Hwang <leon.hwang@linux.dev>
Date:   Wed Nov 5 23:14:06 2025 +0800

    bpf: Free special fields when update [lru_,]percpu_hash maps
    
    [ Upstream commit 6af6e49a76c9af7d42eb923703e7648cb2bf401a ]
    
    As [lru_,]percpu_hash maps support BPF_KPTR_{REF,PERCPU}, missing
    calls to 'bpf_obj_free_fields()' in 'pcpu_copy_value()' could cause the
    memory referenced by BPF_KPTR_{REF,PERCPU} fields to be held until the
    map gets freed.
    
    Fix this by calling 'bpf_obj_free_fields()' after
    'copy_map_value[,_long]()' in 'pcpu_copy_value()'.
    
    Fixes: 65334e64a493 ("bpf: Support kptrs in percpu hashmap and percpu LRU hashmap")
    Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
    Acked-by: Yonghong Song <yonghong.song@linux.dev>
    Link: https://lore.kernel.org/r/20251105151407.12723-2-leon.hwang@linux.dev
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

bpf: Handle return value of ftrace_set_filter_ip in register_fentry [+ + +]
Author: Menglong Dong <menglong8.dong@gmail.com>
Date:   Mon Nov 10 20:07:05 2025 +0800

    bpf: Handle return value of ftrace_set_filter_ip in register_fentry
    
    [ Upstream commit fea3f5e83c5cd80a76d97343023a2f2e6bd862bf ]
    
    The error that returned by ftrace_set_filter_ip() in register_fentry() is
    not handled properly. Just fix it.
    
    Fixes: 00963a2e75a8 ("bpf: Support bpf_trampoline on functions with IPMODIFY (e.g. livepatch)")
    Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
    Acked-by: Song Liu <song@kernel.org>
    Link: https://lore.kernel.org/r/20251110120705.1553694-1-dongml2@chinatelecom.cn
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

bpf: Refactor stack map trace depth calculation into helper function [+ + +]
Author: Arnaud Lecomte <contact@arnaud-lcm.com>
Date:   Sat Oct 25 19:28:58 2025 +0000

    bpf: Refactor stack map trace depth calculation into helper function
    
    [ Upstream commit e17d62fedd10ae56e2426858bd0757da544dbc73 ]
    
    Extract the duplicated maximum allowed depth computation for stack
    traces stored in BPF stacks from bpf_get_stackid() and __bpf_get_stack()
    into a dedicated stack_map_calculate_max_depth() helper function.
    
    This unifies the logic for:
    - The max depth computation
    - Enforcing the sysctl_perf_event_max_stack limit
    
    No functional changes for existing code paths.
    
    Signed-off-by: Arnaud Lecomte <contact@arnaud-lcm.com>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Acked-by: Yonghong Song <yonghong.song@linux.dev>
    Acked-by: Song Liu <song@kernel.org>
    Link: https://lore.kernel.org/bpf/20251025192858.31424-1-contact@arnaud-lcm.com
    Stable-dep-of: 23f852daa4ba ("bpf: Fix stackmap overflow check in __bpf_get_stackid()")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
btrfs: fix leaf leak in an error path in btrfs_del_items() [+ + +]
Author: Filipe Manana <fdmanana@suse.com>
Date:   Thu Nov 13 12:52:45 2025 +0000

    btrfs: fix leaf leak in an error path in btrfs_del_items()
    
    [ Upstream commit e7dd1182fcedee7c6097c9f49eba8de94a4364e3 ]
    
    If the call to btrfs_del_leaf() fails we return without decrementing the
    extra ref we took on the leaf, therefore leaking it. Fix this by ensuring
    we drop the ref count before returning the error.
    
    Fixes: 751a27615dda ("btrfs: do not BUG_ON() on tree mod log failures at btrfs_del_ptr()")
    Reviewed-by: Qu Wenruo <wqu@suse.com>
    Signed-off-by: Filipe Manana <fdmanana@suse.com>
    Reviewed-by: David Sterba <dsterba@suse.com>
    Signed-off-by: David Sterba <dsterba@suse.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
cifs: Fix handling of a beyond-EOF DIO/unbuffered read over SMB2 [+ + +]
Author: David Howells <dhowells@redhat.com>
Date:   Wed Dec 3 21:55:27 2025 +0000

    cifs: Fix handling of a beyond-EOF DIO/unbuffered read over SMB2
    
    [ Upstream commit 4ae4dde6f34a4124c65468ae4fa1f915fb40f900 ]
    
    If a DIO read or an unbuffered read request extends beyond the EOF, the
    server will return a short read and a status code indicating that EOF was
    hit, which gets translated to -ENODATA.  Note that the client does not cap
    the request at i_size, but asks for the amount requested in case there's a
    race on the server with a third party.
    
    Now, on the client side, the request will get split into multiple
    subrequests if rsize is smaller than the full request size.  A subrequest
    that starts before or at the EOF and returns short data up to the EOF will
    be correctly handled, with the NETFS_SREQ_HIT_EOF flag being set,
    indicating to netfslib that we can't read more.
    
    If a subrequest, however, starts after the EOF and not at it, HIT_EOF will
    not be flagged, its error will be set to -ENODATA and it will be abandoned.
    This will cause the request as a whole to fail with -ENODATA.
    
    Fix this by setting NETFS_SREQ_HIT_EOF on any subrequest that lies beyond
    the EOF marker.
    
    Fixes: 1da29f2c39b6 ("netfs, cifs: Fix handling of short DIO read")
    Signed-off-by: David Howells <dhowells@redhat.com>
    Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
    cc: Shyam Prasad N <sprasad@microsoft.com>
    cc: linux-cifs@vger.kernel.org
    cc: netfs@lists.linux.dev
    cc: linux-fsdevel@vger.kernel.org
    Signed-off-by: Steve French <stfrench@microsoft.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
clk: keystone: fix compile testing [+ + +]
Author: Johan Hovold <johan@kernel.org>
Date:   Thu Nov 27 14:53:25 2025 +0100

    clk: keystone: fix compile testing
    
    [ Upstream commit b276445e98fe28609688fb85b89a81b803910e63 ]
    
    Some keystone clock drivers can be selected when COMPILE_TEST is
    enabled but since commit b745c0794e2f ("clk: keystone: Add sci-clk
    driver support") they are never actually built.
    
    Enable compile testing by allowing the build system to process the
    keystone drivers.
    
    Fixes: b745c0794e2f ("clk: keystone: Add sci-clk driver support")
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Stephen Boyd <sboyd@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

clk: qcom: camcc-sm6350: Fix PLL config of PLL2 [+ + +]
Author: Luca Weiss <luca.weiss@fairphone.com>
Date:   Tue Oct 21 20:08:54 2025 +0200

    clk: qcom: camcc-sm6350: Fix PLL config of PLL2
    
    [ Upstream commit ab0e13141d679fdffdd3463a272c5c1b10be1794 ]
    
    The 'Agera' PLLs (with clk_agera_pll_configure) do not take some of the
    parameters that are provided in the vendor driver. Instead the upstream
    configuration should provide the final user_ctl value that is written to
    the USER_CTL register.
    
    Fix the config so that the PLL is configured correctly, and fixes
    CAMCC_MCLK* being stuck off.
    
    Fixes: 80f5451d9a7c ("clk: qcom: Add camera clock controller driver for SM6350")
    Suggested-by: Taniya Das <taniya.das@oss.qualcomm.com>
    Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
    Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
    Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>
    Link: https://lore.kernel.org/r/20251021-agera-pll-fixups-v1-1-8c1d8aff4afc@fairphone.com
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

clk: qcom: camcc-sm6350: Specify Titan GDSC power domain as a parent to other [+ + +]
Author: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Date:   Wed Oct 22 02:44:46 2025 +0300

    clk: qcom: camcc-sm6350: Specify Titan GDSC power domain as a parent to other
    
    [ Upstream commit a76ce61d7225934b0a52c8172a8cd944002a8c6f ]
    
    When a consumer turns on/off a power domain dependent on another power
    domain in hardware, the parent power domain shall be turned on/off by
    the power domain provider as well, and to get it the power domain hardware
    hierarchy shall be described in the CAMCC driver.
    
    Establish the power domain hierarchy with a Titan GDSC set as a parent of
    all other GDSC power domains provided by the SM6350 camera clock controller
    to enforce a correct sequence of enabling and disabling power domains by
    the consumers, this fixes the CAMCC as a supplier of power domains to CAMSS
    IP and its driver.
    
    Fixes: 80f5451d9a7c ("clk: qcom: Add camera clock controller driver for SM6350")
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
    Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
    Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
    Link: https://lore.kernel.org/r/20251021234450.2271279-3-vladimir.zapolskiy@linaro.org
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

clk: qcom: camcc-sm7150: Fix PLL config of PLL2 [+ + +]
Author: Luca Weiss <luca.weiss@fairphone.com>
Date:   Tue Oct 21 20:08:55 2025 +0200

    clk: qcom: camcc-sm7150: Fix PLL config of PLL2
    
    [ Upstream commit 415aad75c7e5cdb72e0672dc1159be1a99535ecd ]
    
    The 'Agera' PLLs (with clk_agera_pll_configure) do not take some of the
    parameters that are provided in the vendor driver. Instead the upstream
    configuration should provide the final user_ctl value that is written to
    the USER_CTL register.
    
    Fix the config so that the PLL is configured correctly.
    
    Fixes: 9f0532da4226 ("clk: qcom: Add Camera Clock Controller driver for SM7150")
    Suggested-by: Taniya Das <taniya.das@oss.qualcomm.com>
    Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
    Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
    Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>
    Link: https://lore.kernel.org/r/20251021-agera-pll-fixups-v1-2-8c1d8aff4afc@fairphone.com
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

clk: qcom: camcc-sm8550: Specify Titan GDSC power domain as a parent to other [+ + +]
Author: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Date:   Wed Oct 22 02:44:45 2025 +0300

    clk: qcom: camcc-sm8550: Specify Titan GDSC power domain as a parent to other
    
    [ Upstream commit d8f1121ebf4036884fc9ab1968f606523dd1c1fe ]
    
    When a consumer turns on/off a power domain dependent on another power
    domain in hardware, the parent power domain shall be turned on/off by
    the power domain provider as well, and to get it the power domain hardware
    hierarchy shall be described in the CAMCC driver.
    
    Establish the power domain hierarchy with a Titan GDSC set as a parent of
    all other GDSC power domains provided by the SM8550 camera clock controller
    to enforce a correct sequence of enabling and disabling power domains by
    the consumers, this fixes the CAMCC as a supplier of power domains to CAMSS
    IP and its driver.
    
    Fixes: ccc4e6a061a2 ("clk: qcom: camcc-sm8550: Add camera clock controller driver for SM8550")
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
    Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
    Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
    Link: https://lore.kernel.org/r/20251021234450.2271279-2-vladimir.zapolskiy@linaro.org
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

clk: qcom: gcc-x1e80100: Add missing USB4 clocks/resets [+ + +]
Author: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Date:   Fri Oct 3 20:14:39 2025 +0200

    clk: qcom: gcc-x1e80100: Add missing USB4 clocks/resets
    
    [ Upstream commit 8abe970efea56f44773713cf91032cd2fd4d8c01 ]
    
    Currently, some of the USB4 clocks/resets are described, but not all
    of the back-end muxes are present. Configuring them properly is
    necessary for proper operation of the hardware.
    
    Add all the resets & muxes and wire up any unaccounted USB4 clock paths.
    
    Fixes: 161b7c401f4b ("clk: qcom: Add Global Clock controller (GCC) driver for X1E80100")
    Reviewed-by: Bryan O'Donoghue <bod@kernel.org>
    Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>
    Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
    Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    Link: https://lore.kernel.org/r/20251003-topic-hamoa_gcc_usb4-v2-2-61d27a14ee65@oss.qualcomm.com
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

clk: renesas: cpg-mssr: Add missing 1ms delay into reset toggle callback [+ + +]
Author: Marek Vasut <marek.vasut+renesas@mailbox.org>
Date:   Thu Sep 18 05:04:43 2025 +0200

    clk: renesas: cpg-mssr: Add missing 1ms delay into reset toggle callback
    
    [ Upstream commit 62abfd7bedc2b3d86d4209a4146f9d2b5ae21fab ]
    
    R-Car V4H Reference Manual R19UH0186EJ0130 Rev.1.30 Apr. 21, 2025 page
    583 Figure 9.3.1(a) Software Reset flow (A) as well as flow (B) / (C)
    indicate after reset has been asserted by writing a matching reset bit
    into register SRCR, it is mandatory to wait 1ms.
    
    This 1ms delay is documented on R-Car V4H and V4M, it is currently
    unclear whether S4 is affected as well.  This patch does apply the extra
    delay on R-Car S4 as well.
    
    Fix the reset driver to respect the additional delay when toggling
    resets.  Drivers which use separate reset_control_(de)assert() must
    assure matching delay in their driver code.
    
    Fixes: 0ab55cf18341 ("clk: renesas: cpg-mssr: Add support for R-Car V4H")
    Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Link: https://patch.msgid.link/20250918030552.331389-1-marek.vasut+renesas@mailbox.org
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

clk: renesas: cpg-mssr: Read back reset registers to assure values latched [+ + +]
Author: Marek Vasut <marek.vasut+renesas@mailbox.org>
Date:   Mon Sep 22 18:20:38 2025 +0200

    clk: renesas: cpg-mssr: Read back reset registers to assure values latched
    
    [ Upstream commit b91401af6c00ffab003698bfabd4c166df30748b ]
    
    On R-Car V4H, the PCIEC controller DBI read would generate an SError in
    case the controller reset is released by writing SRSTCLR register first,
    and immediately afterward reading some PCIEC controller DBI register.
    The issue triggers in rcar_gen4_pcie_additional_common_init() on
    dw_pcie_readl_dbi(dw, PCIE_PORT_LANE_SKEW), which on V4H is the first
    read after reset_control_deassert(dw->core_rsts[DW_PCIE_PWR_RST].rstc).
    
    The reset controller which contains the SRSTCLR register and the PCIEC
    controller which contains the DBI register share the same root access
    bus, but the bus then splits into separate segments before reaching each
    IP.  Even if the SRSTCLR write access was posted on the bus before the
    DBI read access, it seems the DBI read access may reach the PCIEC
    controller before the SRSTCLR write completed, and trigger the SError.
    
    Mitigate the issue by adding a dummy SRSTCLR read, which assures the
    SRSTCLR write completes fully and is latched into the reset controller,
    before the PCIEC DBI read access can occur.
    
    Fixes: 0ab55cf18341 ("clk: renesas: cpg-mssr: Add support for R-Car V4H")
    Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
    Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Link: https://patch.msgid.link/20250922162113.113223-1-marek.vasut+renesas@mailbox.org
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

clk: renesas: Pass sub struct of cpg_mssr_priv to cpg_clk_register [+ + +]
Author: Thierry Bultel <thierry.bultel.yh@bp.renesas.com>
Date:   Thu May 15 16:18:19 2025 +0200

    clk: renesas: Pass sub struct of cpg_mssr_priv to cpg_clk_register
    
    [ Upstream commit 3d37ca1482c36975255f29911a529f84f1bc34a9 ]
    
    In a subsequent patch, the registration callback will need more parameters
    from cpg_mssr_priv (like another base address with clock controllers
    with double register block, and also, notifiers and rmw_lock).
    Instead of adding more parameters, move the needed parameters to a public
    sub-struct.
    Instead moving clks to this structure, which would have implied to add
    an allocation (and cleanup) for it, keep the way the allocation is done
    and just have a copy of the pointer in the public structure.
    
    Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Thierry Bultel <thierry.bultel.yh@bp.renesas.com>
    Link: https://lore.kernel.org/20250515141828.43444-5-thierry.bultel.yh@bp.renesas.com
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Stable-dep-of: b91401af6c00 ("clk: renesas: cpg-mssr: Read back reset registers to assure values latched")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

clk: renesas: r9a06g032: Fix memory leak in error path [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Thu Oct 30 14:16:03 2025 +0800

    clk: renesas: r9a06g032: Fix memory leak in error path
    
    [ Upstream commit f8def051bbcf8677f64701e9699bf6d11e2780cd ]
    
    The current code uses of_iomap() to map registers but never calls
    iounmap() on any error path after the mapping. This causes a memory
    leak when probe fails after successful ioremap, for example when
    of_clk_add_provider() or r9a06g032_add_clk_domain() fails.
    
    Replace of_iomap() with devm_of_iomap() to automatically unmap the
    region on probe failure. Update the error check accordingly to use
    IS_ERR() and PTR_ERR() since devm_of_iomap() returns ERR_PTR on error.
    
    Fixes: 4c3d88526eba ("clk: renesas: Renesas R9A06G032 clock driver")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Link: https://patch.msgid.link/20251030061603.1954-1-vulab@iscas.ac.cn
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

clk: renesas: Use str_on_off() helper [+ + +]
Author: Geert Uytterhoeven <geert+renesas@glider.be>
Date:   Mon Apr 28 13:45:55 2025 +0200

    clk: renesas: Use str_on_off() helper
    
    [ Upstream commit aff664cc8cbc5c28e5aa57dc4201c34497f3c871 ]
    
    Use the str_on_off() helper instead of open-coding the same operation.
    Note that this does change the case of the flags, which doesn't matter
    much for debug messages.
    
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Link: https://lore.kernel.org/622f8554dcb815c8fc73511a1a118c1724570fa9.1745840497.git.geert+renesas@glider.be
    Stable-dep-of: b91401af6c00 ("clk: renesas: cpg-mssr: Read back reset registers to assure values latched")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
coresight: Change device mode to atomic type [+ + +]
Author: Leo Yan <leo.yan@arm.com>
Date:   Tue Nov 11 18:58:35 2025 +0000

    coresight: Change device mode to atomic type
    
    [ Upstream commit 693d1eaca940f277af24c74873ef2313816ff444 ]
    
    The device mode is defined as local type. This type cannot promise
    SMP-safe access.
    
    Change to atomic type and impose relax ordering, which ensures the
    SMP-safe synchronisation and the ordering between the mode setting and
    relevant operations.
    
    Fixes: 22fd532eaa0c ("coresight: etm3x: adding operation mode for etm_enable()")
    Reviewed-by: Mike Leach <mike.leach@linaro.org>
    Tested-by: James Clark <james.clark@linaro.org>
    Signed-off-by: Leo Yan <leo.yan@arm.com>
    Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
    Link: https://lore.kernel.org/r/20251111-arm_coresight_power_management_fix-v6-1-f55553b6c8b3@arm.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

coresight: etm4x: Add context synchronization before enabling trace [+ + +]
Author: Leo Yan <leo.yan@arm.com>
Date:   Tue Nov 11 18:58:39 2025 +0000

    coresight: etm4x: Add context synchronization before enabling trace
    
    [ Upstream commit 64eb04ae545294e105ad91714dc3167a0b660731 ]
    
    According to the software usage PKLXF in Arm ARM (ARM DDI 0487 L.a), a
    Context synchronization event is required before enabling the trace
    unit.
    
    An ISB is added to meet this requirement, particularly for guarding the
    operations in the flow:
    
      etm4x_allow_trace()
       `> kvm_tracing_set_el1_configuration()
            `> write_sysreg_s(trfcr_while_in_guest, SYS_TRFCR_EL12)
    
    Improved the barrier comments to provide more accurate information.
    
    Fixes: 1ab3bb9df5e3 ("coresight: etm4x: Add necessary synchronization for sysreg access")
    Reviewed-by: Mike Leach <mike.leach@linaro.org>
    Reviewed-by: Yeoreun Yun <yeoreum.yun@arm.com>
    Tested-by: James Clark <james.clark@linaro.org>
    Signed-off-by: Leo Yan <leo.yan@arm.com>
    Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
    Link: https://lore.kernel.org/r/20251111-arm_coresight_power_management_fix-v6-5-f55553b6c8b3@arm.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

coresight: etm4x: Correct polling IDLE bit [+ + +]
Author: Leo Yan <leo.yan@arm.com>
Date:   Tue Nov 11 18:58:38 2025 +0000

    coresight: etm4x: Correct polling IDLE bit
    
    [ Upstream commit 4dc4e22f9536341255f5de6047977a80ff47eaef ]
    
    Since commit 4ff6039ffb79 ("coresight-etm4x: add isb() before reading
    the TRCSTATR"), the code has incorrectly been polling the PMSTABLE bit
    instead of the IDLE bit.
    
    This commit corrects the typo.
    
    Fixes: 4ff6039ffb79 ("coresight-etm4x: add isb() before reading the TRCSTATR")
    Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com>
    Reviewed-by: Mike Leach <mike.leach@linaro.org>
    Tested-by: James Clark <james.clark@linaro.org>
    Signed-off-by: Leo Yan <leo.yan@arm.com>
    Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
    Link: https://lore.kernel.org/r/20251111-arm_coresight_power_management_fix-v6-4-f55553b6c8b3@arm.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

coresight: etm4x: Extract the trace unit controlling [+ + +]
Author: Leo Yan <leo.yan@arm.com>
Date:   Tue Apr 1 19:07:02 2025 +0100

    coresight: etm4x: Extract the trace unit controlling
    
    [ Upstream commit 40f682ae5086366d51e29e66eb8a344501245d0d ]
    
    The trace unit is controlled in the ETM hardware enabling and disabling.
    The sequential changes for support AUX pause and resume will reuse the
    same operations.
    
    Extract the operations in the etm4_{enable|disable}_trace_unit()
    functions.  A minor improvement in etm4_enable_trace_unit() is for
    returning the timeout error to callers.
    
    Signed-off-by: Leo Yan <leo.yan@arm.com>
    Reviewed-by: Mike Leach <mike.leach@linaro.org>
    Reviewed-by: James Clark <james.clark@linaro.org>
    Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
    Link: https://lore.kernel.org/r/20250401180708.385396-2-leo.yan@arm.com
    Stable-dep-of: 64eb04ae5452 ("coresight: etm4x: Add context synchronization before enabling trace")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
cpufreq/amd-pstate: Call cppc_set_auto_sel() only for online CPUs [+ + +]
Author: Gautham R. Shenoy <gautham.shenoy@amd.com>
Date:   Fri Nov 7 13:11:45 2025 +0530

    cpufreq/amd-pstate: Call cppc_set_auto_sel() only for online CPUs
    
    [ Upstream commit bb31fef0d03ed17d587b40e3458786be408fb9df ]
    
    amd_pstate_change_mode_without_dvr_change() calls cppc_set_auto_sel()
    for all the present CPUs.
    
    However, this callpath eventually calls cppc_set_reg_val() which
    accesses the per-cpu cpc_desc_ptr object. This object is initialized
    only for online CPUs via acpi_soft_cpu_online() -->
    __acpi_processor_start() --> acpi_cppc_processor_probe().
    
    Hence, restrict calling cppc_set_auto_sel() to only the online CPUs.
    
    Fixes: 3ca7bc818d8c ("cpufreq: amd-pstate: Add guided mode control support via sysfs")
    Suggested-by: Mario Limonciello (AMD) (kernel.org) <superm1@kernel.org>
    Signed-off-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
    Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
cpuset: Treat cpusets in attaching as populated [+ + +]
Author: Chen Ridong <chenridong@huawei.com>
Date:   Fri Nov 14 02:08:47 2025 +0000

    cpuset: Treat cpusets in attaching as populated
    
    [ Upstream commit b1bcaed1e39a9e0dfbe324a15d2ca4253deda316 ]
    
    Currently, the check for whether a partition is populated does not
    account for tasks in the cpuset of attaching. This is a corner case
    that can leave a task stuck in a partition with no effective CPUs.
    
    The race condition occurs as follows:
    
    cpu0                            cpu1
                                    //cpuset A  with cpu N
    migrate task p to A
    cpuset_can_attach
    // with effective cpus
    // check ok
    
    // cpuset_mutex is not held     // clear cpuset.cpus.exclusive
                                    // making effective cpus empty
                                    update_exclusive_cpumask
                                    // tasks_nocpu_error check ok
                                    // empty effective cpus, partition valid
    cpuset_attach
    ...
    // task p stays in A, with non-effective cpus.
    
    To fix this issue, this patch introduces cs_is_populated, which considers
    tasks in the attaching cpuset. This new helper is used in validate_change
    and partition_is_populated.
    
    Fixes: e2d59900d936 ("cgroup/cpuset: Allow no-task partition to have empty cpuset.cpus.effective")
    Signed-off-by: Chen Ridong <chenridong@huawei.com>
    Reviewed-by: Waiman Long <longman@redhat.com>
    Signed-off-by: Tejun Heo <tj@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
crypto: asymmetric_keys - prevent overflow in asymmetric_key_generate_id [+ + +]
Author: Thorsten Blum <thorsten.blum@linux.dev>
Date:   Mon Oct 13 13:40:10 2025 +0200

    crypto: asymmetric_keys - prevent overflow in asymmetric_key_generate_id
    
    [ Upstream commit df0845cf447ae1556c3440b8b155de0926cbaa56 ]
    
    Use check_add_overflow() to guard against potential integer overflows
    when adding the binary blob lengths and the size of an asymmetric_key_id
    structure and return ERR_PTR(-EOVERFLOW) accordingly. This prevents a
    possible buffer overflow when copying data from potentially malicious
    X.509 certificate fields that can be arbitrarily large, such as ASN.1
    INTEGER serial numbers, issuer names, etc.
    
    Fixes: 7901c1a8effb ("KEYS: Implement binary asymmetric key ID handling")
    Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
    Reviewed-by: Lukas Wunner <lukas@wunner.de>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

crypto: authenc - Correctly pass EINPROGRESS back up to the caller [+ + +]
Author: Herbert Xu <herbert@gondor.apana.org.au>
Date:   Wed Sep 24 18:20:17 2025 +0800

    crypto: authenc - Correctly pass EINPROGRESS back up to the caller
    
    [ Upstream commit 96feb73def02d175850daa0e7c2c90c876681b5c ]
    
    When authenc is invoked with MAY_BACKLOG, it needs to pass EINPROGRESS
    notifications back up to the caller when the underlying algorithm
    returns EBUSY synchronously.
    
    However, if the EBUSY comes from the second part of an authenc call,
    i.e., it is asynchronous, both the EBUSY and the subsequent EINPROGRESS
    notification must not be passed to the caller.
    
    Implement this by passing a mask to the function that starts the
    second half of authenc and using it to determine whether EBUSY
    and EINPROGRESS should be passed to the caller.
    
    This was a deficiency in the original implementation of authenc
    because it was not expected to be used with MAY_BACKLOG.
    
    Reported-by: Ingo Franzki <ifranzki@linux.ibm.com>
    Reported-by: Mikulas Patocka <mpatocka@redhat.com>
    Fixes: 180ce7e81030 ("crypto: authenc - Add EINPROGRESS check")
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

crypto: ccree - Correctly handle return of sg_nents_for_len [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Mon Nov 10 15:20:41 2025 +0800

    crypto: ccree - Correctly handle return of sg_nents_for_len
    
    [ Upstream commit 8700ce07c5c6bf27afa7b59a8d9cf58d783a7d5c ]
    
    Fix error handling in cc_map_hash_request_update where sg_nents_for_len
    return value was assigned to u32, converting negative errors to large
    positive values before passing to sg_copy_to_buffer.
    
    Check sg_nents_for_len return value and propagate errors before
    assigning to areq_ctx->in_nents.
    
    Fixes: b7ec8530687a ("crypto: ccree - use std api when possible")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

crypto: hisilicon/qm - restore original qos values [+ + +]
Author: nieweiqiang <nieweiqiang@huawei.com>
Date:   Sat Oct 18 19:27:39 2025 +0800

    crypto: hisilicon/qm - restore original qos values
    
    [ Upstream commit e7066160f5b4187ad9869b712fa7a35d3d5be6b9 ]
    
    When the new qos valus setting fails, restore to
    the original qos values.
    
    Fixes: 72b010dc33b9 ("crypto: hisilicon/qm - supports writing QoS int the host")
    Signed-off-by: nieweiqiang <nieweiqiang@huawei.com>
    Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

crypto: iaa - Fix incorrect return value in save_iaa_wq() [+ + +]
Author: Zilin Guan <zilin@seu.edu.cn>
Date:   Sun Nov 9 14:56:48 2025 +0000

    crypto: iaa - Fix incorrect return value in save_iaa_wq()
    
    [ Upstream commit 76ce17f6f7f78ab79b9741388bdb4dafa985b4e9 ]
    
    The save_iaa_wq() function unconditionally returns 0, even when an error
    is encountered. This prevents the error code from being propagated to the
    caller.
    
    Fix this by returning the 'ret' variable, which holds the actual status
    of the operations within the function.
    
    Fixes: ea7a5cbb43696 ("crypto: iaa - Add Intel IAA Compression Accelerator crypto driver core")
    Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

crypto: starfive - Correctly handle return of sg_nents_for_len [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Mon Nov 10 14:54:38 2025 +0800

    crypto: starfive - Correctly handle return of sg_nents_for_len
    
    [ Upstream commit e9eb52037a529fbb307c290e9951a62dd728b03d ]
    
    The return value of sg_nents_for_len was assigned to an unsigned long
    in starfive_hash_digest, causing negative error codes to be converted
    to large positive integers.
    
    Add error checking for sg_nents_for_len and return immediately on
    failure to prevent potential buffer overflows.
    
    Fixes: 7883d1b28a2b ("crypto: starfive - Add hash and HMAC support")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
dm log-writes: Add missing set_freezable() for freezable kthread [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Mon Dec 1 15:41:03 2025 +0800

    dm log-writes: Add missing set_freezable() for freezable kthread
    
    [ Upstream commit ab08f9c8b363297cafaf45475b08f78bf19b88ef ]
    
    The log_writes_kthread() calls try_to_freeze() but lacks set_freezable(),
    rendering the freeze attempt ineffective since kernel threads are
    non-freezable by default. This prevents proper thread suspension during
    system suspend/hibernate.
    
    Add set_freezable() to explicitly mark the thread as freezable.
    
    Fixes: 0e9cebe72459 ("dm: add log writes target")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
    Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
dm-raid: fix possible NULL dereference with undefined raid type [+ + +]
Author: Alexey Simakov <bigalex934@gmail.com>
Date:   Tue Dec 2 20:18:38 2025 +0300

    dm-raid: fix possible NULL dereference with undefined raid type
    
    [ Upstream commit 2f6cfd6d7cb165a7af8877b838a9f6aab4159324 ]
    
    rs->raid_type is assigned from get_raid_type_by_ll(), which may return
    NULL. This NULL value could be dereferenced later in the condition
    'if (!(rs_is_raid10(rs) && rt_is_raid0(rs->raid_type)))'.
    
    Add a fail-fast check to return early with an error if raid_type is NULL,
    similar to other uses of this function.
    
    Found by Linux Verification Center (linuxtesting.org) with Svace.
    
    Fixes: 33e53f06850f ("dm raid: introduce extended superblock and new raid types to support takeover/reshaping")
    Signed-off-by: Alexey Simakov <bigalex934@gmail.com>
    Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
dma/pool: eliminate alloc_pages warning in atomic_pool_expand [+ + +]
Author: Dave Kleikamp <dave.kleikamp@oracle.com>
Date:   Tue Dec 2 09:28:10 2025 -0600

    dma/pool: eliminate alloc_pages warning in atomic_pool_expand
    
    [ Upstream commit 463d439becb81383f3a5a5d840800131f265a09c ]
    
    atomic_pool_expand iteratively tries the allocation while decrementing
    the page order. There is no need to issue a warning if an attempted
    allocation fails.
    
    Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
    Reviewed-by: Robin Murphy <robin.murphy@arm.com>
    Fixes: d7e673ec2c8e ("dma-pool: Only allocate from CMA when in same memory zone")
    [mszyprow: fixed typo]
    Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
    Link: https://lore.kernel.org/r/20251202152810.142370-1-dave.kleikamp@oracle.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
docs: hwmon: fix link to g762 devicetree binding [+ + +]
Author: Kathara Sasikumar <katharasasikumar007@gmail.com>
Date:   Fri Dec 5 21:58:35 2025 +0000

    docs: hwmon: fix link to g762 devicetree binding
    
    [ Upstream commit 08bfcf4ff9d39228150a757803fc02dffce84ab0 ]
    
    The devicetree binding for g762 was converted to YAML to match vendor
    prefix conventions. Update the reference accordingly.
    
    Signed-off-by: Kathara Sasikumar <katharasasikumar007@gmail.com>
    Link: https://lore.kernel.org/r/20251205215835.783273-1-katharasasikumar007@gmail.com
    Fixes: 3d8e25372417 ("dt-bindings: hwmon: g762: Convert to yaml schema")
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/amd/display: Fix logical vs bitwise bug in get_embedded_panel_info_v2_1() [+ + +]
Author: Dan Carpenter <dan.carpenter@linaro.org>
Date:   Fri Oct 31 16:02:25 2025 +0300

    drm/amd/display: Fix logical vs bitwise bug in get_embedded_panel_info_v2_1()
    
    [ Upstream commit 1a79482699b4d1e43948d14f0c7193dc1dcad858 ]
    
    The .H_SYNC_POLARITY and .V_SYNC_POLARITY variables are 1 bit bitfields
    of a u32.  The ATOM_HSYNC_POLARITY define is 0x2 and the
    ATOM_VSYNC_POLARITY is 0x4.  When we do a bitwise negate of 0, 2, or 4
    then the last bit is always 1 so this code always sets .H_SYNC_POLARITY
    and .V_SYNC_POLARITY to true.
    
    This code is instead intended to check if the ATOM_HSYNC_POLARITY or
    ATOM_VSYNC_POLARITY flags are set and reverse the result.  In other
    words, it's supposed to be a logical negate instead of a bitwise negate.
    
    Fixes: ae79c310b1a6 ("drm/amd/display: Add DCE12 bios parser support")
    Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
    Reviewed-by: Alex Hung <alex.hung@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/amdkfd: Use huge page size to check split svm range alignment [+ + +]
Author: Xiaogang Chen <xiaogang.chen@amd.com>
Date:   Mon Dec 1 14:12:29 2025 -0600

    drm/amdkfd: Use huge page size to check split svm range alignment
    
    [ Upstream commit bf2084a7b1d75d093b6a79df4c10142d49fbaa0e ]
    
    When split svm ranges that have been mapped using huge page should use huge
    page size(2MB) to check split range alignment, not prange->granularity that
    means migration granularity.
    
    Fixes: 7ef6b2d4b7e5 ("drm/amdkfd: remap unaligned svm ranges that have split")
    Signed-off-by: Xiaogang Chen <xiaogang.chen@amd.com>
    Reviewed-by: Philip Yang <Philip.Yang@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    (cherry picked from commit 448ee45353ef9fb1a34f5f26eb3f48923c6f0898)
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/imagination: Fix reference to devm_platform_get_and_ioremap_resource() [+ + +]
Author: Geert Uytterhoeven <geert+renesas@glider.be>
Date:   Wed Oct 29 16:00:28 2025 +0100

    drm/imagination: Fix reference to devm_platform_get_and_ioremap_resource()
    
    [ Upstream commit f1aa93005d0d6fb3293ca9c3eb08d1d1557117bf ]
    
    The call to devm_platform_ioremap_resource() was replaced by a call to
    devm_platform_get_and_ioremap_resource(), but the comment referring to
    the function's possible returned error codes was not updated.
    
    Fixes: 927f3e0253c11276 ("drm/imagination: Implement MIPS firmware processor and MMU support")
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Reviewed-by: Matt Coster <matt.coster@imgtec.com>
    Link: https://patch.msgid.link/2266514318480d17f52c7e5e67578dae6827914e.1761745586.git.geert+renesas@glider.be
    Signed-off-by: Matt Coster <matt.coster@imgtec.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/mediatek: Fix CCORR mtk_ctm_s31_32_to_s1_n function issue [+ + +]
Author: Jay Liu <jay.liu@mediatek.com>
Date:   Sun Sep 21 13:53:05 2025 +0800

    drm/mediatek: Fix CCORR mtk_ctm_s31_32_to_s1_n function issue
    
    [ Upstream commit 20ac36b71c53b8c36c6903b5ca87c75226700a97 ]
    
    if matrixbit is 11,
    The range of color matrix is from 0 to (BIT(12) - 1).
    Values from 0 to (BIT(11) - 1) represent positive numbers,
    values from BIT(11) to (BIT(12) - 1) represent negative numbers.
    For example, -1 need converted to 8191.
    so convert S31.32 to HW Q2.11 format by drm_color_ctm_s31_32_to_qm_n,
    and set int_bits to 2.
    
    Fixes: 738ed4156fba ("drm/mediatek: Add matrix_bits private data for ccorr")
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Signed-off-by: Jay Liu <jay.liu@mediatek.com>
    Link: https://patchwork.kernel.org/project/dri-devel/patch/20250921055416.25588-2-jay.liu@mediatek.com/
    Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/msm/a2xx: stop over-complaining about the legacy firmware [+ + +]
Author: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Date:   Thu Nov 13 22:40:50 2025 +0200

    drm/msm/a2xx: stop over-complaining about the legacy firmware
    
    [ Upstream commit a3a22373fce576560757f5616eb48dbf85891d9c ]
    
    If the rootfs have a legacy A200 firmware, currently the driver will
    complain each time the hw is reinited (which can happen a lot). E.g.
    with GL testsuite the hw is reinited after each test, spamming the
    console.
    
    Make sure that the message is printed only once: when we detect the
    firmware that doesn't support protection.
    
    Fixes: 302295070d3c ("drm/msm/a2xx: support loading legacy (iMX) firmware")
    Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    Patchwork: https://patchwork.freedesktop.org/patch/688098/
    Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/msm/a6xx: Fix the gemnoc workaround [+ + +]
Author: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Date:   Tue Nov 18 14:20:30 2025 +0530

    drm/msm/a6xx: Fix the gemnoc workaround
    
    [ Upstream commit ff7a6de043fce21ea5891311746b16121b385c59 ]
    
    Correct the register offset and enable this workaround for all A7x
    and newer GPUs to match the recommendation. Also, downstream does this
    w/a after moving the fence to allow mode. So do the same.
    
    Fixes: dbfbb376b50c ("drm/msm/a6xx: Add A621 support")
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
    Patchwork: https://patchwork.freedesktop.org/patch/688997/
    Message-ID: <20251118-kaana-gpu-support-v4-3-86eeb8e93fb6@oss.qualcomm.com>
    Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

drm/msm/a6xx: Flush LRZ cache before PT switch [+ + +]
Author: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Date:   Tue Nov 18 14:20:29 2025 +0530

    drm/msm/a6xx: Flush LRZ cache before PT switch
    
    [ Upstream commit 180349b8407f3b268b2ceac0e590b8199e043081 ]
    
    As per the recommendation, A7x and newer GPUs should flush the LRZ cache
    before switching the pagetable. Update a6xx_set_pagetable() to do this.
    While we are at it, sync both BV and BR before issuing  a
    CP_RESET_CONTEXT_STATE command, to match the downstream sequence.
    
    Fixes: af66706accdf ("drm/msm/a6xx: Add skeleton A7xx support")
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
    Patchwork: https://patchwork.freedesktop.org/patch/688995/
    Message-ID: <20251118-kaana-gpu-support-v4-2-86eeb8e93fb6@oss.qualcomm.com>
    Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

drm/msm/a6xx: Improve MX rail fallback in RPMH vote init [+ + +]
Author: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Date:   Tue Nov 18 14:20:39 2025 +0530

    drm/msm/a6xx: Improve MX rail fallback in RPMH vote init
    
    [ Upstream commit ca04ce7a2f22652fdf6489fa7e02e7d2c08698f4 ]
    
    Current logic assumes that the voltage corners in both MxG and MxA are
    always same. This is not true for recent targets. So, rework the rpmh init
    sequence to probe and calculate the votes with the respective rails, ie,
    GX rails should use MxG as secondary rail and Cx rail should use MxA as
    the secondary rail.
    
    Fixes: d6225e0cd096 ("drm/msm/adreno: Add support for X185 GPU")
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
    Patchwork: https://patchwork.freedesktop.org/patch/689014/
    Message-ID: <20251118-kaana-gpu-support-v4-12-86eeb8e93fb6@oss.qualcomm.com>
    Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/msm/dpu: drop dpu_hw_dsc_destroy() prototype [+ + +]
Author: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Date:   Mon Oct 27 15:35:17 2025 +0200

    drm/msm/dpu: drop dpu_hw_dsc_destroy() prototype
    
    [ Upstream commit d9792823d18ff9895eaf5769a29a54804f24bc25 ]
    
    The commit a106ed98af68 ("drm/msm/dpu: use devres-managed allocation for
    HW blocks") dropped all dpu_hw_foo_destroy() functions, but the
    prototype for dpu_hw_dsc_destroy() was omitted. Drop it now to clean up
    the header.
    
    Fixes: a106ed98af68 ("drm/msm/dpu: use devres-managed allocation for HW blocks")
    Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Reviewed-by: Jessica Zhang <jesszhan0024@gmail.com>
    Patchwork: https://patchwork.freedesktop.org/patch/683697/
    Link: https://lore.kernel.org/r/20251027-dpu-drop-dsc-destroy-v1-1-968128de4bf6@oss.qualcomm.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/nouveau: refactor deprecated strcpy [+ + +]
Author: Madhur Kumar <madhurkumar004@gmail.com>
Date:   Thu Dec 4 17:38:22 2025 +0530

    drm/nouveau: refactor deprecated strcpy
    
    [ Upstream commit 2bdc2c0e12fac56e41ec05fb771ead986ea6dac0 ]
    
    strcpy() has been deprecated because it performs no bounds checking on the
    destination buffer, which can lead to buffer overflows. Use the safer
    strscpy() instead.
    
    Signed-off-by: Madhur Kumar <madhurkumar004@gmail.com>
    Reviewed-by: Lyude Paul <lyude@redhat.com>
    Fixes: 15a996bbb697 ("drm/nouveau: assign fence_chan->name correctly")
    Signed-off-by: Lyude Paul <lyude@redhat.com>
    Link: https://patch.msgid.link/20251204120822.17502-1-madhurkumar004@gmail.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

drm/nouveau: restrict the flush page to a 32-bit address [+ + +]
Author: Timur Tabi <ttabi@nvidia.com>
Date:   Thu Nov 13 17:03:22 2025 -0600

    drm/nouveau: restrict the flush page to a 32-bit address
    
    [ Upstream commit 04d98b3452331fa53ec3b698b66273af6ef73288 ]
    
    The flush page DMA address is stored in a special register that is not
    associated with the GPU's standard DMA range.  For example, on Turing,
    the GPU's MMU can handle 47-bit addresses, but the flush page address
    register is limited to 40 bits.
    
    At the point during device initialization when the flush page is
    allocated, the DMA mask is still at its default of 32 bits.  So even
    though it's unlikely that the flush page could exist above a 40-bit
    address, the dma_map_page() call could fail, e.g. if IOMMU is disabled
    and the address is above 32 bits.  The simplest way to achieve all
    constraints is to allocate the page in the DMA32 zone.  Since the flush
    page is literally just a page, this is an acceptable limitation.  The
    alternative is to temporarily set the DMA mask to 40 (or 52 for Hopper
    and later) bits, but that could have unforseen side effects.
    
    In situations where the flush page is allocated above 32 bits and IOMMU
    is disabled, you will get an error like this:
    
    nouveau 0000:65:00.0: DMA addr 0x0000000107c56000+4096 overflow (mask ffffffff, bus limit 0).
    
    Fixes: 5728d064190e ("drm/nouveau/fb: handle sysmem flush page from common code")
    Signed-off-by: Timur Tabi <ttabi@nvidia.com>
    Reviewed-by: Lyude Paul <lyude@redhat.com>
    Signed-off-by: Lyude Paul <lyude@redhat.com>
    Link: https://patch.msgid.link/20251113230323.1271726-1-ttabi@nvidia.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/panel: visionox-rm69299: Don't clear all mode flags [+ + +]
Author: Guido Günther <agx@sigxcpu.org>
Date:   Wed Sep 10 18:39:57 2025 +0200

    drm/panel: visionox-rm69299: Don't clear all mode flags
    
    [ Upstream commit 39144b611e9cd4f5814f4098c891b545dd70c536 ]
    
    Don't clear all mode flags. We only want to maek sure we use HS mode
    during unprepare.
    
    Fixes: c7f66d32dd431 ("drm/panel: add support for rm69299 visionox panel")
    Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
    Signed-off-by: Guido Günther <agx@sigxcpu.org>
    Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
    Link: https://lore.kernel.org/r/20250910-shift6mq-panel-v3-2-a7729911afb9@sigxcpu.org
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/panthor: Avoid adding of kernel BOs to extobj list [+ + +]
Author: Akash Goel <akash.goel@arm.com>
Date:   Thu Nov 20 17:21:18 2025 +0000

    drm/panthor: Avoid adding of kernel BOs to extobj list
    
    [ Upstream commit ce04ec03a9c2c4f3e60e26f21311b25d5a478208 ]
    
    The kernel BOs unnecessarily got added to the external objects list
    of drm_gpuvm, when mapping to GPU, which would have resulted in few
    extra CPU cycles being spent at the time of job submission as
    drm_exec_until_all_locked() loop iterates over all external objects.
    
    Kernel BOs are private to a VM and so they share the dma_resv object of
    the dummy GEM object created for a VM. Use of DRM_EXEC_IGNORE_DUPLICATES
    flag ensured the recursive locking of the dummy GEM object was ignored.
    Also no extra space got allocated to add fences to the dma_resv object
    of dummy GEM object. So no other impact apart from few extra CPU cycles.
    
    This commit sets the pointer to dma_resv object of GEM object of
    kernel BOs before they are mapped to GPU, to prevent them from
    being added to external objects list.
    
    v2: Add R-bs and fixes tags
    
    Fixes: 8a1cc07578bf ("drm/panthor: Add GEM logical block")
    Signed-off-by: Akash Goel <akash.goel@arm.com>
    Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
    Reviewed-by: Steven Price <steven.price@arm.com>
    Link: https://patch.msgid.link/20251120172118.2741724-1-akash.goel@arm.com
    Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

drm/panthor: Fix group_free_queue() for partially initialized queues [+ + +]
Author: Boris Brezillon <boris.brezillon@collabora.com>
Date:   Fri Oct 31 17:03:18 2025 +0100

    drm/panthor: Fix group_free_queue() for partially initialized queues
    
    [ Upstream commit 94a6d20feadbbe24e8a7b1c56394789ea5358fcc ]
    
    group_free_queue() can be called on a partially initialized queue
    object if something fails in group_create_queue(). Make sure we don't
    call drm_sched_entity_destroy() on an entity that hasn't been
    initialized.
    
    Fixes: 7d9c3442b02a ("drm/panthor: Defer scheduler entitiy destruction to queue release")
    Reviewed-by: Adrián Larumbe <adrian.larumbe@collabora.com>
    Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
    Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
    Link: https://patch.msgid.link/20251031160318.832427-2-boris.brezillon@collabora.com
    Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

drm/panthor: Fix potential memleak of vma structure [+ + +]
Author: Akash Goel <akash.goel@arm.com>
Date:   Tue Oct 21 09:10:42 2025 +0100

    drm/panthor: Fix potential memleak of vma structure
    
    [ Upstream commit 4492d54d59872bb72e119ff9f77969ab4d8a0e6b ]
    
    This commit addresses a memleak issue of panthor_vma (or drm_gpuva)
    structure in Panthor driver, that can happen if the GPU page table
    update operation to map the pages fail.
    The issue is very unlikely to occur in practice.
    
    v2: Add panthor_vm_op_ctx_return_vma() helper (Boris)
    
    v3: Add WARN_ON_ONCE (Boris)
    
    Fixes: 647810ec2476 ("drm/panthor: Add the MMU/VM logical block")
    Signed-off-by: Akash Goel <akash.goel@arm.com>
    Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
    Reviewed-by: Steven Price <steven.price@arm.com>
    Signed-off-by: Steven Price <steven.price@arm.com>
    Link: https://patch.msgid.link/20251021081042.1377406-1-akash.goel@arm.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

drm/panthor: Fix race with suspend during unplug [+ + +]
Author: Ketil Johnsen <ketil.johnsen@arm.com>
Date:   Wed Oct 22 12:32:41 2025 +0200

    drm/panthor: Fix race with suspend during unplug
    
    [ Upstream commit 08be57e6e8aa20ea5a6dd2552e38ac168d6a9b11 ]
    
    There is a race between panthor_device_unplug() and
    panthor_device_suspend() which can lead to IRQ handlers running on a
    powered down GPU. This is how it can happen:
    - unplug routine calls drm_dev_unplug()
    - panthor_device_suspend() can now execute, and will skip a lot of
      important work because the device is currently marked as unplugged.
    - IRQs will remain active in this case and IRQ handlers can therefore
      try to access a powered down GPU.
    
    The fix is simply to take the PM ref in panthor_device_unplug() a
    little bit earlier, before drm_dev_unplug().
    
    Signed-off-by: Ketil Johnsen <ketil.johnsen@arm.com>
    Fixes: 5fe909cae118a ("drm/panthor: Add the device logical block")
    Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
    Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
    Reviewed-by: Steven Price <steven.price@arm.com>
    Link: https://patch.msgid.link/20251022103242.1083311-1-ketil.johnsen@arm.com
    Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

drm/panthor: Fix UAF on kernel BO VA nodes [+ + +]
Author: Boris Brezillon <boris.brezillon@collabora.com>
Date:   Fri Oct 31 16:48:15 2025 +0100

    drm/panthor: Fix UAF on kernel BO VA nodes
    
    [ Upstream commit 98dd5143447af0ee33551776d8b2560c35d0bc4a ]
    
    If the MMU is down, panthor_vm_unmap_range() might return an error.
    We expect the page table to be updated still, and if the MMU is blocked,
    the rest of the GPU should be blocked too, so no risk of accessing
    physical memory returned to the system (which the current code doesn't
    cover for anyway).
    
    Proceed with the rest of the cleanup instead of bailing out and leaving
    the va_node inserted in the drm_mm, which leads to UAF when other
    adjacent nodes are removed from the drm_mm tree.
    
    Reported-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
    Closes: https://gitlab.freedesktop.org/panfrost/linux/-/issues/57
    Fixes: 8a1cc07578bf ("drm/panthor: Add GEM logical block")
    Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
    Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
    Link: https://patch.msgid.link/20251031154818.821054-2-boris.brezillon@collabora.com
    Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

drm/panthor: Fix UAF race between device unplug and FW event processing [+ + +]
Author: Ketil Johnsen <ketil.johnsen@arm.com>
Date:   Mon Oct 27 15:02:15 2025 +0100

    drm/panthor: Fix UAF race between device unplug and FW event processing
    
    [ Upstream commit 7051f6ba968fa69918d72cc26de4d6cf7ea05b90 ]
    
    The function panthor_fw_unplug() will free the FW memory sections.
    The problem is that there could still be pending FW events which are yet
    not handled at this point. process_fw_events_work() can in this case try
    to access said freed memory.
    
    Simply call disable_work_sync() to both drain and prevent future
    invocation of process_fw_events_work().
    
    Signed-off-by: Ketil Johnsen <ketil.johnsen@arm.com>
    Fixes: de85488138247 ("drm/panthor: Add the scheduler logical block")
    Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
    Link: https://patch.msgid.link/20251027140217.121274-1-ketil.johnsen@arm.com
    Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

drm/panthor: Handle errors returned by drm_sched_entity_init() [+ + +]
Author: Boris Brezillon <boris.brezillon@collabora.com>
Date:   Fri Oct 31 17:03:17 2025 +0100

    drm/panthor: Handle errors returned by drm_sched_entity_init()
    
    [ Upstream commit bb7939e332c64c4ef33974a0eae4f3841acfa8eb ]
    
    In practice it's not going to fail because we're passing the current
    sanity checks done by drm_sched_entity_init(), and that's the only
    reason it would return an error, but better safe than sorry.
    
    Fixes: de8548813824 ("drm/panthor: Add the scheduler logical block")
    Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
    Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
    Link: https://patch.msgid.link/20251031160318.832427-1-boris.brezillon@collabora.com
    Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/plane: Fix IS_ERR() vs NULL check in drm_plane_create_hotspot_properties() [+ + +]
Author: Dan Carpenter <dan.carpenter@linaro.org>
Date:   Wed Dec 3 20:35:23 2025 +0300

    drm/plane: Fix IS_ERR() vs NULL check in drm_plane_create_hotspot_properties()
    
    [ Upstream commit 479acb9db3199cdb70e5478a6f633b5f20c7d8df ]
    
    The drm_property_create_signed_range() function doesn't return error
    pointers it returns NULL on error.  Fix the error checking to match.
    
    Fixes: 8f7179a1027d ("drm/atomic: Add support for mouse hotspots")
    Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
    Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
    Reviewed-by: Zack Rusin <zack.rusin@broadcom.com>
    Link: https://patch.msgid.link/aTB023cfcIPkCsFS@stanley.mountain
    Signed-off-by: Maxime Ripard <mripard@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm/vgem-fence: Fix potential deadlock on release [+ + +]
Author: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Date:   Fri Sep 26 17:26:27 2025 +0200

    drm/vgem-fence: Fix potential deadlock on release
    
    [ Upstream commit 78b4d6463e9e69e5103f98b367f8984ad12cdc6f ]
    
    A timer that expires a vgem fence automatically in 10 seconds is now
    released with timer_delete_sync() from fence->ops.release() called on last
    dma_fence_put().  In some scenarios, it can run in IRQ context, which is
    not safe unless TIMER_IRQSAFE is used.  One potentially risky scenario was
    demonstrated in Intel DRM CI trybot, BAT run on machine bat-adlp-6, while
    working on new IGT subtests syncobj_timeline@stress-* as user space
    replacements of some problematic test cases of a dma-fence-chain selftest
    [1].
    
    [117.004338] ================================
    [117.004340] WARNING: inconsistent lock state
    [117.004342] 6.17.0-rc7-CI_DRM_17270-g7644974e648c+ #1 Tainted: G S   U
    [117.004346] --------------------------------
    [117.004347] inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage.
    [117.004349] swapper/0/0 [HC1[1]:SC1[1]:HE0:SE0] takes:
    [117.004352] ffff888138f86aa8 ((&fence->timer)){?.-.}-{0:0}, at: __timer_delete_sync+0x4b/0x190
    [117.004361] {HARDIRQ-ON-W} state was registered at:
    [117.004363]   lock_acquire+0xc4/0x2e0
    [117.004366]   call_timer_fn+0x80/0x2a0
    [117.004368]   __run_timers+0x231/0x310
    [117.004370]   run_timer_softirq+0x76/0xe0
    [117.004372]   handle_softirqs+0xd4/0x4d0
    [117.004375]   __irq_exit_rcu+0x13f/0x160
    [117.004377]   irq_exit_rcu+0xe/0x20
    [117.004379]   sysvec_apic_timer_interrupt+0xa0/0xc0
    [117.004382]   asm_sysvec_apic_timer_interrupt+0x1b/0x20
    [117.004385]   cpuidle_enter_state+0x12b/0x8a0
    [117.004388]   cpuidle_enter+0x2e/0x50
    [117.004393]   call_cpuidle+0x22/0x60
    [117.004395]   do_idle+0x1fd/0x260
    [117.004398]   cpu_startup_entry+0x29/0x30
    [117.004401]   start_secondary+0x12d/0x160
    [117.004404]   common_startup_64+0x13e/0x141
    [117.004407] irq event stamp: 2282669
    [117.004409] hardirqs last  enabled at (2282668): [<ffffffff8289db71>] _raw_spin_unlock_irqrestore+0x51/0x80
    [117.004414] hardirqs last disabled at (2282669): [<ffffffff82882021>] sysvec_irq_work+0x11/0xc0
    [117.004419] softirqs last  enabled at (2254702): [<ffffffff8289fd00>] __do_softirq+0x10/0x18
    [117.004423] softirqs last disabled at (2254725): [<ffffffff813d4ddf>] __irq_exit_rcu+0x13f/0x160
    [117.004426]
    other info that might help us debug this:
    [117.004429]  Possible unsafe locking scenario:
    [117.004432]        CPU0
    [117.004433]        ----
    [117.004434]   lock((&fence->timer));
    [117.004436]   <Interrupt>
    [117.004438]     lock((&fence->timer));
    [117.004440]
     *** DEADLOCK ***
    [117.004443] 1 lock held by swapper/0/0:
    [117.004445]  #0: ffffc90000003d50 ((&fence->timer)){?.-.}-{0:0}, at: call_timer_fn+0x7a/0x2a0
    [117.004450]
    stack backtrace:
    [117.004453] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G S   U              6.17.0-rc7-CI_DRM_17270-g7644974e648c+ #1 PREEMPT(voluntary)
    [117.004455] Tainted: [S]=CPU_OUT_OF_SPEC, [U]=USER
    [117.004455] Hardware name: Intel Corporation Alder Lake Client Platform/AlderLake-P DDR4 RVP, BIOS RPLPFWI1.R00.4035.A00.2301200723 01/20/2023
    [117.004456] Call Trace:
    [117.004456]  <IRQ>
    [117.004457]  dump_stack_lvl+0x91/0xf0
    [117.004460]  dump_stack+0x10/0x20
    [117.004461]  print_usage_bug.part.0+0x260/0x360
    [117.004463]  mark_lock+0x76e/0x9c0
    [117.004465]  ? register_lock_class+0x48/0x4a0
    [117.004467]  __lock_acquire+0xbc3/0x2860
    [117.004469]  lock_acquire+0xc4/0x2e0
    [117.004470]  ? __timer_delete_sync+0x4b/0x190
    [117.004472]  ? __timer_delete_sync+0x4b/0x190
    [117.004473]  __timer_delete_sync+0x68/0x190
    [117.004474]  ? __timer_delete_sync+0x4b/0x190
    [117.004475]  timer_delete_sync+0x10/0x20
    [117.004476]  vgem_fence_release+0x19/0x30 [vgem]
    [117.004478]  dma_fence_release+0xc1/0x3b0
    [117.004480]  ? dma_fence_release+0xa1/0x3b0
    [117.004481]  dma_fence_chain_release+0xe7/0x130
    [117.004483]  dma_fence_release+0xc1/0x3b0
    [117.004484]  ? _raw_spin_unlock_irqrestore+0x27/0x80
    [117.004485]  dma_fence_chain_irq_work+0x59/0x80
    [117.004487]  irq_work_single+0x75/0xa0
    [117.004490]  irq_work_run_list+0x33/0x60
    [117.004491]  irq_work_run+0x18/0x40
    [117.004493]  __sysvec_irq_work+0x35/0x170
    [117.004494]  sysvec_irq_work+0x47/0xc0
    [117.004496]  asm_sysvec_irq_work+0x1b/0x20
    [117.004497] RIP: 0010:_raw_spin_unlock_irqrestore+0x57/0x80
    [117.004499] Code: 00 75 1c 65 ff 0d d9 34 68 01 74 20 5b 41 5c 5d 31 c0 31 d2 31 c9 31 f6 31 ff c3 cc cc cc cc e8 7f 9d d3 fe fb 0f 1f 44 00 00 <eb> d7 0f 1f 44 00 00 5b 41 5c 5d 31 c0 31 d2 31 c9 31 f6 31 ff c3
    [117.004499] RSP: 0018:ffffc90000003cf0 EFLAGS: 00000246
    [117.004500] RAX: 0000000000000000 RBX: ffff888155e94c40 RCX: 0000000000000000
    [117.004501] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
    [117.004502] RBP: ffffc90000003d00 R08: 0000000000000000 R09: 0000000000000000
    [117.004502] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000246
    [117.004502] R13: 0000000000000001 R14: 0000000000000246 R15: ffff888155e94c80
    [117.004506]  dma_fence_signal+0x49/0xb0
    [117.004507]  ? __pfx_vgem_fence_timeout+0x10/0x10 [vgem]
    [117.004508]  vgem_fence_timeout+0x12/0x20 [vgem]
    [117.004509]  call_timer_fn+0xa1/0x2a0
    [117.004512]  ? __pfx_vgem_fence_timeout+0x10/0x10 [vgem]
    [117.004513]  __run_timers+0x231/0x310
    [117.004514]  ? tmigr_handle_remote+0x2ac/0x560
    [117.004517]  timer_expire_remote+0x46/0x70
    [117.004518]  tmigr_handle_remote+0x433/0x560
    [117.004520]  ? __run_timers+0x239/0x310
    [117.004521]  ? run_timer_softirq+0x21/0xe0
    [117.004522]  ? lock_release+0xce/0x2a0
    [117.004524]  run_timer_softirq+0xcf/0xe0
    [117.004525]  handle_softirqs+0xd4/0x4d0
    [117.004526]  __irq_exit_rcu+0x13f/0x160
    [117.004527]  irq_exit_rcu+0xe/0x20
    [117.004528]  sysvec_apic_timer_interrupt+0xa0/0xc0
    [117.004529]  </IRQ>
    [117.004529]  <TASK>
    [117.004529]  asm_sysvec_apic_timer_interrupt+0x1b/0x20
    [117.004530] RIP: 0010:cpuidle_enter_state+0x12b/0x8a0
    [117.004532] Code: 48 0f a3 05 97 ce 0e 01 0f 82 2e 03 00 00 31 ff e8 8a 41 bd fe 80 7d d0 00 0f 85 11 03 00 00 e8 8b 06 d5 fe fb 0f 1f 44 00 00 <45> 85 f6 0f 88 67 02 00 00 4d 63 ee 49 83 fd 0a 0f 83 34 06 00 00
    [117.004532] RSP: 0018:ffffffff83403d88 EFLAGS: 00000246
    [117.004533] RAX: 0000000000000000 RBX: ffff88888f046440 RCX: 0000000000000000
    [117.004533] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
    [117.004534] RBP: ffffffff83403dd8 R08: 0000000000000000 R09: 0000000000000000
    [117.004534] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff837cbe80
    [117.004534] R13: 0000000000000004 R14: 0000000000000004 R15: 0000001ad1df466b
    [117.004537]  ? cpuidle_enter_state+0x125/0x8a0
    [117.004538]  ? sched_clock_noinstr+0x9/0x10
    [117.004540]  cpuidle_enter+0x2e/0x50
    [117.004542]  call_cpuidle+0x22/0x60
    [117.004542]  do_idle+0x1fd/0x260
    [117.004544]  cpu_startup_entry+0x29/0x30
    [117.004546]  rest_init+0x104/0x200
    [117.004548]  start_kernel+0x93d/0xbd0
    [117.004550]  ? load_ucode_intel_bsp+0x2a/0x90
    [117.004551]  ? sme_unmap_bootdata+0x14/0x80
    [117.004554]  x86_64_start_reservations+0x18/0x30
    [117.004555]  x86_64_start_kernel+0xfd/0x150
    [117.004556]  ? soft_restart_cpu+0x14/0x14
    [117.004558]  common_startup_64+0x13e/0x141
    [117.004560]  </TASK>
    [117.004565] ------------[ cut here ]------------
    [117.004692] WARNING: CPU: 0 PID: 0 at kernel/time/timer.c:1610 __timer_delete_sync+0x126/0x190
    [117.004697] Modules linked in: vgem snd_hda_codec_intelhdmi snd_hda_codec_hdmi i915 prime_numbers ttm drm_buddy drm_display_helper cec rc_core i2c_algo_bit hid_sensor_custom hid_sensor_hub hid_generic intel_ishtp_hid hid intel_uncore_frequency intel_uncore_frequency_common x86_pkg_temp_thermal intel_powerclamp cmdlinepart ee1004 r8153_ecm spi_nor coretemp cdc_ether mei_pxp mei_hdcp usbnet mtd intel_rapl_msr wmi_bmof kvm_intel snd_hda_intel snd_intel_dspcfg processor_thermal_device_pci kvm snd_hda_codec processor_thermal_device irqbypass processor_thermal_wt_hint polyval_clmulni platform_temperature_control snd_hda_core ghash_clmulni_intel processor_thermal_rfim spi_pxa2xx_platform snd_hwdep aesni_intel processor_thermal_rapl dw_dmac snd_pcm dw_dmac_core intel_rapl_common r8152 rapl mii intel_cstate spi_pxa2xx_core i2c_i801 processor_thermal_wt_req snd_timer i2c_mux mei_me intel_ish_ipc processor_thermal_power_floor e1000e snd i2c_smbus spi_intel_pci processor_thermal_mbox mei soundcore intel_ishtp thunderbolt idma64
    [117.004733]  spi_intel int340x_thermal_zone igen6_edac binfmt_misc intel_skl_int3472_tps68470 intel_pmc_core tps68470_regulator video clk_tps68470 pmt_telemetry pmt_discovery nls_iso8859_1 pmt_class intel_pmc_ssram_telemetry intel_skl_int3472_discrete int3400_thermal intel_hid intel_skl_int3472_common acpi_thermal_rel intel_vsec wmi pinctrl_tigerlake acpi_tad sparse_keymap acpi_pad dm_multipath msr nvme_fabrics fuse efi_pstore nfnetlink autofs4
    [117.004782] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G S   U              6.17.0-rc7-CI_DRM_17270-g7644974e648c+ #1 PREEMPT(voluntary)
    [117.004787] Tainted: [S]=CPU_OUT_OF_SPEC, [U]=USER
    [117.004789] Hardware name: Intel Corporation Alder Lake Client Platform/AlderLake-P DDR4 RVP, BIOS RPLPFWI1.R00.4035.A00.2301200723 01/20/2023
    [117.004793] RIP: 0010:__timer_delete_sync+0x126/0x190
    [117.004795] Code: 31 c0 45 31 c9 c3 cc cc cc cc 48 8b 75 d0 45 84 f6 74 63 49 c7 45 18 00 00 00 00 48 89 c7 e8 51 46 39 01 f3 90 e9 66 ff ff ff <0f> 0b e9 5f ff ff ff e8 ee e4 0c 00 49 8d 5d 28 45 31 c9 31 c9 4c
    [117.004801] RSP: 0018:ffffc90000003a40 EFLAGS: 00010046
    [117.004804] RAX: ffffffff815093fb RBX: ffff888138f86aa8 RCX: 0000000000000000
    [117.004807] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
    [117.004809] RBP: ffffc90000003a70 R08: 0000000000000000 R09: 0000000000000000
    [117.004812] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff815093fb
    [117.004814] R13: ffff888138f86a80 R14: 0000000000000000 R15: 0000000000000000
    [117.004817] FS:  0000000000000000(0000) GS:ffff88890b0f7000(0000) knlGS:0000000000000000
    [117.004820] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [117.004823] CR2: 00005db8131eb7f0 CR3: 0000000003448000 CR4: 0000000000f52ef0
    [117.004826] PKRU: 55555554
    [117.004827] Call Trace:
    [117.004829]  <IRQ>
    [117.004831]  timer_delete_sync+0x10/0x20
    [117.004833]  vgem_fence_release+0x19/0x30 [vgem]
    [117.004836]  dma_fence_release+0xc1/0x3b0
    [117.004838]  ? dma_fence_release+0xa1/0x3b0
    [117.004841]  dma_fence_chain_release+0xe7/0x130
    [117.004844]  dma_fence_release+0xc1/0x3b0
    [117.004847]  ? _raw_spin_unlock_irqrestore+0x27/0x80
    [117.004850]  dma_fence_chain_irq_work+0x59/0x80
    [117.004853]  irq_work_single+0x75/0xa0
    [117.004857]  irq_work_run_list+0x33/0x60
    [117.004860]  irq_work_run+0x18/0x40
    [117.004863]  __sysvec_irq_work+0x35/0x170
    [117.004865]  sysvec_irq_work+0x47/0xc0
    [117.004868]  asm_sysvec_irq_work+0x1b/0x20
    [117.004871] RIP: 0010:_raw_spin_unlock_irqrestore+0x57/0x80
    [117.004874] Code: 00 75 1c 65 ff 0d d9 34 68 01 74 20 5b 41 5c 5d 31 c0 31 d2 31 c9 31 f6 31 ff c3 cc cc cc cc e8 7f 9d d3 fe fb 0f 1f 44 00 00 <eb> d7 0f 1f 44 00 00 5b 41 5c 5d 31 c0 31 d2 31 c9 31 f6 31 ff c3
    [117.004879] RSP: 0018:ffffc90000003cf0 EFLAGS: 00000246
    [117.004882] RAX: 0000000000000000 RBX: ffff888155e94c40 RCX: 0000000000000000
    [117.004884] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
    [117.004887] RBP: ffffc90000003d00 R08: 0000000000000000 R09: 0000000000000000
    [117.004890] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000246
    [117.004892] R13: 0000000000000001 R14: 0000000000000246 R15: ffff888155e94c80
    [117.004897]  dma_fence_signal+0x49/0xb0
    [117.004899]  ? __pfx_vgem_fence_timeout+0x10/0x10 [vgem]
    [117.004902]  vgem_fence_timeout+0x12/0x20 [vgem]
    [117.004904]  call_timer_fn+0xa1/0x2a0
    [117.004908]  ? __pfx_vgem_fence_timeout+0x10/0x10 [vgem]
    [117.004910]  __run_timers+0x231/0x310
    [117.004913]  ? tmigr_handle_remote+0x2ac/0x560
    [117.004917]  timer_expire_remote+0x46/0x70
    [117.004919]  tmigr_handle_remote+0x433/0x560
    [117.004923]  ? __run_timers+0x239/0x310
    [117.004925]  ? run_timer_softirq+0x21/0xe0
    [117.004928]  ? lock_release+0xce/0x2a0
    [117.004931]  run_timer_softirq+0xcf/0xe0
    [117.004933]  handle_softirqs+0xd4/0x4d0
    [117.004936]  __irq_exit_rcu+0x13f/0x160
    [117.004938]  irq_exit_rcu+0xe/0x20
    [117.004940]  sysvec_apic_timer_interrupt+0xa0/0xc0
    [117.004943]  </IRQ>
    [117.004944]  <TASK>
    [117.004946]  asm_sysvec_apic_timer_interrupt+0x1b/0x20
    [117.004949] RIP: 0010:cpuidle_enter_state+0x12b/0x8a0
    [117.004953] Code: 48 0f a3 05 97 ce 0e 01 0f 82 2e 03 00 00 31 ff e8 8a 41 bd fe 80 7d d0 00 0f 85 11 03 00 00 e8 8b 06 d5 fe fb 0f 1f 44 00 00 <45> 85 f6 0f 88 67 02 00 00 4d 63 ee 49 83 fd 0a 0f 83 34 06 00 00
    [117.004961] RSP: 0018:ffffffff83403d88 EFLAGS: 00000246
    [117.004963] RAX: 0000000000000000 RBX: ffff88888f046440 RCX: 0000000000000000
    [117.004966] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
    [117.004968] RBP: ffffffff83403dd8 R08: 0000000000000000 R09: 0000000000000000
    [117.004971] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff837cbe80
    [117.004974] R13: 0000000000000004 R14: 0000000000000004 R15: 0000001ad1df466b
    [117.004978]  ? cpuidle_enter_state+0x125/0x8a0
    [117.004981]  ? sched_clock_noinstr+0x9/0x10
    [117.004985]  cpuidle_enter+0x2e/0x50
    [117.004989]  call_cpuidle+0x22/0x60
    [117.004991]  do_idle+0x1fd/0x260
    [117.005001]  cpu_startup_entry+0x29/0x30
    [117.005004]  rest_init+0x104/0x200
    [117.005008]  start_kernel+0x93d/0xbd0
    [117.005011]  ? load_ucode_intel_bsp+0x2a/0x90
    [117.005014]  ? sme_unmap_bootdata+0x14/0x80
    [117.005017]  x86_64_start_reservations+0x18/0x30
    [117.005020]  x86_64_start_kernel+0xfd/0x150
    [117.005023]  ? soft_restart_cpu+0x14/0x14
    [117.005026]  common_startup_64+0x13e/0x141
    [117.005030]  </TASK>
    [117.005032] irq event stamp: 2282669
    [117.005034] hardirqs last  enabled at (2282668): [<ffffffff8289db71>] _raw_spin_unlock_irqrestore+0x51/0x80
    [117.005038] hardirqs last disabled at (2282669): [<ffffffff82882021>] sysvec_irq_work+0x11/0xc0
    [117.005043] softirqs last  enabled at (2254702): [<ffffffff8289fd00>] __do_softirq+0x10/0x18
    [117.005047] softirqs last disabled at (2254725): [<ffffffff813d4ddf>] __irq_exit_rcu+0x13f/0x160
    [117.005051] ---[ end trace 0000000000000000 ]---
    
    Make the timer IRQ safe.
    
    [1] https://patchwork.freedesktop.org/series/154987/#rev2
    
    Fixes: 4077798484459 ("drm/vgem: Attach sw fences to exported vGEM dma-buf (ioctl)")
    Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
    Reviewed-by: Christian König <christian.koenig@amd.com>
    Link: https://lore.kernel.org/r/20250926152628.2165080-2-janusz.krzysztofik@linux.intel.com
    Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
drm: atmel-hlcdc: fix atmel_xlcdc_plane_setup_scaler() [+ + +]
Author: Cyrille Pitchen <cyrille.pitchen@microchip.com>
Date:   Mon Oct 14 15:19:42 2024 +0530

    drm: atmel-hlcdc: fix atmel_xlcdc_plane_setup_scaler()
    
    [ Upstream commit a312acdcec57b3955fbf1f3057c13a6d38e4aa2a ]
    
    On SoCs, like the SAM9X75, which embed the XLCDC ip, the registers that
    configure the unified scaling engine were not filled with proper values.
    
    Indeed, for YCbCr formats, the VXSCFACT bitfield of the HEOCFG25
    register and the HXSCFACT bitfield of the HEOCFG27 register were
    incorrect.
    
    For 4:2:0 formats, both vertical and horizontal factors for
    chroma chanels should be divided by 2 from the factors for the luma
    channel. Hence:
    
    HEOCFG24.VXSYFACT = VFACTOR
    HEOCFG25.VSXCFACT = VFACTOR / 2
    HEOCFG26.HXSYFACT = HFACTOR
    HEOCFG27.HXSCFACT = HFACTOR / 2
    
    However, for 4:2:2 formats, only the horizontal factor for chroma
    chanels should be divided by 2 from the factor for the luma channel;
    the vertical factor is the same for all the luma and chroma channels.
    Hence:
    
    HEOCFG24.VXSYFACT = VFACTOR
    HEOCFG25.VXSCFACT = VFACTOR
    HEOCFG26.HXSYFACT = HFACTOR
    HEOCFG27.HXSCFACT = HFACTOR / 2
    
    Fixes: d498771b0b83 ("drm: atmel_hlcdc: Add support for XLCDC using IP specific driver ops")
    Signed-off-by: Cyrille Pitchen <cyrille.pitchen@microchip.com>
    Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
    Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
    Link: https://lore.kernel.org/r/20241014094942.325211-1-manikandan.m@microchip.com
    Signed-off-by: Manikandan Muralidharan <manikandan.m@microchip.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
dt-bindings: clock: qcom,x1e80100-gcc: Add missing USB4 clocks/resets [+ + +]
Author: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Date:   Fri Oct 3 20:14:38 2025 +0200

    dt-bindings: clock: qcom,x1e80100-gcc: Add missing USB4 clocks/resets
    
    [ Upstream commit e4c4f5a1ae18a7828c2bfaf9dfe2473632b92d1b ]
    
    Some of the USB4 muxes, RCGs and resets were not initially described.
    
    Add indices for them to allow extending the driver.
    
    Acked-by: Rob Herring (Arm) <robh@kernel.org>
    Reviewed-by: Bryan O'Donoghue <bod@kernel.org>
    Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Link: https://lore.kernel.org/r/20251003-topic-hamoa_gcc_usb4-v2-1-61d27a14ee65@oss.qualcomm.com
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Stable-dep-of: 8abe970efea5 ("clk: qcom: gcc-x1e80100: Add missing USB4 clocks/resets")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

dt-bindings: clock: qcom,x1e80100-gcc: Add missing video resets [+ + +]
Author: Stephan Gerhold <stephan.gerhold@linaro.org>
Date:   Wed Jul 9 12:08:56 2025 +0200

    dt-bindings: clock: qcom,x1e80100-gcc: Add missing video resets
    
    [ Upstream commit d0b706509fb04449add5446e51a494bfeadcac10 ]
    
    Add the missing video resets that are needed for the iris video codec.
    
    Acked-by: Rob Herring (Arm) <robh@kernel.org>
    Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
    Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
    Link: https://lore.kernel.org/r/20250709-x1e-videocc-v2-4-ad1acf5674b4@linaro.org
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Stable-dep-of: 8abe970efea5 ("clk: qcom: gcc-x1e80100: Add missing USB4 clocks/resets")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

dt-bindings: PCI: amlogic: Fix the register name of the DBI region [+ + +]
Author: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Date:   Sat Nov 1 09:59:40 2025 +0530

    dt-bindings: PCI: amlogic: Fix the register name of the DBI region
    
    [ Upstream commit 4813dea9e272ba0a57c50b8d51d440dd8e3ccdd7 ]
    
    Binding incorrectly specifies the 'DBI' region as 'ELBI'. DBI is a must
    have region for DWC controllers as it has the Root Port and controller
    specific registers, while ELBI has optional registers.
    
    Hence, fix the binding. Though this is an ABI break, this change is needed
    to accurately describe the PCI memory map.
    
    Fixes: 7cd210391101 ("dt-bindings: PCI: meson: add DT bindings for Amlogic Meson PCIe controller")
    Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
    Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
    Link: https://patch.msgid.link/20251101-pci-meson-fix-v1-1-c50dcc56ed6a@oss.qualcomm.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
efi/cper: Add a new helper function to print bitmasks [+ + +]
Author: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Date:   Thu Aug 14 09:52:54 2025 -0700

    efi/cper: Add a new helper function to print bitmasks
    
    [ Upstream commit a976d790f49499ccaa0f991788ad8ebf92e7fd5c ]
    
    Add a helper function to print a string with names associated
    to each bit field.
    
    A typical example is:
    
            const char * const bits[] = {
                    "bit 3 name",
                    "bit 4 name",
                    "bit 5 name",
            };
            char str[120];
            unsigned int bitmask = BIT(3) | BIT(5);
    
            #define MASK  GENMASK(5,3)
    
            cper_bits_to_str(str, sizeof(str), FIELD_GET(MASK, bitmask),
                             bits, ARRAY_SIZE(bits));
    
    The above code fills string "str" with "bit 3 name|bit 5 name".
    
    Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
    Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

efi/cper: Adjust infopfx size to accept an extra space [+ + +]
Author: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Date:   Thu Aug 14 09:52:53 2025 -0700

    efi/cper: Adjust infopfx size to accept an extra space
    
    [ Upstream commit 8ad2c72e21efb3dc76c5b14089fa7984cdd87898 ]
    
    Compiling with W=1 with werror enabled produces an error:
    
    drivers/firmware/efi/cper-arm.c: In function ‘cper_print_proc_arm’:
    drivers/firmware/efi/cper-arm.c:298:64: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
      298 |                         snprintf(infopfx, sizeof(infopfx), "%s ", newpfx);
          |                                                                ^
    drivers/firmware/efi/cper-arm.c:298:25: note: ‘snprintf’ output between 2 and 65 bytes into a destination of size 64
      298 |                         snprintf(infopfx, sizeof(infopfx), "%s ", newpfx);
          |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    As the logic there adds an space at the end of infopx buffer.
    Add an extra space to avoid such warning.
    
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
    Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

efi/cper: align ARM CPER type with UEFI 2.9A/2.10 specs [+ + +]
Author: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Date:   Thu Aug 14 09:52:55 2025 -0700

    efi/cper: align ARM CPER type with UEFI 2.9A/2.10 specs
    
    [ Upstream commit 96b010536ee020e716d28d9b359a4bcd18800aeb ]
    
    Up to UEFI spec 2.9, the type byte of CPER struct for ARM processor
    was defined simply as:
    
    Type at byte offset 4:
    
            - Cache error
            - TLB Error
            - Bus Error
            - Micro-architectural Error
            All other values are reserved
    
    Yet, there was no information about how this would be encoded.
    
    Spec 2.9A errata corrected it by defining:
    
            - Bit 1 - Cache Error
            - Bit 2 - TLB Error
            - Bit 3 - Bus Error
            - Bit 4 - Micro-architectural Error
            All other values are reserved
    
    That actually aligns with the values already defined on older
    versions at N.2.4.1. Generic Processor Error Section.
    
    Spec 2.10 also preserve the same encoding as 2.9A.
    
    Adjust CPER and GHES handling code for both generic and ARM
    processors to properly handle UEFI 2.9A and 2.10 encoding.
    
    Link: https://uefi.org/specs/UEFI/2.10/Apx_N_Common_Platform_Error_Record.html#arm-processor-error-information
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
    Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
efi/libstub: Fix page table access in 5-level to 4-level paging transition [+ + +]
Author: Usama Arif <usamaarif642@gmail.com>
Date:   Mon Nov 3 14:09:23 2025 +0000

    efi/libstub: Fix page table access in 5-level to 4-level paging transition
    
    [ Upstream commit 84361123413efc84b06f3441c6c827b95d902732 ]
    
    When transitioning from 5-level to 4-level paging, the existing code
    incorrectly accesses page table entries by directly dereferencing CR3 and
    applying PAGE_MASK. This approach has several issues:
    
    - __native_read_cr3() returns the raw CR3 register value, which on x86_64
      includes not just the physical address but also flags Bits above the
      physical address width of the system (i.e. above __PHYSICAL_MASK_SHIFT) are
      also not masked.
    
    - The pgd value is masked by PAGE_SIZE which doesn't take into account the
      higher bits such as _PAGE_BIT_NOPTISHADOW.
    
    Replace this with proper accessor functions:
    
    - native_read_cr3_pa(): Uses CR3_ADDR_MASK to additionally mask metadata out
      of CR3 (like SME or LAM bits). All remaining bits are real address bits or
      reserved and must be 0.
    
    - mask pgd value with PTE_PFN_MASK instead of PAGE_MASK, accounting for flags
      above bit 51 (_PAGE_BIT_NOPTISHADOW in particular). Bits below 51, but above
      the max physical address are reserved and must be 0.
    
    Fixes: cb1c9e02b0c1 ("x86/efistub: Perform 4/5 level paging switch from the stub")
    Reported-by: Michael van der Westhuizen <rmikey@meta.com>
    Reported-by: Tobias Fleig <tfleig@meta.com>
    Co-developed-by: Kiryl Shutsemau <kas@kernel.org>
    Signed-off-by: Kiryl Shutsemau <kas@kernel.org>
    Signed-off-by: Usama Arif <usamaarif642@gmail.com>
    Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
    Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
    Link: https://patch.msgid.link/20251103141002.2280812-3-usamaarif642@gmail.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
erofs: limit the level of fs stacking for file-backed mounts [+ + +]
Author: Gao Xiang <xiang@kernel.org>
Date:   Sat Nov 22 14:23:32 2025 +0800

    erofs: limit the level of fs stacking for file-backed mounts
    
    [ Upstream commit d53cd891f0e4311889349fff3a784dc552f814b9 ]
    
    Otherwise, it could cause potential kernel stack overflow (e.g., EROFS
    mounting itself).
    
    Reviewed-by: Sheng Yong <shengyong1@xiaomi.com>
    Fixes: fb176750266a ("erofs: add file-backed mount support")
    Reviewed-by: Chao Yu <chao@kernel.org>
    Reviewed-by: Hongbo Li <lihongbo22@huawei.com>
    Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
Linux: Expand the type of nfs_fattr->valid [+ + +]
Author: Trond Myklebust <trond.myklebust@primarydata.com>
Date:   Thu May 29 06:45:45 2025 -0400

    Expand the type of nfs_fattr->valid
    
    [ Upstream commit ce60ab3964782df9ba34f0a64c0bc766dd508bde ]
    
    We need to be able to track more than 32 attributes per inode.
    
    Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
    Signed-off-by: Lance Shelton <lance.shelton@hammerspace.com>
    Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
    Reviewed-by: Jeff Layton <jlayton@kernel.org>
    Link: https://lore.kernel.org/r/1e3405fca54efd0be7c91c1da77917b94f5dfcc4.1748515333.git.bcodding@redhat.com
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Stable-dep-of: 2b092175f5e3 ("NFS: Fix inheritance of the block sizes when automounting")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
ext4: correct the checking of quota files before moving extents [+ + +]
Author: Zhang Yi <yi.zhang@huawei.com>
Date:   Mon Oct 13 09:51:17 2025 +0800

    ext4: correct the checking of quota files before moving extents
    
    [ Upstream commit a2e5a3cea4b18f6e2575acc444a5e8cce1fc8260 ]
    
    The move extent operation should return -EOPNOTSUPP if any of the inodes
    is a quota inode, rather than requiring both to be quota inodes.
    
    Fixes: 02749a4c2082 ("ext4: add ext4_is_quota_file()")
    Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
    Reviewed-by: Jan Kara <jack@suse.cz>
    Message-ID: <20251013015128.499308-2-yi.zhang@huaweicloud.com>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ext4: improve integrity checking in __mb_check_buddy by enhancing order-0 validation [+ + +]
Author: Yongjian Sun <sunyongjian1@huawei.com>
Date:   Thu Nov 6 14:06:14 2025 +0800

    ext4: improve integrity checking in __mb_check_buddy by enhancing order-0 validation
    
    [ Upstream commit d9ee3ff810f1cc0e253c9f2b17b668b973cb0e06 ]
    
    When the MB_CHECK_ASSERT macro is enabled, we found that the
    current validation logic in __mb_check_buddy has a gap in
    detecting certain invalid buddy states, particularly related
    to order-0 (bitmap) bits.
    
    The original logic consists of three steps:
    1. Validates higher-order buddies: if a higher-order bit is
    set, at most one of the two corresponding lower-order bits
    may be free; if a higher-order bit is clear, both lower-order
    bits must be allocated (and their bitmap bits must be 0).
    2. For any set bit in order-0, ensures all corresponding
    higher-order bits are not free.
    3. Verifies that all preallocated blocks (pa) in the group
    have pa_pstart within bounds and their bitmap bits marked as
    allocated.
    
    However, this approach fails to properly validate cases where
    order-0 bits are incorrectly cleared (0), allowing some invalid
    configurations to pass:
    
                   corrupt            integral
    
    order 3           1                  1
    order 2       1       1          1       1
    order 1     1   1   1   1      1   1   1   1
    order 0    0 0 1 1 1 1 1 1    1 1 1 1 1 1 1 1
    
    Here we get two adjacent free blocks at order-0 with inconsistent
    higher-order state, and the right one shows the correct scenario.
    
    The root cause is insufficient validation of order-0 zero bits.
    To fix this and improve completeness without significant performance
    cost, we refine the logic:
    
    1. Maintain the top-down higher-order validation, but we no longer
    check the cases where the higher-order bit is 0, as this case will
    be covered in step 2.
    2. Enhance order-0 checking by examining pairs of bits:
       - If either bit in a pair is set (1), all corresponding
         higher-order bits must not be free.
       - If both bits are clear (0), then exactly one of the
         corresponding higher-order bits must be free
    3. Keep the preallocation (pa) validation unchanged.
    
    This change closes the validation gap, ensuring illegal buddy states
    involving order-0 are correctly detected, while removing redundant
    checks and maintaining efficiency.
    
    Fixes: c9de560ded61f ("ext4: Add multi block allocator for ext4")
    Suggested-by: Jan Kara <jack@suse.cz>
    Signed-off-by: Yongjian Sun <sunyongjian1@huawei.com>
    Reviewed-by: Baokun Li <libaokun1@huawei.com>
    Reviewed-by: Jan Kara <jack@suse.cz>
    Message-ID: <20251106060614.631382-3-sunyongjian@huaweicloud.com>
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
f2fs: add a sysfs entry to reclaim POSIX_FADV_NOREUSE pages [+ + +]
Author: Jaegeuk Kim <jaegeuk@kernel.org>
Date:   Fri Jan 31 22:27:57 2025 +0000

    f2fs: add a sysfs entry to reclaim POSIX_FADV_NOREUSE pages
    
    [ Upstream commit a907f3a68ee26ba493a08a958809208d17f3347e ]
    
    1. fadvise(fd1, POSIX_FADV_NOREUSE, {0,3});
    2. fadvise(fd2, POSIX_FADV_NOREUSE, {1,2});
    3. fadvise(fd3, POSIX_FADV_NOREUSE, {3,1});
    4. echo 1024 > /sys/fs/f2fs/tuning/reclaim_caches_kb
    
    This gives a way to reclaim file-backed pages by iterating all f2fs mounts until
    reclaiming 1MB page cache ranges, registered by #1, #2, and #3.
    
    5. cat /sys/fs/f2fs/tuning/reclaim_caches_kb
    -> gives total number of registered file ranges.
    
    Reviewed-by: Chao Yu <chao@kernel.org>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
    Stable-dep-of: e462fc48ceb8 ("f2fs: maintain one time GC mode is enabled during whole zoned GC cycle")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

f2fs: add carve_out sysfs node [+ + +]
Author: Daeho Jeong <daehojeong@google.com>
Date:   Tue Mar 11 11:29:31 2025 -0700

    f2fs: add carve_out sysfs node
    
    [ Upstream commit d7b549def0eb42a950eebd3bd5343f5c8088c305 ]
    
    For several zoned storage devices, vendors will provide extra space
    which was used for device level GC than specs and F2FS can use this
    space for filesystem level GC. To do that, we can reserve the space
    using reserved_blocks. However, it is not enough, since this extra
    space should not be shown to users. So, with this new sysfs node,
    we can hide the space by substracting reserved_blocks from total
    bytes.
    
    Signed-off-by: Daeho Jeong <daehojeong@google.com>
    Reviewed-by: Chao Yu <chao@kernel.org>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
    Stable-dep-of: e462fc48ceb8 ("f2fs: maintain one time GC mode is enabled during whole zoned GC cycle")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

f2fs: add gc_boost_gc_greedy sysfs node [+ + +]
Author: Daeho Jeong <daehojeong@google.com>
Date:   Mon Jul 28 10:04:30 2025 -0700

    f2fs: add gc_boost_gc_greedy sysfs node
    
    [ Upstream commit c8705cefce44fbe85ca3b180dee0e0b5f3d51dc5 ]
    
    Add this to control GC algorithm for boost GC.
    
    Signed-off-by: Daeho Jeong <daehojeong@google.com>
    Reviewed-by: Chao Yu <chao@kernel.org>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
    Stable-dep-of: e462fc48ceb8 ("f2fs: maintain one time GC mode is enabled during whole zoned GC cycle")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

f2fs: add gc_boost_gc_multiple sysfs node [+ + +]
Author: Daeho Jeong <daehojeong@google.com>
Date:   Mon Jul 28 09:45:44 2025 -0700

    f2fs: add gc_boost_gc_multiple sysfs node
    
    [ Upstream commit 1d4c5dbba1a53aeaf2c6cc84e7ba94c436d18852 ]
    
    Add a sysfs knob to set a multiplier for the background GC migration
    window when F2FS Garbage Collection is boosted.
    
    Signed-off-by: Daeho Jeong <daehojeong@google.com>
    Reviewed-by: Chao Yu <chao@kernel.org>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
    Stable-dep-of: e462fc48ceb8 ("f2fs: maintain one time GC mode is enabled during whole zoned GC cycle")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

f2fs: fix to avoid running out of free segments [+ + +]
Author: Chao Yu <chao@kernel.org>
Date:   Wed Mar 12 17:01:25 2025 +0800

    f2fs: fix to avoid running out of free segments
    
    [ Upstream commit f7f8932ca6bb22494ef6db671633ad3b4d982271 ]
    
    If checkpoint is disabled, GC can not reclaim any segments, we need
    to detect such condition and bail out from fallocate() of a pinfile,
    rather than letting allocator running out of free segment, which may
    cause f2fs to be shutdown.
    
    reproducer:
    mkfs.f2fs -f /dev/vda 16777216
    mount -o checkpoint=disable:10% /dev/vda /mnt/f2fs
    for ((i=0;i<4096;i++)) do { dd if=/dev/zero of=/mnt/f2fs/$i bs=1M count=1; } done
    sync
    for ((i=0;i<4096;i+=2)) do { rm /mnt/f2fs/$i; } done
    sync
    touch /mnt/f2fs/pinfile
    f2fs_io pinfile set /mnt/f2fs/pinfile
    f2fs_io fallocate 0 0 4201644032 /mnt/f2fs/pinfile
    
    cat /sys/kernel/debug/f2fs/status
    output:
      - Free: 0 (0)
    
    Fixes: f5a53edcf01e ("f2fs: support aligned pinned file")
    Signed-off-by: Chao Yu <chao@kernel.org>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
    Stable-dep-of: e462fc48ceb8 ("f2fs: maintain one time GC mode is enabled during whole zoned GC cycle")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

f2fs: introduce reserved_pin_section sysfs entry [+ + +]
Author: Chao Yu <chao@kernel.org>
Date:   Fri Jun 13 13:51:09 2025 +0800

    f2fs: introduce reserved_pin_section sysfs entry
    
    [ Upstream commit 59c1c89e9ba8cefff05aa982dd9e6719f25e8ec5 ]
    
    This patch introduces /sys/fs/f2fs/<dev>/reserved_pin_section for tuning
    @needed parameter of has_not_enough_free_secs(), if we configure it w/
    zero, it can avoid f2fs_gc() as much as possible while fallocating on
    pinned file.
    
    Signed-off-by: Chao Yu <chao@kernel.org>
    Reviewed-by: wangzijie <wangzijie1@honor.com>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
    Stable-dep-of: e462fc48ceb8 ("f2fs: maintain one time GC mode is enabled during whole zoned GC cycle")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

f2fs: keep POSIX_FADV_NOREUSE ranges [+ + +]
Author: Jaegeuk Kim <jaegeuk@kernel.org>
Date:   Fri Jan 31 22:27:56 2025 +0000

    f2fs: keep POSIX_FADV_NOREUSE ranges
    
    [ Upstream commit ef0c333cad8d1940f132a7ce15f15920216a3bd5 ]
    
    This patch records POSIX_FADV_NOREUSE ranges for users to reclaim the caches
    instantly off from LRU.
    
    Reviewed-by: Chao Yu <chao@kernel.org>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
    Stable-dep-of: e462fc48ceb8 ("f2fs: maintain one time GC mode is enabled during whole zoned GC cycle")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

f2fs: maintain one time GC mode is enabled during whole zoned GC cycle [+ + +]
Author: Daeho Jeong <daehojeong@google.com>
Date:   Fri Oct 3 15:43:08 2025 -0700

    f2fs: maintain one time GC mode is enabled during whole zoned GC cycle
    
    [ Upstream commit e462fc48ceb8224811c3224650afed05cb7f0872 ]
    
    The current version missed setting one time GC for normal zoned GC
    cycle. So, valid threshold control is not working. Need to fix it to
    prevent excessive GC for zoned devices.
    
    Fixes: e791d00bd06c ("f2fs: add valid block ratio not to do excessive GC for one time GC")
    Signed-off-by: Daeho Jeong <daehojeong@google.com>
    Reviewed-by: Chao Yu <chao@kernel.org>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

f2fs: sysfs: add encoding_flags entry [+ + +]
Author: Chao Yu <chao@kernel.org>
Date:   Tue May 6 15:47:25 2025 +0800

    f2fs: sysfs: add encoding_flags entry
    
    [ Upstream commit 3fea0641b06ff4e53d95d07a96764d8951d4ced6 ]
    
    This patch adds a new sysfs entry /sys/fs/f2fs/<disk>/encoding_flags,
    it is a read-only entry to show the value of sb.s_encoding_flags, the
    value is hexadecimal.
    
    ============================     ==========
    Flag_Name                        Flag_Value
    ============================     ==========
    SB_ENC_STRICT_MODE_FL            0x00000001
    SB_ENC_NO_COMPAT_FALLBACK_FL     0x00000002
    ============================     ==========
    
    case#1
    mkfs.f2fs -f -O casefold -C utf8:strict /dev/vda
    mount /dev/vda /mnt/f2fs
    cat /sys/fs/f2fs/vda/encoding_flags
    1
    
    case#2
    mkfs.f2fs -f -O casefold -C utf8 /dev/vda
    fsck.f2fs --nolinear-lookup=1 /dev/vda
    mount /dev/vda /mnt/f2fs
    cat /sys/fs/f2fs/vda/encoding_flags
    2
    
    Signed-off-by: Chao Yu <chao@kernel.org>
    Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
    Stable-dep-of: e462fc48ceb8 ("f2fs: maintain one time GC mode is enabled during whole zoned GC cycle")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
fbdev: ssd1307fb: fix potential page leak in ssd1307fb_probe() [+ + +]
Author: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Date:   Wed Dec 3 09:25:44 2025 +0530

    fbdev: ssd1307fb: fix potential page leak in ssd1307fb_probe()
    
    [ Upstream commit 164312662ae9764b83b84d97afb25c42eb2be473 ]
    
    The page allocated for vmem using __get_free_pages() is not freed on the
    error paths after it. Fix that by adding a corresponding __free_pages()
    call to the error path.
    
    Fixes: facd94bc458a ("fbdev: ssd1307fb: Allocate page aligned video memory.")
    Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
    Signed-off-by: Helge Deller <deller@gmx.de>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
firmware: imx: scu-irq: fix OF node leak in [+ + +]
Author: Peng Fan <peng.fan@nxp.com>
Date:   Fri Oct 17 09:56:24 2025 +0800

    firmware: imx: scu-irq: fix OF node leak in
    
    [ Upstream commit ee67247843a2b62d1473cfa4df300e69b5190ccf ]
    
    imx_scu_enable_general_irq_channel() calls of_parse_phandle_with_args(),
    but does not release the OF node reference. Add a of_node_put() call
    to release the reference.
    
    Fixes: 851826c7566e ("firmware: imx: enable imx scu general irq function")
    Reviewed-by: Frank Li <Frank.Li@nxp.com>
    Signed-off-by: Peng Fan <peng.fan@nxp.com>
    Signed-off-by: Shawn Guo <shawnguo@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

firmware: qcom: tzmem: fix qcom_tzmem_policy kernel-doc [+ + +]
Author: Randy Dunlap <rdunlap@infradead.org>
Date:   Fri Oct 17 12:13:23 2025 -0700

    firmware: qcom: tzmem: fix qcom_tzmem_policy kernel-doc
    
    [ Upstream commit edd548dc64a699d71ea4f537f815044e763d01e1 ]
    
    Fix kernel-doc warnings by using correct kernel-doc syntax and
    formatting to prevent warnings:
    
    Warning: include/linux/firmware/qcom/qcom_tzmem.h:25 Enum value
     'QCOM_TZMEM_POLICY_STATIC' not described in enum 'qcom_tzmem_policy'
    Warning: ../include/linux/firmware/qcom/qcom_tzmem.h:25 Enum value
     'QCOM_TZMEM_POLICY_MULTIPLIER' not described in enum 'qcom_tzmem_policy'
    Warning: ../include/linux/firmware/qcom/qcom_tzmem.h:25 Enum value
     'QCOM_TZMEM_POLICY_ON_DEMAND' not described in enum 'qcom_tzmem_policy'
    
    Fixes: 84f5a7b67b61 ("firmware: qcom: add a dedicated TrustZone buffer allocator")
    Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
    Link: https://lore.kernel.org/r/20251017191323.1820167-1-rdunlap@infradead.org
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

firmware: stratix10-svc: fix make htmldocs warning for stratix10_svc [+ + +]
Author: Dinh Nguyen <dinguyen@kernel.org>
Date:   Fri Nov 14 12:58:13 2025 -0600

    firmware: stratix10-svc: fix make htmldocs warning for stratix10_svc
    
    [ Upstream commit 377441d53a2df61b105e823b335010cd4f1a6e56 ]
    
    Fix this warning that was generated from "make htmldocs":
    
    WARNING: drivers/firmware/stratix10-svc.c:58 struct member 'intel_svc_fcs'
    not described in 'stratix10_svc'
    
    Fixes: e6281c26674e ("firmware: stratix10-svc: Add support for FCS")
    Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
    Closes: https://lore.kernel.org/linux-next/20251106145941.37920e97@canb.auug.org.au/
    Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
    Link: https://patch.msgid.link/20251114185815.358423-1-dinguyen@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
firmware_loader: make RUST_FW_LOADER_ABSTRACTIONS select FW_LOADER [+ + +]
Author: Alexandre Courbot <acourbot@nvidia.com>
Date:   Thu Nov 6 11:40:54 2025 +0900

    firmware_loader: make RUST_FW_LOADER_ABSTRACTIONS select FW_LOADER
    
    [ Upstream commit 9906efa545d1d2cf25a614eeb219d3f8d5a302cd ]
    
    The use of firmware_loader is an implementation detail of drivers rather
    than a dependency. FW_LOADER is typically selected rather than depended
    on; the Rust abstractions should do the same thing.
    
    Fixes: de6582833db0 ("rust: add firmware abstractions")
    Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
    Link: https://patch.msgid.link/20251106-b4-select-rust-fw-v3-1-771172257755@nvidia.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
fs/9p: Don't open remote file with APPEND mode when writeback cache is used [+ + +]
Author: Tingmao Wang <m@maowtm.org>
Date:   Sun Nov 2 23:56:30 2025 +0000

    fs/9p: Don't open remote file with APPEND mode when writeback cache is used
    
    [ Upstream commit a63dd8fd137933551bfd9aeeeaa942f04c7aad65 ]
    
    When page cache is used, writebacks are done on a page granularity, and it
    is expected that the underlying filesystem (such as v9fs) should respect
    the write position.  However, currently v9fs will passthrough O_APPEND to
    the server even on cached mode.  This causes data corruption if a sync or
    fstat gets between two writes to the same file.
    
    This patch removes the APPEND flag from the open request we send to the
    server when writeback caching is involved.  I believe keeping server-side
    APPEND is probably fine for uncached mode (even if two fds are opened, one
    without O_APPEND and one with it, this should still be fine since they
    would use separate fid for the writes).
    
    Signed-off-by: Tingmao Wang <m@maowtm.org>
    Fixes: 4eb3117888a9 ("fs/9p: Rework cache modes and add new options to Documentation")
    Message-ID: <20251102235631.8724-1-m@maowtm.org>
    Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
fs/nls: Fix inconsistency between utf8_to_utf32() and utf32_to_utf8() [+ + +]
Author: Armin Wolf <W_Armin@gmx.de>
Date:   Sat Nov 29 12:15:35 2025 +0100

    fs/nls: Fix inconsistency between utf8_to_utf32() and utf32_to_utf8()
    
    [ Upstream commit c36f9d7b2869a003a2f7d6ff2c6bac9e62fd7d68 ]
    
    After commit 25524b619029 ("fs/nls: Fix utf16 to utf8 conversion"),
    the return values of utf8_to_utf32() and utf32_to_utf8() are
    inconsistent when encountering an error: utf8_to_utf32() returns -1,
    while utf32_to_utf8() returns errno codes. Fix this inconsistency
    by modifying utf8_to_utf32() to return errno codes as well.
    
    Fixes: 25524b619029 ("fs/nls: Fix utf16 to utf8 conversion")
    Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
    Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
    Signed-off-by: Armin Wolf <W_Armin@gmx.de>
    Link: https://patch.msgid.link/20251129111535.8984-1-W_Armin@gmx.de
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

fs/nls: Fix utf16 to utf8 conversion [+ + +]
Author: Armin Wolf <W_Armin@gmx.de>
Date:   Tue Nov 11 14:11:22 2025 +0100

    fs/nls: Fix utf16 to utf8 conversion
    
    [ Upstream commit 25524b6190295577e4918c689644451365e6466d ]
    
    Currently the function responsible for converting between utf16 and
    utf8 strings will ignore any characters that cannot be converted. This
    however also includes multi-byte characters that do not fit into the
    provided string buffer.
    
    This can cause problems if such a multi-byte character is followed by
    a single-byte character. In such a case the multi-byte character might
    be ignored when the provided string buffer is too small, but the
    single-byte character might fit and is thus still copied into the
    resulting string.
    
    Fix this by stop filling the provided string buffer once a character
    does not fit. In order to be able to do this extend utf32_to_utf8()
    to return useful errno codes instead of -1.
    
    Fixes: 74675a58507e ("NLS: update handling of Unicode")
    Signed-off-by: Armin Wolf <W_Armin@gmx.de>
    Link: https://patch.msgid.link/20251111131125.3379-2-W_Armin@gmx.de
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
fs/ntfs3: out1 also needs to put mi [+ + +]
Author: Edward Adam Davis <eadavis@qq.com>
Date:   Tue Nov 11 19:13:56 2025 +0800

    fs/ntfs3: out1 also needs to put mi
    
    [ Upstream commit 4d78d1173a653acdaf7500a32b8dc530ca4ad075 ]
    
    After ntfs_look_free_mft() executes successfully, all subsequent code
    that fails to execute must put mi.
    
    Fixes: 4342306f0f0d ("fs/ntfs3: Add file operations and implementation")
    Signed-off-by: Edward Adam Davis <eadavis@qq.com>
    Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

fs/ntfs3: Prevent memory leaks in add sub record [+ + +]
Author: Edward Adam Davis <eadavis@qq.com>
Date:   Tue Nov 11 19:05:42 2025 +0800

    fs/ntfs3: Prevent memory leaks in add sub record
    
    [ Upstream commit ccc4e86d1c24260c18ae94541198c3711c140da6 ]
    
    If a rb node with the same ino already exists in the rb tree, the newly
    alloced mft_inode in ni_add_subrecord() will not have its memory cleaned
    up, which leads to the memory leak issue reported by syzbot.
    
    The best option to avoid this issue is to put the newly alloced mft node
    when a rb node with the same ino already exists in the rb tree and return
    the rb node found in the rb tree to the parent layer.
    
    syzbot reported:
    BUG: memory leak
    unreferenced object 0xffff888110bef280 (size 128):
      backtrace (crc 126a088f):
        ni_add_subrecord+0x31/0x180 fs/ntfs3/frecord.c:317
        ntfs_look_free_mft+0xf0/0x790 fs/ntfs3/fsntfs.c:715
    
    BUG: memory leak
    unreferenced object 0xffff888109093400 (size 1024):
      backtrace (crc 7197c55e):
        mi_init+0x2b/0x50 fs/ntfs3/record.c:105
        mi_format_new+0x40/0x220 fs/ntfs3/record.c:422
    
    Fixes: 4342306f0f0d ("fs/ntfs3: Add file operations and implementation")
    Reported-by: syzbot+3932ccb896e06f7414c9@syzkaller.appspotmail.com
    Signed-off-by: Edward Adam Davis <eadavis@qq.com>
    Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
gfs2: Prevent recursive memory reclaim [+ + +]
Author: Andreas Gruenbacher <agruenba@redhat.com>
Date:   Thu Nov 13 12:05:37 2025 +0000

    gfs2: Prevent recursive memory reclaim
    
    [ Upstream commit 2c5f4a53476e3cab70adc77b38942c066bd2c17c ]
    
    Function new_inode() returns a new inode with inode->i_mapping->gfp_mask
    set to GFP_HIGHUSER_MOVABLE.  This value includes the __GFP_FS flag, so
    allocations in that address space can recurse into filesystem memory
    reclaim.  We don't want that to happen because it can consume a
    significant amount of stack memory.
    
    Worse than that is that it can also deadlock: for example, in several
    places, gfs2_unstuff_dinode() is called inside filesystem transactions.
    This calls filemap_grab_folio(), which can allocate a new folio, which
    can trigger memory reclaim.  If memory reclaim recurses into the
    filesystem and starts another transaction, a deadlock will ensue.
    
    To fix these kinds of problems, prevent memory reclaim from recursing
    into filesystem code by making sure that the gfp_mask of inode address
    spaces doesn't include __GFP_FS.
    
    The "meta" and resource group address spaces were already using GFP_NOFS
    as their gfp_mask (which doesn't include __GFP_FS).  The default value
    of GFP_HIGHUSER_MOVABLE is less restrictive than GFP_NOFS, though.  To
    avoid being overly limiting, use the default value and only knock off
    the __GFP_FS flag.  I'm not sure if this will actually make a
    difference, but it also shouldn't hurt.
    
    This patch is loosely based on commit ad22c7a043c2 ("xfs: prevent stack
    overflows from page cache allocation").
    
    Fixes xfstest generic/273.
    
    Fixes: dc0b9435238c ("gfs: Don't use GFP_NOFS in gfs2_unstuff_dinode")
    Reviewed-by: Andrew Price <anprice@redhat.com>
    Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
gpu: host1x: Fix race in syncpt alloc/free [+ + +]
Author: Mainak Sen <msen@nvidia.com>
Date:   Mon Jul 7 18:17:39 2025 +0900

    gpu: host1x: Fix race in syncpt alloc/free
    
    [ Upstream commit c7d393267c497502fa737607f435f05dfe6e3d9b ]
    
    Fix race condition between host1x_syncpt_alloc()
    and host1x_syncpt_put() by using kref_put_mutex()
    instead of kref_put() + manual mutex locking.
    
    This ensures no thread can acquire the
    syncpt_mutex after the refcount drops to zero
    but before syncpt_release acquires it.
    This prevents races where syncpoints could
    be allocated while still being cleaned up
    from a previous release.
    
    Remove explicit mutex locking in syncpt_release
    as kref_put_mutex() handles this atomically.
    
    Signed-off-by: Mainak Sen <msen@nvidia.com>
    Fixes: f5ba33fb9690 ("gpu: host1x: Reserve VBLANK syncpoints at initialization")
    Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
    Signed-off-by: Thierry Reding <treding@nvidia.com>
    Link: https://lore.kernel.org/r/20250707-host1x-syncpt-race-fix-v1-1-28b0776e70bc@nvidia.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
greybus: gb-beagleplay: Fix timeout handling in bootloader functions [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Fri Nov 21 14:40:27 2025 +0800

    greybus: gb-beagleplay: Fix timeout handling in bootloader functions
    
    [ Upstream commit e6df0f649cff08da7a2feb6d963b39076ca129f9 ]
    
    wait_for_completion_timeout() returns the remaining jiffies
    (at least 1) on success or 0 on timeout, but never negative
    error codes. The current code incorrectly checks for negative
    values, causing timeouts to be ignored and treated as success.
    
    Check for a zero return value to correctly identify and
    handle timeout events.
    
    Fixes: 0cf7befa3ea2 ("greybus: gb-beagleplay: Add firmware upload API")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Link: https://patch.msgid.link/20251121064027.571-1-vulab@iscas.ac.cn
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
HID: logitech-hidpp: Do not assume FAP in hidpp_send_message_sync() [+ + +]
Author: Mavroudis Chatzilazaridis <mavchatz@protonmail.com>
Date:   Thu Oct 2 19:30:58 2025 +0000

    HID: logitech-hidpp: Do not assume FAP in hidpp_send_message_sync()
    
    [ Upstream commit aba7963544d47d82cdf36602a6678a093af0299d ]
    
    Currently, hidpp_send_message_sync() retries sending the message when the
    device returns a busy error code, specifically HIDPP20_ERROR_BUSY, which
    has a different meaning under RAP. This ends up being a problem because
    this function is used for both FAP and RAP messages.
    
    This issue is not noticeable on older receivers with unreachable devices
    since they return HIDPP_ERROR_RESOURCE_ERROR (0x09), which is not equal to
    HIDPP20_ERROR_BUSY (0x08).
    
    However, newer receivers return HIDPP_ERROR_UNKNOWN_DEVICE (0x08) which
    happens to equal to HIDPP20_ERROR_BUSY, causing unnecessary retries when
    the device is not actually busy.
    
    This is resolved by checking if the error response is FAP or RAP and
    picking the respective ERROR_BUSY code.
    
    Fixes: 60165ab774cb ("HID: logitech-hidpp: rework one more time the retries attempts")
    Signed-off-by: Mavroudis Chatzilazaridis <mavchatz@protonmail.com>
    Tested-by: Stuart Hayhurst <stuart.a.hayhurst@gmail.com>
    Signed-off-by: Jiri Kosina <jkosina@suse.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
hwmon: sy7636a: Fix regulator_enable resource leak on error path [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Thu Nov 27 00:26:02 2025 +0800

    hwmon: sy7636a: Fix regulator_enable resource leak on error path
    
    [ Upstream commit 2f88425ef590b7fcc2324334b342e048edc144a9 ]
    
    In sy7636a_sensor_probe(), regulator_enable() is called but if
    devm_hwmon_device_register_with_info() fails, the function returns
    without calling regulator_disable(), leaving the regulator enabled
    and leaking the reference count.
    
    Switch to devm_regulator_get_enable() to automatically
    manage the regulator resource.
    
    Fixes: de34a4053250 ("hwmon: sy7636a: Add temperature driver for sy7636a")
    Suggested-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Link: https://lore.kernel.org/r/20251126162602.2086-1-vulab@iscas.ac.cn
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
i3c: fix refcount inconsistency in i3c_master_register [+ + +]
Author: Frank Li <Frank.Li@nxp.com>
Date:   Thu Oct 16 10:38:13 2025 -0400

    i3c: fix refcount inconsistency in i3c_master_register
    
    [ Upstream commit 9d4f219807d5ac11fb1d596e4ddb09336b040067 ]
    
    In `i3c_master_register`, a possible refcount inconsistency has been
    identified, causing possible resource leak.
    
    Function `of_node_get` increases the refcount of `parent->of_node`. If
    function `i3c_bus_init` fails, the function returns immediately without
    a corresponding decrease, resulting in an inconsistent refcounter.
    
    Move call i3c_bus_init() after device_initialize() to let callback
    i3c_masterdev_release() release of_node.
    
    Reported-by: Shuhao Fu <sfual@cse.ust.hk>
    Closes: https://lore.kernel.org/linux-i3c/aO2tjp_FsV_WohPG@osx.local/T/#m2c05a982beeb14e7bf039c1d8db856734bf234c7
    Fixes: 3a379bbcea0a ("i3c: Add core I3C infrastructure")
    Signed-off-by: Frank Li <Frank.Li@nxp.com>
    Link: https://patch.msgid.link/20251016143814.2551256-1-Frank.Li@nxp.com
    Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

i3c: master: svc: Prevent incomplete IBI transaction [+ + +]
Author: Stanley Chu <yschu@nuvoton.com>
Date:   Mon Oct 27 11:47:15 2025 +0800

    i3c: master: svc: Prevent incomplete IBI transaction
    
    [ Upstream commit 3a36273e5a07dda0ccec193800f3b78c3c0380af ]
    
    If no free IBI slot is available, svc_i3c_master_handle_ibi returns
    immediately. This causes the STOP condition to be missed because the
    EmitStop request is sent when the transfer is not complete. To resolve
    this, svc_i3c_master_handle_ibi must wait for the transfer to complete
    before returning.
    
    Fixes: dd3c52846d59 ("i3c: master: svc: Add Silvaco I3C master driver")
    Signed-off-by: Stanley Chu <yschu@nuvoton.com>
    Reviewed-by: Frank Li <Frank.Li@nxp.com>
    Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Link: https://patch.msgid.link/20251027034715.708243-1-yschu@nuvoton.com
    Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
iio: imu: st_lsm6dsx: Fix measurement unit for odr struct member [+ + +]
Author: Francesco Lavra <flavra@baylibre.com>
Date:   Fri Oct 17 18:42:54 2025 +0200

    iio: imu: st_lsm6dsx: Fix measurement unit for odr struct member
    
    [ Upstream commit c6d702f2b77194b62fb2098c63bb7f2a87da142d ]
    
    The `odr` field in struct st_lsm6dsx_sensor contains a data rate
    value expressed in mHz, not in Hz.
    
    Fixes: f8710f0357bc3 ("iio: imu: st_lsm6dsx: express odr in mHZ")
    Signed-off-by: Francesco Lavra <flavra@baylibre.com>
    Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
ima: Handle error code returned by ima_filter_rule_match() [+ + +]
Author: Zhao Yipeng <zhaoyipeng5@huawei.com>
Date:   Thu Nov 20 15:18:05 2025 +0800

    ima: Handle error code returned by ima_filter_rule_match()
    
    [ Upstream commit 738c9738e690f5cea24a3ad6fd2d9a323cf614f6 ]
    
    In ima_match_rules(), if ima_filter_rule_match() returns -ENOENT due to
    the rule being NULL, the function incorrectly skips the 'if (!rc)' check
    and sets 'result = true'. The LSM rule is considered a match, causing
    extra files to be measured by IMA.
    
    This issue can be reproduced in the following scenario:
    After unloading the SELinux policy module via 'semodule -d', if an IMA
    measurement is triggered before ima_lsm_rules is updated,
    in ima_match_rules(), the first call to ima_filter_rule_match() returns
    -ESTALE. This causes the code to enter the 'if (rc == -ESTALE &&
    !rule_reinitialized)' block, perform ima_lsm_copy_rule() and retry. In
    ima_lsm_copy_rule(), since the SELinux module has been removed, the rule
    becomes NULL, and the second call to ima_filter_rule_match() returns
    -ENOENT. This bypasses the 'if (!rc)' check and results in a false match.
    
    Call trace:
      selinux_audit_rule_match+0x310/0x3b8
      security_audit_rule_match+0x60/0xa0
      ima_match_rules+0x2e4/0x4a0
      ima_match_policy+0x9c/0x1e8
      ima_get_action+0x48/0x60
      process_measurement+0xf8/0xa98
      ima_bprm_check+0x98/0xd8
      security_bprm_check+0x5c/0x78
      search_binary_handler+0x6c/0x318
      exec_binprm+0x58/0x1b8
      bprm_execve+0xb8/0x130
      do_execveat_common.isra.0+0x1a8/0x258
      __arm64_sys_execve+0x48/0x68
      invoke_syscall+0x50/0x128
      el0_svc_common.constprop.0+0xc8/0xf0
      do_el0_svc+0x24/0x38
      el0_svc+0x44/0x200
      el0t_64_sync_handler+0x100/0x130
      el0t_64_sync+0x3c8/0x3d0
    
    Fix this by changing 'if (!rc)' to 'if (rc <= 0)' to ensure that error
    codes like -ENOENT do not bypass the check and accidentally result in a
    successful match.
    
    Fixes: 4af4662fa4a9d ("integrity: IMA policy")
    Signed-off-by: Zhao Yipeng <zhaoyipeng5@huawei.com>
    Reviewed-by: Roberto Sassu <roberto.sassu@huawei.com>
    Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
inet: Avoid ehash lookup race in inet_ehash_insert() [+ + +]
Author: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
Date:   Wed Oct 15 10:02:35 2025 +0800

    inet: Avoid ehash lookup race in inet_ehash_insert()
    
    [ Upstream commit 1532ed0d0753c83e72595f785f82b48c28bbe5dc ]
    
    Since ehash lookups are lockless, if one CPU performs a lookup while
    another concurrently deletes and inserts (removing reqsk and inserting sk),
    the lookup may fail to find the socket, an RST may be sent.
    
    The call trace map is drawn as follows:
       CPU 0                           CPU 1
       -----                           -----
                                    inet_ehash_insert()
                                    spin_lock()
                                    sk_nulls_del_node_init_rcu(osk)
    __inet_lookup_established()
            (lookup failed)
                                    __sk_nulls_add_node_rcu(sk, list)
                                    spin_unlock()
    
    As both deletion and insertion operate on the same ehash chain, this patch
    introduces a new sk_nulls_replace_node_init_rcu() helper functions to
    implement atomic replacement.
    
    Fixes: 5e0724d027f0 ("tcp/dccp: fix hashdance race for passive sessions")
    Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
    Reviewed-by: Jiayuan Chen <jiayuan.chen@linux.dev>
    Signed-off-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
    Reviewed-by: Eric Dumazet <edumazet@google.com>
    Link: https://patch.msgid.link/20251015020236.431822-3-xuanqiang.luo@linux.dev
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

inet: Avoid ehash lookup race in inet_twsk_hashdance_schedule() [+ + +]
Author: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
Date:   Wed Oct 15 10:02:36 2025 +0800

    inet: Avoid ehash lookup race in inet_twsk_hashdance_schedule()
    
    [ Upstream commit b8ec80b130211e7bf076ef72365952979d5f7a72 ]
    
    Since ehash lookups are lockless, if another CPU is converting sk to tw
    concurrently, fetching the newly inserted tw with tw->tw_refcnt == 0 cause
    lookup failure.
    
    The call trace map is drawn as follows:
       CPU 0                                CPU 1
       -----                                -----
                                         inet_twsk_hashdance_schedule()
                                         spin_lock()
                                         inet_twsk_add_node_rcu(tw, ...)
    __inet_lookup_established()
    (find tw, failure due to tw_refcnt = 0)
                                         __sk_nulls_del_node_init_rcu(sk)
                                         refcount_set(&tw->tw_refcnt, 3)
                                         spin_unlock()
    
    By replacing sk with tw atomically via hlist_nulls_replace_init_rcu() after
    setting tw_refcnt, we ensure that tw is either fully initialized or not
    visible to other CPUs, eliminating the race.
    
    It's worth noting that we held lock_sock() before the replacement, so
    there's no need to check if sk is hashed. Thanks to Kuniyuki Iwashima!
    
    Fixes: 3ab5aee7fe84 ("net: Convert TCP & DCCP hash tables to use RCU / hlist_nulls")
    Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
    Reviewed-by: Jiayuan Chen <jiayuan.chen@linux.dev>
    Signed-off-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
    Reviewed-by: Eric Dumazet <edumazet@google.com>
    Link: https://patch.msgid.link/20251015020236.431822-4-xuanqiang.luo@linux.dev
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
interconnect: debugfs: Fix incorrect error handling for NULL path [+ + +]
Author: Kuan-Wei Chiu <visitorckw@gmail.com>
Date:   Fri Oct 10 23:14:47 2025 +0800

    interconnect: debugfs: Fix incorrect error handling for NULL path
    
    [ Upstream commit 6bfe104fd0f94d0248af22c256ce725ee087157b ]
    
    The icc_commit_set() function, used by the debugfs interface, checks
    the validity of the global cur_path pointer using IS_ERR_OR_NULL().
    However, in the specific case where cur_path is NULL, while
    IS_ERR_OR_NULL(NULL) correctly evaluates to true, the subsequent call
    to PTR_ERR(NULL) returns 0.
    
    This causes the function to return a success code (0) instead of an
    error, misleading the user into believing their bandwidth request was
    successfully committed when, in fact, no operation was performed.
    
    Fix this by adding an explicit check to return -EINVAL if cur_path is
    NULL. This prevents silent failures and ensures that an invalid
    operational sequence is immediately and clearly reported as an error.
    
    Fixes: 770c69f037c1 ("interconnect: Add debugfs test client")
    Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
    Link: https://lore.kernel.org/r/20251010151447.2289779-1-visitorckw@gmail.com
    Signed-off-by: Georgi Djakov <djakov@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

interconnect: qcom: msm8996: add missing link to SLAVE_USB_HS [+ + +]
Author: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Date:   Thu Oct 2 11:53:00 2025 +0300

    interconnect: qcom: msm8996: add missing link to SLAVE_USB_HS
    
    [ Upstream commit 8cf9b43f6b4d90e19a9341edefdd46842d4adb55 ]
    
    >From the initial submission the interconnect driver missed the link from
    SNOC_PNOC to the USB 2 configuration space. Add missing link in order to
    let the platform configure and utilize this path.
    
    Fixes: 7add937f5222 ("interconnect: qcom: Add MSM8996 interconnect provider driver")
    Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Link: https://lore.kernel.org/r/20251002-fix-msm8996-icc-v1-1-a36a05d1f869@oss.qualcomm.com
    Signed-off-by: Georgi Djakov <djakov@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
iomap: always run error completions in user context [+ + +]
Author: Christoph Hellwig <hch@lst.de>
Date:   Thu Nov 13 18:06:27 2025 +0100

    iomap: always run error completions in user context
    
    [ Upstream commit ddb4873286e03e193c5a3bebb5fc6fa820e9ee3a ]
    
    At least zonefs expects error completions to be able to sleep.  Because
    error completions aren't performance critical, just defer them to workqueue
    context unconditionally.
    
    Fixes: 8dcc1a9d90c1 ("fs: New zonefs file system")
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Link: https://patch.msgid.link/20251113170633.1453259-3-hch@lst.de
    Reviewed-by: Jan Kara <jack@suse.cz>
    Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
    Signed-off-by: Christian Brauner <brauner@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

iomap: factor out a iomap_dio_done helper [+ + +]
Author: Christoph Hellwig <hch@lst.de>
Date:   Thu Feb 6 07:40:04 2025 +0100

    iomap: factor out a iomap_dio_done helper
    
    [ Upstream commit ae2f33a519af3730cacd1c787ebe1f7475df5ba8 ]
    
    Split out the struct iomap-dio level final completion from
    iomap_dio_bio_end_io into a helper to clean up the code and make it
    reusable.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Link: https://lore.kernel.org/r/20250206064035.2323428-7-hch@lst.de
    Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
    Signed-off-by: Christian Brauner <brauner@kernel.org>
    Stable-dep-of: ddb4873286e0 ("iomap: always run error completions in user context")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
iommu/arm-smmu-qcom: Enable use of all SMR groups when running bare-metal [+ + +]
Author: Stephan Gerhold <stephan.gerhold@linaro.org>
Date:   Thu Aug 21 10:33:53 2025 +0200

    iommu/arm-smmu-qcom: Enable use of all SMR groups when running bare-metal
    
    [ Upstream commit 5583a55e074b33ccd88ac0542fd7cd656a7e2c8c ]
    
    Some platforms (e.g. SC8280XP and X1E) support more than 128 stream
    matching groups. This is more than what is defined as maximum by the ARM
    SMMU architecture specification. Commit 122611347326 ("iommu/arm-smmu-qcom:
    Limit the SMR groups to 128") disabled use of the additional groups because
    they don't exhibit the same behavior as the architecture supported ones.
    
    It seems like this is just another quirk of the hypervisor: When running
    bare-metal without the hypervisor, the additional groups appear to behave
    just like all others. The boot firmware uses some of the additional groups,
    so ignoring them in this situation leads to stream match conflicts whenever
    we allocate a new SMR group for the same SID.
    
    The workaround exists primarily because the bypass quirk detection fails
    when using a S2CR register from the additional matching groups, so let's
    perform the test with the last reliable S2CR (127) and then limit the
    number of SMR groups only if we detect that we are running below the
    hypervisor (because of the bypass quirk).
    
    Fixes: 122611347326 ("iommu/arm-smmu-qcom: Limit the SMR groups to 128")
    Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
    Signed-off-by: Will Deacon <will@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
iommu/arm-smmu-v3: Fix error check in arm_smmu_alloc_cd_tables [+ + +]
Author: Ryan Huang <tzukui@google.com>
Date:   Fri Nov 7 11:09:17 2025 -0800

    iommu/arm-smmu-v3: Fix error check in arm_smmu_alloc_cd_tables
    
    [ Upstream commit 5941f0e0c1e0be03ebc15b461f64208f5250d3d9 ]
    
    In arm_smmu_alloc_cd_tables(), the error check following the
    dma_alloc_coherent() for cd_table->l2.l1tab incorrectly tests
    cd_table->l2.l2ptrs.
    
    This means an allocation failure for l1tab goes undetected, causing
    the function to return 0 (success) erroneously.
    
    Correct the check to test cd_table->l2.l1tab.
    
    Fixes: e3b1be2e73db ("iommu/arm-smmu-v3: Reorganize struct arm_smmu_ctx_desc_cfg")
    Signed-off-by: Daniel Mentz <danielmentz@google.com>
    Signed-off-by: Ryan Huang <tzukui@google.com>
    Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
    Reviewed-by: Pranjal Shrivastava <praan@google.com>
    Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
    Signed-off-by: Will Deacon <will@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
iommu/vt-d: Fix unused invalidation hint in qi_desc_iotlb [+ + +]
Author: Aashish Sharma <aashish@aashishsharma.net>
Date:   Wed Nov 19 13:16:13 2025 +0800

    iommu/vt-d: Fix unused invalidation hint in qi_desc_iotlb
    
    [ Upstream commit 6b38a108eeb3936b21643191db535a35dd7c890b ]
    
    Invalidation hint (ih) in the function 'qi_desc_iotlb' is initialized
    to zero and never used. It is embedded in the 0th bit of the 'addr'
    parameter. Get the correct 'ih' value from there.
    
    Fixes: f701c9f36bcb ("iommu/vt-d: Factor out invalidation descriptor composition")
    Signed-off-by: Aashish Sharma <aashish@aashishsharma.net>
    Link: https://lore.kernel.org/r/20251009010903.1323979-1-aashish@aashishsharma.net
    Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
    Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
ipv6: clear RA flags when adding a static route [+ + +]
Author: Fernando Fernandez Mancera <fmancera@suse.de>
Date:   Sat Nov 15 10:59:38 2025 +0100

    ipv6: clear RA flags when adding a static route
    
    [ Upstream commit f72514b3c5698e4b900b25345e09f9ed33123de6 ]
    
    When an IPv6 Router Advertisement (RA) is received for a prefix, the
    kernel creates the corresponding on-link route with flags RTF_ADDRCONF
    and RTF_PREFIX_RT configured and RTF_EXPIRES if lifetime is set.
    
    If later a user configures a static IPv6 address on the same prefix the
    kernel clears the RTF_EXPIRES flag but it doesn't clear the RTF_ADDRCONF
    and RTF_PREFIX_RT. When the next RA for that prefix is received, the
    kernel sees the route as RA-learned and wrongly configures back the
    lifetime. This is problematic because if the route expires, the static
    address won't have the corresponding on-link route.
    
    This fix clears the RTF_ADDRCONF and RTF_PREFIX_RT flags preventing that
    the lifetime is configured when the next RA arrives. If the static
    address is deleted, the route becomes RA-learned again.
    
    Fixes: 14ef37b6d00e ("ipv6: fix route lookup in addrconf_prefix_rcv()")
    Reported-by: Garri Djavadyan <g.djavadyan@gmail.com>
    Closes: https://lore.kernel.org/netdev/ba807d39aca5b4dcf395cc11dca61a130a52cfd3.camel@gmail.com/
    Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
    Reviewed-by: David Ahern <dsahern@kernel.org>
    Link: https://patch.msgid.link/20251115095939.6967-1-fmancera@suse.de
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
irqchip/imx-mu-msi: Fix section mismatch [+ + +]
Author: Johan Hovold <johan@kernel.org>
Date:   Mon Oct 13 11:46:06 2025 +0200

    irqchip/imx-mu-msi: Fix section mismatch
    
    [ Upstream commit 64acfd8e680ff8992c101fe19aadb112ce551072 ]
    
    Platform drivers can be probed after their init sections have been
    discarded so the irqchip init callbacks must not live in init.
    
    Fixes: 70afdab904d2 ("irqchip: Add IMX MU MSI controller driver")
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
irqchip/irq-bcm7038-l1: Fix section mismatch [+ + +]
Author: Johan Hovold <johan@kernel.org>
Date:   Mon Oct 13 11:46:03 2025 +0200

    irqchip/irq-bcm7038-l1: Fix section mismatch
    
    [ Upstream commit e9db5332caaf4789ae3bafe72f61ad8e6e0c2d81 ]
    
    Platform drivers can be probed after their init sections have been
    discarded so the irqchip init callback must not live in init.
    
    Fixes: c057c799e379 ("irqchip/irq-bcm7038-l1: Switch to IRQCHIP_PLATFORM_DRIVER")
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
irqchip/irq-bcm7120-l2: Fix section mismatch [+ + +]
Author: Johan Hovold <johan@kernel.org>
Date:   Mon Oct 13 11:46:04 2025 +0200

    irqchip/irq-bcm7120-l2: Fix section mismatch
    
    [ Upstream commit bfc0c5beab1fde843677923cf008f41d583c980a ]
    
    Platform drivers can be probed after their init sections have been
    discarded so the irqchip init callbacks must not live in init.
    
    Fixes: 3ac268d5ed22 ("irqchip/irq-bcm7120-l2: Switch to IRQCHIP_PLATFORM_DRIVER")
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
irqchip/irq-brcmstb-l2: Fix section mismatch [+ + +]
Author: Johan Hovold <johan@kernel.org>
Date:   Mon Oct 13 11:46:05 2025 +0200

    irqchip/irq-brcmstb-l2: Fix section mismatch
    
    [ Upstream commit bbe1775924478e95372c2f896064ab6446000713 ]
    
    Platform drivers can be probed after their init sections have been
    discarded so the irqchip init callbacks must not live in init.
    
    Fixes: 51d9db5c8fbb ("irqchip/irq-brcmstb-l2: Switch to IRQCHIP_PLATFORM_DRIVER")
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
irqchip/mchp-eic: Fix error code in mchp_eic_domain_alloc() [+ + +]
Author: Dan Carpenter <dan.carpenter@linaro.org>
Date:   Tue Dec 9 09:54:16 2025 +0300

    irqchip/mchp-eic: Fix error code in mchp_eic_domain_alloc()
    
    [ Upstream commit 7dbc0d40d8347bd9de55c904f59ea44bcc8dedb7 ]
    
    If irq_domain_translate_twocell() sets "hwirq" to >= MCHP_EIC_NIRQ (2) then
    it results in an out of bounds access.
    
    The code checks for invalid values, but doesn't set the error code.  Return
    -EINVAL in that case, instead of returning success.
    
    Fixes: 00fa3461c86d ("irqchip/mchp-eic: Add support for the Microchip EIC")
    Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
    Link: https://patch.msgid.link/aTfHmOz6IBpTIPU5@stanley.mountain
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
irqchip/qcom-irq-combiner: Fix section mismatch [+ + +]
Author: Johan Hovold <johan@kernel.org>
Date:   Mon Oct 13 11:46:09 2025 +0200

    irqchip/qcom-irq-combiner: Fix section mismatch
    
    [ Upstream commit 9b685058ca936752285c5520d351b828312ac965 ]
    
    Platform drivers can be probed after their init sections have been
    discarded so the probe callback must not live in init.
    
    Fixes: f20cc9b00c7b ("irqchip/qcom: Add IRQ combiner driver")
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
irqchip/renesas-rzg2l: Fix section mismatch [+ + +]
Author: Johan Hovold <johan@kernel.org>
Date:   Mon Oct 13 11:46:07 2025 +0200

    irqchip/renesas-rzg2l: Fix section mismatch
    
    [ Upstream commit 5b338fbb2b5b21d61a9eaba14dcf43108de30258 ]
    
    Platform drivers can be probed after their init sections have been
    discarded so the irqchip init callbacks must not live in init.
    
    Fixes: d011c022efe27579 ("irqchip/renesas-rzg2l: Add support for RZ/Five SoC")
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
irqchip/starfive-jh8100: Fix section mismatch [+ + +]
Author: Johan Hovold <johan@kernel.org>
Date:   Mon Oct 13 11:46:08 2025 +0200

    irqchip/starfive-jh8100: Fix section mismatch
    
    [ Upstream commit f798bdb9aa81c425184f92e3d0b44d3b53d10da7 ]
    
    Platform drivers can be probed after their init sections have been
    discarded so the irqchip init callback must not live in init.
    
    Fixes: e4e535036173 ("irqchip: Add StarFive external interrupt controller")
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Reviewed-by: Changhuang Liang <changhuang.liang@starfivetech.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
leds: netxbig: Fix GPIO descriptor leak in error paths [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Fri Oct 31 10:16:20 2025 +0800

    leds: netxbig: Fix GPIO descriptor leak in error paths
    
    [ Upstream commit 03865dd8af52eb16c38062df2ed30a91b604780e ]
    
    The function netxbig_gpio_ext_get() acquires GPIO descriptors but
    fails to release them when errors occur mid-way through initialization.
    The cleanup callback registered by devm_add_action_or_reset() only
    runs on success, leaving acquired GPIOs leaked on error paths.
    
    Add goto-based error handling to release all acquired GPIOs before
    returning errors.
    
    Fixes: 9af512e81964 ("leds: netxbig: Convert to use GPIO descriptors")
    Suggested-by: Markus Elfring <Markus.Elfring@web.de>
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Link: https://patch.msgid.link/20251031021620.781-1-vulab@iscas.ac.cn
    Signed-off-by: Lee Jones <lee@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

leds: rgb: leds-qcom-lpg: Don't enable TRILED when configuring PWM [+ + +]
Author: Fenglin Wu <fenglin.wu@oss.qualcomm.com>
Date:   Wed Nov 19 14:06:43 2025 +0800

    leds: rgb: leds-qcom-lpg: Don't enable TRILED when configuring PWM
    
    [ Upstream commit 072cd5f458d76b9e15d89ebdaea8b5cb1312eeef ]
    
    The PWM signal from the LPG channel can be routed to PMIC GPIOs with
    proper GPIO configuration, and it is not necessary to enable the
    TRILED channel in that case. This also applies to the LPG channels
    that mapped to TRILED channels. Additionally, enabling the TRILED
    channel unnecessarily would cause a voltage increase in its power
    supply. Hence remove it.
    
    Fixes: 24e2d05d1b68 ("leds: Add driver for Qualcomm LPG")
    Signed-off-by: Fenglin Wu <fenglin.wu@oss.qualcomm.com>
    Reviewed-by: Bjorn Andersson <andersson@kernel.org>
    Link: https://patch.msgid.link/20251119-lpg_triled_fix-v3-2-84b6dbdc774a@oss.qualcomm.com
    Signed-off-by: Lee Jones <lee@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
lib/vsprintf: Check pointer before dereferencing in time_and_date() [+ + +]
Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date:   Mon Nov 10 14:21:18 2025 +0100

    lib/vsprintf: Check pointer before dereferencing in time_and_date()
    
    [ Upstream commit 372a12bd5df0199aa234eaf8ef31ed7ecd61d40f ]
    
    The pointer may be invalid when gets to the printf(). In particular
    the time_and_date() dereferencing it in some cases without checking.
    
    Move the check from rtc_str() to time_and_date() to cover all cases.
    
    Fixes: 7daac5b2fdf8 ("lib/vsprintf: Print time64_t in human readable format")
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Reviewed-by: Petr Mladek <pmladek@suse.com>
    Link: https://patch.msgid.link/20251110132118.4113976-1-andriy.shevchenko@linux.intel.com
    Signed-off-by: Petr Mladek <pmladek@suse.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
libbpf: Fix parsing of multi-split BTF [+ + +]
Author: Alan Maguire <alan.maguire@oracle.com>
Date:   Tue Nov 4 20:33:08 2025 +0000

    libbpf: Fix parsing of multi-split BTF
    
    [ Upstream commit 4f596acc260e691a2e348f64230392f3472feea3 ]
    
    When creating multi-split BTF we correctly set the start string offset
    to be the size of the base string section plus the base BTF start
    string offset; the latter is needed for multi-split BTF since the
    offset is non-zero there.
    
    Unfortunately the BTF parsing case needed that logic and it was
    missed.
    
    Fixes: 4e29128a9ace ("libbpf/btf: Fix string handling to support multi-split BTF")
    Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Link: https://lore.kernel.org/bpf/20251104203309.318429-2-alan.maguire@oracle.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
Linux: Linux 6.12.63 [+ + +]
Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date:   Thu Dec 18 13:55:23 2025 +0100

    Linux 6.12.63
    
    Link: https://lore.kernel.org/r/20251216111320.896758933@linuxfoundation.org
    Tested-by: Brett A C Sheffield <bacs@librecast.net>
    Tested-by: Salvatore Bonaccorso <carnil@debian.org>
    Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
    Tested-by: Pavel Machek (CIP) <pavel@denx.de>
    Tested-by: Ron Economos <re@w6rz.net>
    Tested-by: Jeffrin Jose T <jeffrin@rajagiritech.edu.in>
    Tested-by: Jon Hunter <jonathanh@nvidia.com>
    Tested-by: Brett Mastbergen <bmastbergen@ciq.com>
    Tested-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
    Tested-by: Peter Schneider <pschneider1968@googlemail.com>
    Tested-by: Mark Brown <broonie@kernel.org>
    Tested-by: Miguel Ojeda <ojeda@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

 
locktorture: Fix memory leak in param_set_cpumask() [+ + +]
Author: Wang Liang <wangliang74@huawei.com>
Date:   Wed Nov 5 12:19:56 2025 -0800

    locktorture: Fix memory leak in param_set_cpumask()
    
    [ Upstream commit e52b43883d084a9af263c573f2a1bd1ca5088389 ]
    
    With CONFIG_CPUMASK_OFFSTACK=y, the 'bind_writers' buffer is allocated via
    alloc_cpumask_var() in param_set_cpumask(). But it is not freed, when
    setting the module parameter multiple times by sysfs interface or removing
    module.
    
    Below kmemleak trace is seen for this issue:
    
    unreferenced object 0xffff888100aabff8 (size 8):
      comm "bash", pid 323, jiffies 4295059233
      hex dump (first 8 bytes):
        07 00 00 00 00 00 00 00                          ........
      backtrace (crc ac50919):
        __kmalloc_node_noprof+0x2e5/0x420
        alloc_cpumask_var_node+0x1f/0x30
        param_set_cpumask+0x26/0xb0 [locktorture]
        param_attr_store+0x93/0x100
        module_attr_store+0x1b/0x30
        kernfs_fop_write_iter+0x114/0x1b0
        vfs_write+0x300/0x410
        ksys_write+0x60/0xd0
        do_syscall_64+0xa4/0x260
        entry_SYSCALL_64_after_hwframe+0x77/0x7f
    
    This issue can be reproduced by:
      insmod locktorture.ko bind_writers=1
      rmmod locktorture
    
    or:
      insmod locktorture.ko bind_writers=1
      echo 2 > /sys/module/locktorture/parameters/bind_writers
    
    Considering that setting the module parameter 'bind_writers' or
    'bind_readers' by sysfs interface has no real effect, set the parameter
    permissions to 0444. To fix the memory leak when removing module, free
    'bind_writers' and 'bind_readers' memory in lock_torture_cleanup().
    
    Fixes: 73e341242483 ("locktorture: Add readers_bind and writers_bind module parameters")
    Suggested-by: Zhang Changzhong <zhangchangzhong@huawei.com>
    Signed-off-by: Wang Liang <wangliang74@huawei.com>
    Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
    Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
LoongArch: Add machine_kexec_mask_interrupts() implementation [+ + +]
Author: Huacai Chen <chenhuacai@kernel.org>
Date:   Sat Dec 13 17:49:50 2025 +0800

    LoongArch: Add machine_kexec_mask_interrupts() implementation
    
    Commit 863a320dc6fd7c855f47da4b ("LoongArch: Mask all interrupts during
    kexec/kdump") is backported to LTS branches, but they lack a generic
    machine_kexec_mask_interrupts() implementation, so add an arch-specific
    one.
    
    Signed-off-by: Tianyang Zhang <zhangtianyang@loongson.cn>
    Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

 
macintosh/mac_hid: fix race condition in mac_hid_toggle_emumouse [+ + +]
Author: Long Li <leo.lilong@huawei.com>
Date:   Tue Aug 19 17:10:35 2025 +0800

    macintosh/mac_hid: fix race condition in mac_hid_toggle_emumouse
    
    [ Upstream commit 1e4b207ffe54cf33a4b7a2912c4110f89c73bf3f ]
    
    The following warning appears when running syzkaller, and this issue also
    exists in the mainline code.
    
     ------------[ cut here ]------------
     list_add double add: new=ffffffffa57eee28, prev=ffffffffa57eee28, next=ffffffffa5e63100.
     WARNING: CPU: 0 PID: 1491 at lib/list_debug.c:35 __list_add_valid_or_report+0xf7/0x130
     Modules linked in:
     CPU: 0 PID: 1491 Comm: syz.1.28 Not tainted 6.6.0+ #3
     Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
     RIP: 0010:__list_add_valid_or_report+0xf7/0x130
     RSP: 0018:ff1100010dfb7b78 EFLAGS: 00010282
     RAX: 0000000000000000 RBX: ffffffffa57eee18 RCX: ffffffff97fc9817
     RDX: 0000000000040000 RSI: ffa0000002383000 RDI: 0000000000000001
     RBP: ffffffffa57eee28 R08: 0000000000000001 R09: ffe21c0021bf6f2c
     R10: 0000000000000001 R11: 6464615f7473696c R12: ffffffffa5e63100
     R13: ffffffffa57eee28 R14: ffffffffa57eee28 R15: ff1100010dfb7d48
     FS:  00007fb14398b640(0000) GS:ff11000119600000(0000) knlGS:0000000000000000
     CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
     CR2: 0000000000000000 CR3: 000000010d096005 CR4: 0000000000773ef0
     DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
     DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
     PKRU: 80000000
     Call Trace:
      <TASK>
      input_register_handler+0xb3/0x210
      mac_hid_start_emulation+0x1c5/0x290
      mac_hid_toggle_emumouse+0x20a/0x240
      proc_sys_call_handler+0x4c2/0x6e0
      new_sync_write+0x1b1/0x2d0
      vfs_write+0x709/0x950
      ksys_write+0x12a/0x250
      do_syscall_64+0x5a/0x110
      entry_SYSCALL_64_after_hwframe+0x78/0xe2
    
    The WARNING occurs when two processes concurrently write to the mac-hid
    emulation sysctl, causing a race condition in mac_hid_toggle_emumouse().
    Both processes read old_val=0, then both try to register the input handler,
    leading to a double list_add of the same handler.
    
      CPU0                             CPU1
      -------------------------        -------------------------
      vfs_write() //write 1            vfs_write()  //write 1
        proc_sys_write()                 proc_sys_write()
          mac_hid_toggle_emumouse()          mac_hid_toggle_emumouse()
            old_val = *valp // old_val=0
                                               old_val = *valp // old_val=0
                                               mutex_lock_killable()
                                               proc_dointvec() // *valp=1
                                               mac_hid_start_emulation()
                                                 input_register_handler()
                                               mutex_unlock()
            mutex_lock_killable()
            proc_dointvec()
            mac_hid_start_emulation()
              input_register_handler() //Trigger Warning
            mutex_unlock()
    
    Fix this by moving the old_val read inside the mutex lock region.
    
    Fixes: 99b089c3c38a ("Input: Mac button emulation - implement as an input filter")
    Signed-off-by: Long Li <leo.lilong@huawei.com>
    Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
    Link: https://patch.msgid.link/20250819091035.2263329-1-leo.lilong@huaweicloud.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
md/raid5: fix IO hang when array is broken with IO inflight [+ + +]
Author: Yu Kuai <yukuai@fnnas.com>
Date:   Mon Nov 17 16:55:57 2025 +0800

    md/raid5: fix IO hang when array is broken with IO inflight
    
    [ Upstream commit a913d1f6a7f607c110aeef8b58c8988f47a4b24e ]
    
    Following test can cause IO hang:
    
    mdadm -CvR /dev/md0 -l10 -n4 /dev/sd[abcd] --assume-clean --chunk=64K --bitmap=none
    sleep 5
    echo 1 > /sys/block/sda/device/delete
    echo 1 > /sys/block/sdb/device/delete
    echo 1 > /sys/block/sdc/device/delete
    echo 1 > /sys/block/sdd/device/delete
    
    dd if=/dev/md0 of=/dev/null bs=8k count=1 iflag=direct
    
    Root cause:
    
    1) all disks removed, however all rdevs in the array is still in sync,
    IO will be issued normally.
    
    2) IO failure from sda, and set badblocks failed, sda will be faulty
    and MD_SB_CHANGING_PENDING will be set.
    
    3) error recovery try to recover this IO from other disks, IO will be
    issued to sdb, sdc, and sdd.
    
    4) IO failure from sdb, and set badblocks failed again, now array is
    broken and will become read-only.
    
    5) IO failure from sdc and sdd, however, stripe can't be handled anymore
    because MD_SB_CHANGING_PENDING is set:
    
    handle_stripe
     handle_stripe
     if (test_bit MD_SB_CHANGING_PENDING)
      set_bit STRIPE_HANDLE
      goto finish
      // skip handling failed stripe
    
    release_stripe
     if (test_bit STRIPE_HANDLE)
      list_add_tail conf->hand_list
    
    6) later raid5d can't handle failed stripe as well:
    
    raid5d
     md_check_recovery
      md_update_sb
       if (!md_is_rdwr())
        // can't clear pending bit
        return
     if (test_bit MD_SB_CHANGING_PENDING)
      break;
      // can't handle failed stripe
    
    Since MD_SB_CHANGING_PENDING can never be cleared for read-only array,
    fix this problem by skip this checking for read-only array.
    
    Link: https://lore.kernel.org/linux-raid/20251117085557.770572-3-yukuai@fnnas.com
    Fixes: d87f064f5874 ("md: never update metadata when array is read-only.")
    Signed-off-by: Yu Kuai <yukuai@fnnas.com>
    Reviewed-by: Li Nan <linan122@huawei.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
md: fix rcu protection in md_wakeup_thread [+ + +]
Author: Yun Zhou <yun.zhou@windriver.com>
Date:   Wed Oct 15 16:32:27 2025 +0800

    md: fix rcu protection in md_wakeup_thread
    
    [ Upstream commit 0dc76205549b4c25705e54345f211b9f66e018a0 ]
    
    We attempted to use RCU to protect the pointer 'thread', but directly
    passed the value when calling md_wakeup_thread(). This means that the
    RCU pointer has been acquired before rcu_read_lock(), which renders
    rcu_read_lock() ineffective and could lead to a use-after-free.
    
    Link: https://lore.kernel.org/linux-raid/20251015083227.1079009-1-yun.zhou@windriver.com
    Fixes: 446931543982 ("md: protect md_thread with rcu")
    Signed-off-by: Yun Zhou <yun.zhou@windriver.com>
    Reviewed-by: Li Nan <linan122@huawei.com>
    Reviewed-by: Yu Kuai <yukuai@fnnas.com>
    Signed-off-by: Yu Kuai <yukuai@fnnas.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
mfd: da9055: Fix missing regmap_del_irq_chip() in error path [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Fri Oct 10 09:17:36 2025 +0800

    mfd: da9055: Fix missing regmap_del_irq_chip() in error path
    
    [ Upstream commit 1b58acfd067ca16116b9234cd6b2d30cc8ab7502 ]
    
    When da9055_device_init() fails after regmap_add_irq_chip()
    succeeds but mfd_add_devices() fails, the error handling path
    only calls mfd_remove_devices() but forgets to call
    regmap_del_irq_chip(). This results in a resource leak.
    
    Fix this by adding regmap_del_irq_chip() to the error path so
    that resources are released properly.
    
    Fixes: 2896434cf272 ("mfd: DA9055 core driver")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Link: https://patch.msgid.link/20251010011737.1078-1-vulab@iscas.ac.cn
    Signed-off-by: Lee Jones <lee@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

mfd: mt6358-irq: Fix missing irq_domain_remove() in error path [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Tue Nov 18 20:14:27 2025 +0800

    mfd: mt6358-irq: Fix missing irq_domain_remove() in error path
    
    [ Upstream commit 384bd58bf7095e4c4c8fcdbcede316ef342c630c ]
    
    If devm_request_threaded_irq() fails after irq_domain_add_linear()
    succeeds in mt6358_irq_init(), the function returns without removing
    the created IRQ domain, leading to a resource leak.
    
    Call irq_domain_remove() in the error path after a successful
    irq_domain_add_linear() to properly release the IRQ domain.
    
    Fixes: 2b91c28f2abd ("mfd: Add support for the MediaTek MT6358 PMIC")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Link: https://patch.msgid.link/20251118121427.583-1-vulab@iscas.ac.cn
    Signed-off-by: Lee Jones <lee@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

mfd: mt6397-irq: Fix missing irq_domain_remove() in error path [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Tue Nov 18 20:15:00 2025 +0800

    mfd: mt6397-irq: Fix missing irq_domain_remove() in error path
    
    [ Upstream commit b4b1bd1f330fdd13706382be6c90ce9f58cee3f5 ]
    
    If devm_request_threaded_irq() fails after irq_domain_create_linear()
    succeeds in mt6397_irq_init(), the function returns without removing
    the created IRQ domain, leading to a resource leak.
    
    Call irq_domain_remove() in the error path after a successful
    irq_domain_create_linear() to properly release the IRQ domain.
    
    Fixes: a4872e80ce7d ("mfd: mt6397: Extract IRQ related code from core driver")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Link: https://patch.msgid.link/20251118121500.605-1-vulab@iscas.ac.cn
    Signed-off-by: Lee Jones <lee@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
mt76: mt7615: Fix memory leak in mt7615_mcu_wtbl_sta_add() [+ + +]
Author: Zilin Guan <zilin@seu.edu.cn>
Date:   Thu Nov 13 06:24:15 2025 +0000

    mt76: mt7615: Fix memory leak in mt7615_mcu_wtbl_sta_add()
    
    [ Upstream commit 53d1548612670aa8b5d89745116cc33d9d172863 ]
    
    In mt7615_mcu_wtbl_sta_add(), an skb sskb is allocated. If the
    subsequent call to mt76_connac_mcu_alloc_wtbl_req() fails, the function
    returns an error without freeing sskb, leading to a memory leak.
    
    Fix this by calling dev_kfree_skb() on sskb in the error handling path
    to ensure it is properly released.
    
    Fixes: 99c457d902cf9 ("mt76: mt7615: move mt7615_mcu_set_bmc to mt7615_mcu_ops")
    Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
    Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
    Link: https://patch.msgid.link/20251113062415.103611-1-zilin@seu.edu.cn
    Signed-off-by: Felix Fietkau <nbd@nbd.name>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
mtd: lpddr_cmds: fix signed shifts in lpddr_cmds [+ + +]
Author: Ivan Stepchenko <sid@itb.spb.ru>
Date:   Fri Nov 21 14:54:46 2025 +0300

    mtd: lpddr_cmds: fix signed shifts in lpddr_cmds
    
    [ Upstream commit c909fec69f84b39e63876c69b9df2c178c6b76ba ]
    
    There are several places where a value of type 'int' is shifted by
    lpddr->chipshift. lpddr->chipshift is derived from QINFO geometry and
    might reach 31 when QINFO reports a 2 GiB size - the maximum supported by
    LPDDR(1) compliant chips. This may cause unexpected sign-extensions when
    casting the integer value to the type of 'unsigned long'.
    
    Use '1UL << lpddr->chipshift' and cast 'j' to unsigned long before
    shifting so the computation is performed at the destination width.
    
    Found by Linux Verification Center (linuxtesting.org) with SVACE.
    
    Fixes: c68264711ca6 ("[MTD] LPDDR Command set driver")
    Signed-off-by: Ivan Stepchenko <sid@itb.spb.ru>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

mtd: nand: relax ECC parameter validation check [+ + +]
Author: Aryan Srivastava <aryan.srivastava@alliedtelesis.co.nz>
Date:   Fri Oct 24 13:19:42 2025 +1300

    mtd: nand: relax ECC parameter validation check
    
    [ Upstream commit 050553c683f21eebd7d1020df9b2ec852e2a9e4e ]
    
    Due to the custom handling and layouts of certain nand controllers this
    validity check will always fail for certain layouts. The check
    inherently depends on even chunk sizing and this is not always the
    case.
    
    Modify the check to only print a warning, instead of failing to
    init the attached NAND. This allows various 8 bit and 12 ECC strength
    layouts to be used.
    
    Fixes: 68c18dae6888 ("mtd: rawnand: marvell: add missing layouts")
    Signed-off-by: Aryan Srivastava <aryan.srivastava@alliedtelesis.co.nz>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

mtd: rawnand: lpc32xx_slc: fix GPIO descriptor leak on probe error and remove [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Tue Oct 28 17:47:47 2025 +0800

    mtd: rawnand: lpc32xx_slc: fix GPIO descriptor leak on probe error and remove
    
    [ Upstream commit cdf44f1add4ec9ee80569d5a43e6e9bba0d74c7a ]
    
    The driver calls gpiod_get_optional() in the probe function but
    never calls gpiod_put() in the remove function or in the probe
    error path. This leads to a GPIO descriptor resource leak.
    The lpc32xx_mlc.c driver in the same directory handles this
    correctly by calling gpiod_put() on both paths.
    
    Add gpiod_put() in the remove function and in the probe error path
    to fix the resource leak.
    
    Fixes: 6b923db2867c ("mtd: rawnand: lpc32xx_slc: switch to using gpiod API")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

mtd: rawnand: renesas: Handle devm_pm_runtime_enable() errors [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Mon Nov 24 00:35:51 2025 +0800

    mtd: rawnand: renesas: Handle devm_pm_runtime_enable() errors
    
    [ Upstream commit a3623e1ae1ed6be4d49b2ccb9996a9d2b65c1828 ]
    
    devm_pm_runtime_enable() can fail due to memory allocation failures.
    The current code ignores its return value and proceeds with
    pm_runtime_resume_and_get(), which may operate on incorrectly
    initialized runtime PM state.
    
    Check the return value of devm_pm_runtime_enable() and return the
    error code if it fails.
    
    Fixes: 6a2277a0ebe7 ("mtd: rawnand: renesas: Use runtime PM instead of the raw clock API")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
nbd: defer config put in recv_work [+ + +]
Author: Zheng Qixing <zhengqixing@huawei.com>
Date:   Sat Nov 8 15:02:02 2025 +0800

    nbd: defer config put in recv_work
    
    [ Upstream commit 9517b82d8d422d426a988b213fdd45c6b417b86d ]
    
    There is one uaf issue in recv_work when running NBD_CLEAR_SOCK and
    NBD_CMD_RECONFIGURE:
      nbd_genl_connect     // conf_ref=2 (connect and recv_work A)
      nbd_open             // conf_ref=3
      recv_work A done     // conf_ref=2
      NBD_CLEAR_SOCK       // conf_ref=1
      nbd_genl_reconfigure // conf_ref=2 (trigger recv_work B)
      close nbd            // conf_ref=1
      recv_work B
        config_put         // conf_ref=0
        atomic_dec(&config->recv_threads); -> UAF
    
    Or only running NBD_CLEAR_SOCK:
      nbd_genl_connect   // conf_ref=2
      nbd_open           // conf_ref=3
      NBD_CLEAR_SOCK     // conf_ref=2
      close nbd
        nbd_release
          config_put     // conf_ref=1
      recv_work
        config_put       // conf_ref=0
        atomic_dec(&config->recv_threads); -> UAF
    
    Commit 87aac3a80af5 ("nbd: call nbd_config_put() before notifying the
    waiter") moved nbd_config_put() to run before waking up the waiter in
    recv_work, in order to ensure that nbd_start_device_ioctl() would not
    be woken up while nbd->task_recv was still uncleared.
    
    However, in nbd_start_device_ioctl(), after being woken up it explicitly
    calls flush_workqueue() to make sure all current works are finished.
    Therefore, there is no need to move the config put ahead of the wakeup.
    
    Move nbd_config_put() to the end of recv_work, so that the reference is
    held for the whole lifetime of the worker thread. This makes sure the
    config cannot be freed while recv_work is still running, even if clear
    + reconfigure interleave.
    
    In addition, we don't need to worry about recv_work dropping the last
    nbd_put (which causes deadlock):
    
    path A (netlink with NBD_CFLAG_DESTROY_ON_DISCONNECT):
      connect  // nbd_refs=1 (trigger recv_work)
      open nbd // nbd_refs=2
      NBD_CLEAR_SOCK
      close nbd
        nbd_release
          nbd_disconnect_and_put
            flush_workqueue // recv_work done
          nbd_config_put
            nbd_put // nbd_refs=1
          nbd_put // nbd_refs=0
            queue_work
    
    path B (netlink without NBD_CFLAG_DESTROY_ON_DISCONNECT):
      connect  // nbd_refs=2 (trigger recv_work)
      open nbd // nbd_refs=3
      NBD_CLEAR_SOCK // conf_refs=2
      close nbd
        nbd_release
          nbd_config_put // conf_refs=1
          nbd_put // nbd_refs=2
      recv_work done // conf_refs=0, nbd_refs=1
      rmmod // nbd_refs=0
    
    Reported-by: syzbot+56fbf4c7ddf65e95c7cc@syzkaller.appspotmail.com
    Closes: https://lore.kernel.org/all/6907edce.a70a0220.37351b.0014.GAE@google.com/T/
    Fixes: 87aac3a80af5 ("nbd: make the config put is called before the notifying the waiter")
    Depends-on: e2daec488c57 ("nbd: Fix hungtask when nbd_config_put")
    Signed-off-by: Zheng Qixing <zhengqixing@huawei.com>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

nbd: defer config unlock in nbd_genl_connect [+ + +]
Author: Zheng Qixing <zhengqixing@huawei.com>
Date:   Mon Nov 10 20:49:20 2025 +0800

    nbd: defer config unlock in nbd_genl_connect
    
    [ Upstream commit 1649714b930f9ea6233ce0810ba885999da3b5d4 ]
    
    There is one use-after-free warning when running NBD_CMD_CONNECT and
    NBD_CLEAR_SOCK:
    
    nbd_genl_connect
      nbd_alloc_and_init_config // config_refs=1
      nbd_start_device // config_refs=2
      set NBD_RT_HAS_CONFIG_REF                     open nbd // config_refs=3
      recv_work done // config_refs=2
                                                    NBD_CLEAR_SOCK // config_refs=1
                                                    close nbd // config_refs=0
      refcount_inc -> uaf
    
    ------------[ cut here ]------------
    refcount_t: addition on 0; use-after-free.
    WARNING: CPU: 24 PID: 1014 at lib/refcount.c:25 refcount_warn_saturate+0x12e/0x290
     nbd_genl_connect+0x16d0/0x1ab0
     genl_family_rcv_msg_doit+0x1f3/0x310
     genl_rcv_msg+0x44a/0x790
    
    The issue can be easily reproduced by adding a small delay before
    refcount_inc(&nbd->config_refs) in nbd_genl_connect():
    
            mutex_unlock(&nbd->config_lock);
            if (!ret) {
                    set_bit(NBD_RT_HAS_CONFIG_REF, &config->runtime_flags);
    +               printk("before sleep\n");
    +               mdelay(5 * 1000);
    +               printk("after sleep\n");
                    refcount_inc(&nbd->config_refs);
                    nbd_connect_reply(info, nbd->index);
            }
    
    Fixes: e46c7287b1c2 ("nbd: add a basic netlink interface")
    Signed-off-by: Zheng Qixing <zhengqixing@huawei.com>
    Reviewed-by: Yu Kuai <yukuai@fnnas.com>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
net/sched: sch_cake: Fix incorrect qlen reduction in cake_drop [+ + +]
Author: Xiang Mei <xmei5@asu.edu>
Date:   Thu Nov 27 17:14:14 2025 -0700

    net/sched: sch_cake: Fix incorrect qlen reduction in cake_drop
    
    [ Upstream commit 9fefc78f7f02d71810776fdeb119a05a946a27cc ]
    
    In cake_drop(), qdisc_tree_reduce_backlog() is used to update the qlen
    and backlog of the qdisc hierarchy. Its caller, cake_enqueue(), assumes
    that the parent qdisc will enqueue the current packet. However, this
    assumption breaks when cake_enqueue() returns NET_XMIT_CN: the parent
    qdisc stops enqueuing current packet, leaving the tree qlen/backlog
    accounting inconsistent. This mismatch can lead to a NULL dereference
    (e.g., when the parent Qdisc is qfq_qdisc).
    
    This patch computes the qlen/backlog delta in a more robust way by
    observing the difference before and after the series of cake_drop()
    calls, and then compensates the qdisc tree accounting if cake_enqueue()
    returns NET_XMIT_CN.
    
    To ensure correct compensation when ACK thinning is enabled, a new
    variable is introduced to keep qlen unchanged.
    
    Fixes: 15de71d06a40 ("net/sched: Make cake_enqueue return NET_XMIT_CN when past buffer_limit")
    Signed-off-by: Xiang Mei <xmei5@asu.edu>
    Reviewed-by: Toke Høiland-Jørgensen <toke@toke.dk>
    Link: https://patch.msgid.link/20251128001415.377823-1-xmei5@asu.edu
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
net: dsa: xrs700x: reject unsupported HSR configurations [+ + +]
Author: Vladimir Oltean <vladimir.oltean@nxp.com>
Date:   Sun Nov 30 15:16:46 2025 +0200

    net: dsa: xrs700x: reject unsupported HSR configurations
    
    [ Upstream commit 30296ac7642652428396222e720718f2661e9425 ]
    
    As discussed here:
    https://lore.kernel.org/netdev/20240620090210.drop6jwh7e5qw556@skbuf/
    
    the fact is that the xrs700x.c driver only supports offloading
    HSR_PT_SLAVE_A and HSR_PT_SLAVE_B (which were the only port types at the
    time the offload was written, _for this driver_).
    
    Up until now, the API did not explicitly tell offloading drivers what
    port has what role. So xrs700x can get confused and think that it can
    support a configuration which it actually can't. There was a table in
    the attached link which gave an example:
    
    $ ip link add name hsr0 type hsr slave1 swp0 slave2 swp1 \
            interlink swp2 supervision 45 version 1
    
            HSR_PT_SLAVE_A    HSR_PT_SLAVE_B      HSR_PT_INTERLINK
     ----------------------------------------------------------------
     user
     space        0                 1                   2
     requests
     ----------------------------------------------------------------
     XRS700X
     driver       1                 2                   -
     understands
    
    The switch would act as if the ring ports were swp1 and swp2.
    
    Now that we have explicit hsr_get_port_type() API, let's use that to
    work around the unintended semantical changes of the offloading API
    brought by the introduction of interlink ports in HSR.
    
    Fixes: 5055cccfc2d1 ("net: hsr: Provide RedBox support (HSR-SAN)")
    Cc: Lukasz Majewski <lukma@denx.de>
    Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
    Reviewed-by: George McCollister <george.mccollister@gmail.com>
    Link: https://patch.msgid.link/20251130131657.65080-5-vladimir.oltean@nxp.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

net: dst: introduce dst->dev_rcu [+ + +]
Author: Eric Dumazet <edumazet@google.com>
Date:   Mon Dec 15 21:51:18 2025 +0000

    net: dst: introduce dst->dev_rcu
    
    [ Upstream commit caedcc5b6df1b2e2b5f39079e3369c1d4d5c5f50 ]
    
    Followup of commit 88fe14253e1818 ("net: dst: add four helpers
    to annotate data-races around dst->dev").
    
    We want to gradually add explicit RCU protection to dst->dev,
    including lockdep support.
    
    Add an union to alias dst->dev_rcu and dst->dev.
    
    Add dst_dev_net_rcu() helper.
    
    Fixes: 4a6ce2b6f2ec ("net: introduce a new function dst_dev_put()")
    Cc: stable@vger.kernel.org
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Reviewed-by: David Ahern <dsahern@kernel.org>
    Link: https://patch.msgid.link/20250828195823.3958522-2-edumazet@google.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Stable-dep-of: 50c127a69cd62 ("Replace three dst_dev() with a lockdep enabled helper.")
    Signed-off-by: Gyokhan Kochmarla <gyokhan@amazon.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

net: hsr: create an API to get hsr port type [+ + +]
Author: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
Date:   Sun Nov 30 15:16:44 2025 +0200

    net: hsr: create an API to get hsr port type
    
    [ Upstream commit a0244e76213980f3b9bb5d40b0b6705fcf24230d ]
    
    Since the introduction of HSR_PT_INTERLINK in commit 5055cccfc2d1 ("net:
    hsr: Provide RedBox support (HSR-SAN)"), we see that different port
    types require different settings for hardware offload, which was not the
    case before when we only had HSR_PT_SLAVE_A and HSR_PT_SLAVE_B. But
    there is currently no way to know which port is which type, so create
    the hsr_get_port_type() API function and export it.
    
    When hsr_get_port_type() is called from the device driver, the port can
    must be found in the HSR port list. An important use case is for this
    function to work from offloading drivers' NETDEV_CHANGEUPPER handler,
    which is triggered by hsr_portdev_setup() -> netdev_master_upper_dev_link().
    Therefore, we need to move the addition of the hsr_port to the HSR port
    list prior to calling hsr_portdev_setup(). This makes the error
    restoration path also more similar to hsr_del_port(), where
    kfree_rcu(port) is already used.
    
    Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    Cc: Lukasz Majewski <lukma@denx.de>
    Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
    Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
    Reviewed-by: Łukasz Majewski <lukma@nabladev.com>
    Link: https://patch.msgid.link/20251130131657.65080-3-vladimir.oltean@nxp.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Stable-dep-of: 30296ac76426 ("net: dsa: xrs700x: reject unsupported HSR configurations")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

net: hsr: Create and export hsr_get_port_ndev() [+ + +]
Author: MD Danish Anwar <danishanwar@ti.com>
Date:   Fri Jan 10 13:58:51 2025 +0530

    net: hsr: Create and export hsr_get_port_ndev()
    
    [ Upstream commit 9c10dd8eed74de9e8adeb820939f8745cd566d4a ]
    
    Create an API to get the net_device to the slave port of HSR device. The
    API will take hsr net_device and enum hsr_port_type for which we want the
    net_device as arguments.
    
    This API can be used by client drivers who support HSR and want to get
    the net_devcie of slave ports from the hsr device. Export this API for
    the same.
    
    This API needs the enum hsr_port_type to be accessible by the drivers using
    hsr. Move the enum hsr_port_type from net/hsr/hsr_main.h to
    include/linux/if_hsr.h for the same.
    
    Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    Stable-dep-of: 30296ac76426 ("net: dsa: xrs700x: reject unsupported HSR configurations")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

net: hsr: remove one synchronize_rcu() from hsr_del_port() [+ + +]
Author: Eric Dumazet <edumazet@google.com>
Date:   Fri Jan 3 10:11:48 2025 +0000

    net: hsr: remove one synchronize_rcu() from hsr_del_port()
    
    [ Upstream commit 4475d56145f368d065b05da3a5599d5620ca9408 ]
    
    Use kfree_rcu() instead of synchronize_rcu()+kfree().
    
    This might allow syzbot to fuzz HSR a bit faster...
    
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Reviewed-by: Simon Horman <horms@kernel.org>
    Link: https://patch.msgid.link/20250103101148.3594545-1-edumazet@google.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Stable-dep-of: 30296ac76426 ("net: dsa: xrs700x: reject unsupported HSR configurations")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

net: hsr: remove synchronize_rcu() from hsr_add_port() [+ + +]
Author: Eric Dumazet <edumazet@google.com>
Date:   Tue Jan 7 14:47:01 2025 +0000

    net: hsr: remove synchronize_rcu() from hsr_add_port()
    
    [ Upstream commit a3b3d2dc389568a77d0e25da17203e3616218e93 ]
    
    A synchronize_rcu() was added by mistake in commit
    c5a759117210 ("net/hsr: Use list_head (and rcu) instead
    of array for slave devices.")
    
    RCU does not mandate to observe a grace period after
    list_add_tail_rcu().
    
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Reviewed-by: Simon Horman <horms@kernel.org>
    Link: https://patch.msgid.link/20250107144701.503884-1-edumazet@google.com
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    Stable-dep-of: 30296ac76426 ("net: dsa: xrs700x: reject unsupported HSR configurations")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

net: lan743x: Allocate rings outside ZONE_DMA [+ + +]
Author: Thangaraj Samynathan <thangaraj.s@microchip.com>
Date:   Tue Apr 15 10:15:09 2025 +0530

    net: lan743x: Allocate rings outside ZONE_DMA
    
    commit 8a8f3f4991761a70834fe6719d09e9fd338a766e upstream.
    
    The driver allocates ring elements using GFP_DMA flags. There is
    no dependency from LAN743x hardware on memory allocation should be
    in DMA_ZONE. Hence modifying the flags to use only GFP_ATOMIC. This
    is consistent with other callers of lan743x_rx_init_ring_element().
    
    Reported-by: Zhang, Liyin(CN) <Liyin.Zhang.CN@windriver.com>
    Signed-off-by: Thangaraj Samynathan <thangaraj.s@microchip.com>
    Reviewed-by: Simon Horman <horms@kernel.org>
    Link: https://patch.msgid.link/20250415044509.6695-1-thangaraj.s@microchip.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

net: phy: adin1100: Fix software power-down ready condition [+ + +]
Author: Alexander Dahl <ada@thorsis.com>
Date:   Wed Nov 19 13:47:36 2025 +0100

    net: phy: adin1100: Fix software power-down ready condition
    
    [ Upstream commit bccaf1fe08f2c9f96f6bc38391d41e67f6bf38e3 ]
    
    Value CRSM_SFT_PD written to Software Power-Down Control Register
    (CRSM_SFT_PD_CNTRL) is 0x01 and therefor different to value
    CRSM_SFT_PD_RDY (0x02) read from System Status Register (CRSM_STAT) for
    confirmation powerdown has been reached.
    
    The condition could have only worked when disabling powerdown
    (both 0x00), but never when enabling it (0x01 != 0x02).
    
    Result is a timeout, like so:
    
        $ ifdown eth0
        macb f802c000.ethernet eth0: Link is Down
        ADIN1100 f802c000.ethernet-ffffffff:01: adin_set_powerdown_mode failed: -110
        ADIN1100 f802c000.ethernet-ffffffff:01: adin_set_powerdown_mode failed: -110
    
    Fixes: 7eaf9132996a ("net: phy: adin1100: Add initial support for ADIN1100 industrial PHY")
    Signed-off-by: Alexander Dahl <ada@thorsis.com>
    Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Acked-by: Nuno Sá <nuno.sa@analog.com>
    Link: https://patch.msgid.link/20251119124737.280939-2-ada@thorsis.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

net: phy: aquantia: check for NVMEM deferral [+ + +]
Author: Robert Marko <robimarko@gmail.com>
Date:   Thu Nov 27 12:44:35 2025 +0100

    net: phy: aquantia: check for NVMEM deferral
    
    [ Upstream commit a6c121a2432eee2c4ebceb1483ccd4a50a52983d ]
    
    Currently, if NVMEM provider is probed later than Aquantia, loading the
    firmware will fail with -EINVAL.
    
    To fix this, simply check for -EPROBE_DEFER when NVMEM is attempted and
    return it.
    
    Fixes: e93984ebc1c8 ("net: phy: aquantia: add firmware load support")
    Signed-off-by: Robert Marko <robimarko@gmail.com>
    Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Link: https://patch.msgid.link/20251127114514.460924-1-robimarko@gmail.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

net: stmmac: fix rx limit check in stmmac_rx_zc() [+ + +]
Author: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
Date:   Wed Nov 26 10:43:27 2025 +0000

    net: stmmac: fix rx limit check in stmmac_rx_zc()
    
    [ Upstream commit 8048168df56e225c94e50b04cb7b0514135d7a1c ]
    
    The extra "count >= limit" check in stmmac_rx_zc() is redundant and
    has no effect because the value of "count" doesn't change after the
    while condition at this point.
    
    However, it can change after "read_again:" label:
    
            while (count < limit) {
                ...
    
                if (count >= limit)
                    break;
        read_again:
                ...
                /* XSK pool expects RX frame 1:1 mapped to XSK buffer */
                if (likely(status & rx_not_ls)) {
                    xsk_buff_free(buf->xdp);
                    buf->xdp = NULL;
                    dirty++;
                    count++;
                    goto read_again;
                }
                ...
    
    This patch addresses the same issue previously resolved in stmmac_rx()
    by commit fa02de9e7588 ("net: stmmac: fix rx budget limit check").
    The fix is the same: move the check after the label to ensure that it
    bounds the goto loop.
    
    Fixes: bba2556efad6 ("net: stmmac: Enable RX via AF_XDP zero-copy")
    Signed-off-by: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
    Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Link: https://patch.msgid.link/20251126104327.175590-1-aleksei.kodanev@bell-sw.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
netfilter: flowtable: check for maximum number of encapsulations in bridge vlan [+ + +]
Author: Pablo Neira Ayuso <pablo@netfilter.org>
Date:   Thu Nov 27 23:26:22 2025 +0000

    netfilter: flowtable: check for maximum number of encapsulations in bridge vlan
    
    [ Upstream commit 634f3853cc98d73bdec8918010ee29b06981583e ]
    
    Add a sanity check to skip path discovery if the maximum number of
    encapsulation is reached. While at it, check for underflow too.
    
    Fixes: 26267bf9bb57 ("netfilter: flowtable: bridge vlan hardware offload and switchdev")
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

netfilter: nf_conncount: rework API to use sk_buff directly [+ + +]
Author: Fernando Fernandez Mancera <fmancera@suse.de>
Date:   Fri Nov 21 01:14:30 2025 +0100

    netfilter: nf_conncount: rework API to use sk_buff directly
    
    [ Upstream commit be102eb6a0e7c03db00e50540622f4e43b2d2844 ]
    
    When using nf_conncount infrastructure for non-confirmed connections a
    duplicated track is possible due to an optimization introduced since
    commit d265929930e2 ("netfilter: nf_conncount: reduce unnecessary GC").
    
    In order to fix this introduce a new conncount API that receives
    directly an sk_buff struct.  It fetches the tuple and zone and the
    corresponding ct from it. It comes with both existing conncount variants
    nf_conncount_count_skb() and nf_conncount_add_skb(). In addition remove
    the old API and adjust all the users to use the new one.
    
    This way, for each sk_buff struct it is possible to check if there is a
    ct present and already confirmed. If so, skip the add operation.
    
    Fixes: d265929930e2 ("netfilter: nf_conncount: reduce unnecessary GC")
    Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

netfilter: nft_connlimit: update the count if add was skipped [+ + +]
Author: Fernando Fernandez Mancera <fmancera@suse.de>
Date:   Fri Nov 21 01:14:32 2025 +0100

    netfilter: nft_connlimit: update the count if add was skipped
    
    [ Upstream commit 69894e5b4c5e28cda5f32af33d4a92b7a4b93b0e ]
    
    Connlimit expression can be used for all kind of packets and not only
    for packets with connection state new. See this ruleset as example:
    
    table ip filter {
            chain input {
                    type filter hook input priority filter; policy accept;
                    tcp dport 22 ct count over 4 counter
            }
    }
    
    Currently, if the connection count goes over the limit the counter will
    count the packets. When a connection is closed, the connection count
    won't decrement as it should because it is only updated for new
    connections due to an optimization on __nf_conncount_add() that prevents
    updating the list if the connection is duplicated.
    
    To solve this problem, check whether the connection was skipped and if
    so, update the list. Adjust count_tree() too so the same fix is applied
    for xt_connlimit.
    
    Fixes: 976afca1ceba ("netfilter: nf_conncount: Early exit in nf_conncount_lookup() and cleanup")
    Closes: https://lore.kernel.org/netfilter/trinity-85c72a88-d762-46c3-be97-36f10e5d9796-1761173693813@3c-app-mailcom-bs12/
    Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
nfs/vfs: discard d_exact_alias() [+ + +]
Author: NeilBrown <neil@brown.name>
Date:   Wed Feb 26 17:18:31 2025 +1100

    nfs/vfs: discard d_exact_alias()
    
    [ Upstream commit 3ff6c8707c9a0116d00982851ec1216a42053ace ]
    
    d_exact_alias() is a descendent of d_add_unique() which was introduced
    20 years ago mostly likely to work around problems with NFS servers of
    the time.  It is now not used in several situations were it was
    originally needed and there have been no reports of problems -
    presumably the old NFS servers have been improved.  This only place it
    is now use is in NFSv4 code and the old problematic servers are thought
    to have been v2/v3 only.
    
    There is no clear benefit in reusing a unhashed() dentry which happens
    to have the same name as the dentry we are adding.
    
    So this patch removes d_exact_alias() and the one place that it is used.
    
    Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: NeilBrown <neilb@suse.de>
    Link: https://lore.kernel.org/r/20250226062135.2043651-2-neilb@suse.de
    Signed-off-by: Christian Brauner <brauner@kernel.org>
    Stable-dep-of: 0f900f11002f ("NFS: Initialise verifiers for visible dentries in _nfs4_open_and_get_state")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
NFS: Automounted filesystems should inherit ro,noexec,nodev,sync flags [+ + +]
Author: Trond Myklebust <trond.myklebust@hammerspace.com>
Date:   Fri Nov 28 14:22:44 2025 -0500

    NFS: Automounted filesystems should inherit ro,noexec,nodev,sync flags
    
    [ Upstream commit 8675c69816e4276b979ff475ee5fac4688f80125 ]
    
    When a filesystem is being automounted, it needs to preserve the
    user-set superblock mount options, such as the "ro" flag.
    
    Reported-by: Li Lingfeng <lilingfeng3@huawei.com>
    Link: https://lore.kernel.org/all/20240604112636.236517-3-lilingfeng@huaweicloud.com/
    Fixes: f2aedb713c28 ("NFS: Add fs_context support.")
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

NFS: Avoid changing nlink when file removes and attribute updates race [+ + +]
Author: Trond Myklebust <trond.myklebust@hammerspace.com>
Date:   Mon Nov 17 15:28:17 2025 -0500

    NFS: Avoid changing nlink when file removes and attribute updates race
    
    [ Upstream commit bd4928ec799b31c492eb63f9f4a0c1e0bb4bb3f7 ]
    
    If a file removal races with another operation that updates its
    attributes, then skip the change to nlink, and just mark the attributes
    as being stale.
    
    Reported-by: Aiden Lambert <alambert48@gatech.edu>
    Fixes: 59a707b0d42e ("NFS: Ensure we revalidate the inode correctly after remove or rename")
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

NFS: Fix inheritance of the block sizes when automounting [+ + +]
Author: Trond Myklebust <trond.myklebust@hammerspace.com>
Date:   Fri Nov 28 16:06:41 2025 -0500

    NFS: Fix inheritance of the block sizes when automounting
    
    [ Upstream commit 2b092175f5e301cdaa935093edfef2be9defb6df ]
    
    Only inherit the block sizes that were actually specified as mount
    parameters for the parent mount.
    
    Fixes: 62a55d088cd8 ("NFS: Additional refactoring for fs_context conversion")
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

NFS: Initialise verifiers for visible dentries in _nfs4_open_and_get_state [+ + +]
Author: Trond Myklebust <trond.myklebust@hammerspace.com>
Date:   Wed Nov 19 08:43:21 2025 -0500

    NFS: Initialise verifiers for visible dentries in _nfs4_open_and_get_state
    
    [ Upstream commit 0f900f11002ff52391fc2aa4a75e59f26ed1c242 ]
    
    Ensure that the verifiers are initialised before calling
    d_splice_alias() in _nfs4_open_and_get_state().
    
    Reported-by: Michael Stoler <michael.stoler@vastdata.com>
    Fixes: cf5b4059ba71 ("NFSv4: Fix races between open and dentry revalidation")
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

NFS: Initialise verifiers for visible dentries in nfs_atomic_open() [+ + +]
Author: Trond Myklebust <trond.myklebust@hammerspace.com>
Date:   Wed Nov 19 08:39:50 2025 -0500

    NFS: Initialise verifiers for visible dentries in nfs_atomic_open()
    
    [ Upstream commit 518c32a1bc4f8df1a8442ee8cdfea3e2fcff20a0 ]
    
    Ensure that the verifiers are initialised before calling
    d_splice_alias() in nfs_atomic_open().
    
    Reported-by: Michael Stoler <michael.stoler@vastdata.com>
    Fixes: 809fd143de88 ("NFSv4: Ensure nfs_atomic_open set the dentry verifier on ENOENT")
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

NFS: Initialise verifiers for visible dentries in readdir and lookup [+ + +]
Author: Trond Myklebust <trond.myklebust@hammerspace.com>
Date:   Wed Nov 19 08:36:16 2025 -0500

    NFS: Initialise verifiers for visible dentries in readdir and lookup
    
    [ Upstream commit 9bd545539b233725a3416801f7c374bff0327d6e ]
    
    Ensure that the verifiers are initialised before calling
    d_splice_alias() in both nfs_prime_dcache() and nfs_lookup().
    
    Reported-by: Michael Stoler <michael.stoler@vastdata.com>
    Fixes: a1147b8281bd ("NFS: Fix up directory verifier races")
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
NFSD/blocklayout: Fix minlength check in proc_layoutget [+ + +]
Author: Sergey Bashirov <sergeybashirov@gmail.com>
Date:   Fri Oct 3 12:11:03 2025 +0300

    NFSD/blocklayout: Fix minlength check in proc_layoutget
    
    [ Upstream commit 3524b021b0ec620a76c89aee78e9d4b4130fb711 ]
    
    The extent returned by the file system may have a smaller offset than
    the segment offset requested by the client. In this case, the minimum
    segment length must be checked against the requested range. Otherwise,
    the client may not be able to continue the read/write operation.
    
    Fixes: 8650b8a05850 ("nfsd: pNFS block layout driver")
    Signed-off-by: Sergey Bashirov <sergeybashirov@gmail.com>
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid [+ + +]
Author: Jonathan Curley <jcurley@purestorage.com>
Date:   Wed Nov 12 18:02:42 2025 +0000

    NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid
    
    [ Upstream commit e0f8058f2cb56de0b7572f51cd563ca5debce746 ]
    
    Fixes a crash when layout is null during this call stack:
    
    write_inode
        -> nfs4_write_inode
            -> pnfs_layoutcommit_inode
    
    pnfs_set_layoutcommit relies on the lseg refcount to keep the layout
    around. Need to clear NFS_INO_LAYOUTCOMMIT otherwise we might attempt
    to reference a null layout.
    
    Fixes: fe1cf9469d7bc ("pNFS: Clear all layout segment state in pnfs_mark_layout_stateid_invalid")
    Signed-off-by: Jonathan Curley <jcurley@purestorage.com>
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
ntfs3: Fix uninit buffer allocated by __getname() [+ + +]
Author: Sidharth Seela <sidharthseela@gmail.com>
Date:   Tue Sep 23 12:10:16 2025 +0530

    ntfs3: Fix uninit buffer allocated by __getname()
    
    [ Upstream commit 9948dcb2f7b5a1bf8e8710eafaf6016e00be3ad6 ]
    
    Fix uninit errors caused after buffer allocation given to 'de'; by
    initializing the buffer with zeroes. The fix was found by using KMSAN.
    
    Reported-by: syzbot+332bd4e9d148f11a87dc@syzkaller.appspotmail.com
    Fixes: 78ab59fee07f2 ("fs/ntfs3: Rework file operations")
    Signed-off-by: Sidharth Seela <sidharthseela@gmail.com>
    Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ntfs3: fix uninit memory after failed mi_read in mi_format_new [+ + +]
Author: Raphael Pinsonneault-Thibeault <rpthibeault@gmail.com>
Date:   Sun Oct 12 16:16:34 2025 -0400

    ntfs3: fix uninit memory after failed mi_read in mi_format_new
    
    [ Upstream commit 73e6b9dacf72a1e7a4265eacca46f8f33e0997d6 ]
    
    Fix a KMSAN un-init bug found by syzkaller.
    
    ntfs_get_bh() expects a buffer from sb_getblk(), that buffer may not be
    uptodate. We do not bring the buffer uptodate before setting it as
    uptodate. If the buffer were to not be uptodate, it could mean adding a
    buffer with un-init data to the mi record. Attempting to load that record
    will trigger KMSAN.
    
    Avoid this by setting the buffer as uptodate, if it’s not already, by
    overwriting it.
    
    Reported-by: syzbot+7a2ba6b7b66340cff225@syzkaller.appspotmail.com
    Closes: https://syzkaller.appspot.com/bug?extid=7a2ba6b7b66340cff225
    Tested-by: syzbot+7a2ba6b7b66340cff225@syzkaller.appspotmail.com
    Fixes: 4342306f0f0d5 ("fs/ntfs3: Add file operations and implementation")
    Signed-off-by: Raphael Pinsonneault-Thibeault <rpthibeault@gmail.com>
    Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ntfs3: init run lock for extend inode [+ + +]
Author: Edward Adam Davis <eadavis@qq.com>
Date:   Tue Sep 16 13:50:13 2025 +0800

    ntfs3: init run lock for extend inode
    
    [ Upstream commit be99c62ac7e7af514e4b13f83c891a3cccefaa48 ]
    
    After setting the inode mode of $Extend to a regular file, executing the
    truncate system call will enter the do_truncate() routine, causing the
    run_lock uninitialized error reported by syzbot.
    
    Prior to patch 4e8011ffec79, if the inode mode of $Extend was not set to
    a regular file, the do_truncate() routine would not be entered.
    
    Add the run_lock initialization when loading $Extend.
    
    syzbot reported:
    INFO: trying to register non-static key.
    Call Trace:
     dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
     assign_lock_key+0x133/0x150 kernel/locking/lockdep.c:984
     register_lock_class+0x105/0x320 kernel/locking/lockdep.c:1299
     __lock_acquire+0x99/0xd20 kernel/locking/lockdep.c:5112
     lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
     down_write+0x96/0x1f0 kernel/locking/rwsem.c:1590
     ntfs_set_size+0x140/0x200 fs/ntfs3/inode.c:860
     ntfs_extend+0x1d9/0x970 fs/ntfs3/file.c:387
     ntfs_setattr+0x2e8/0xbe0 fs/ntfs3/file.c:808
    
    Fixes: 4e8011ffec79 ("ntfs3: pretend $Extend records as regular files")
    Reported-by: syzbot+bdeb22a4b9a09ab9aa45@syzkaller.appspotmail.com
    Closes: https://syzkaller.appspot.com/bug?extid=bdeb22a4b9a09ab9aa45
    Tested-by: syzbot+bdeb22a4b9a09ab9aa45@syzkaller.appspotmail.com
    Signed-off-by: Edward Adam Davis <eadavis@qq.com>
    Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
nvme-auth: use kvfree() for memory allocated with kvcalloc() [+ + +]
Author: Israel Rukshin <israelr@nvidia.com>
Date:   Sun Nov 23 16:46:48 2025 +0200

    nvme-auth: use kvfree() for memory allocated with kvcalloc()
    
    [ Upstream commit bb9f4cca7c031de6f0e85f7ba24abf0172829f85 ]
    
    Memory allocated by kvcalloc() may come from vmalloc or kmalloc,
    so use kvfree() instead of kfree() for proper deallocation.
    
    Fixes: aa36d711e945 ("nvme-auth: convert dhchap_auth_list to an array")
    Signed-off-by: Israel Rukshin <israelr@nvidia.com>
    Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Keith Busch <kbusch@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
objtool: Fix standalone --hacks=jump_label [+ + +]
Author: Dylan Hatch <dylanbhatch@google.com>
Date:   Tue Sep 23 00:49:41 2025 +0000

    objtool: Fix standalone --hacks=jump_label
    
    [ Upstream commit be8374a5ba7cbab6b97df94b4ffe0b92f5c8a6d2 ]
    
    The objtool command line 'objtool --hacks=jump_label foo.o' on its own
    should be expected to rewrite jump labels to NOPs. This means the
    add_special_section_alts() code path needs to run when only this option
    is provided.
    
    This is mainly relevant in certain debugging situations, but could
    potentially also fix kernel builds in which objtool is run with
    --hacks=jump_label but without --orc, --stackval, --uaccess, or
    --hacks=noinstr.
    
    Fixes: de6fbcedf5ab ("objtool: Read special sections with alts only when specific options are selected")
    Signed-off-by: Dylan Hatch <dylanbhatch@google.com>
    Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

objtool: Fix weak symbol detection [+ + +]
Author: Josh Poimboeuf <jpoimboe@kernel.org>
Date:   Wed Sep 17 09:03:27 2025 -0700

    objtool: Fix weak symbol detection
    
    [ Upstream commit 72567c630d32bc31f671977f78228c80937ed80e ]
    
    find_symbol_hole_containing() fails to find a symbol hole (aka stripped
    weak symbol) if its section has no symbols before the hole.  This breaks
    weak symbol detection if -ffunction-sections is enabled.
    
    Fix that by allowing the interval tree to contain section symbols, which
    are always at offset zero for a given section.
    
    Fixes a bunch of (-ffunction-sections) warnings like:
    
      vmlinux.o: warning: objtool: .text.__x64_sys_io_setup+0x10: unreachable instruction
    
    Fixes: 4adb23686795 ("objtool: Ignore extra-symbol code")
    Acked-by: Petr Mladek <pmladek@suse.com>
    Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
    Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
ocfs2: fix memory leak in ocfs2_merge_rec_left() [+ + +]
Author: Dmitry Antipov <dmantipov@yandex.ru>
Date:   Fri Dec 5 09:51:59 2025 +0300

    ocfs2: fix memory leak in ocfs2_merge_rec_left()
    
    [ Upstream commit 2214ec4bf89d0fd27717322d3983a2f3b469c7f3 ]
    
    In 'ocfs2_merge_rec_left()', do not reset 'left_path' to NULL after
    move, thus allowing 'ocfs2_free_path()' to free it before return.
    
    Link: https://lkml.kernel.org/r/20251205065159.392749-1-dmantipov@yandex.ru
    Fixes: 677b975282e4 ("ocfs2: Add support for cross extent block")
    Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
    Reported-by: syzbot+cfc7cab3bb6eaa7c4de2@syzkaller.appspotmail.com
    Closes: https://syzkaller.appspot.com/bug?extid=cfc7cab3bb6eaa7c4de2
    Reviewed-by: Heming Zhao <heming.zhao@suse.com>
    Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com>
    Cc: Mark Fasheh <mark@fasheh.com>
    Cc: Joel Becker <jlbec@evilplan.org>
    Cc: Junxiao Bi <junxiao.bi@oracle.com>
    Cc: Changwei Ge <gechangwei@live.cn>
    Cc: Jun Piao <piaojun@huawei.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

ocfs2: relax BUG() to ocfs2_error() in __ocfs2_move_extent() [+ + +]
Author: Dmitry Antipov <dmantipov@yandex.ru>
Date:   Thu Oct 9 13:23:49 2025 +0300

    ocfs2: relax BUG() to ocfs2_error() in __ocfs2_move_extent()
    
    [ Upstream commit 8a7d58845fae061c62b50bc5eeb9bae4a1dedc3d ]
    
    In '__ocfs2_move_extent()', relax 'BUG()' to 'ocfs2_error()' just
    to avoid crashing the whole kernel due to a filesystem corruption.
    
    Fixes: 8f603e567aa7 ("Ocfs2/move_extents: move a range of extent.")
    Link: https://lkml.kernel.org/r/20251009102349.181126-2-dmantipov@yandex.ru
    Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
    Closes: https://syzkaller.appspot.com/bug?extid=727d161855d11d81e411
    Reported-by: syzbot+727d161855d11d81e411@syzkaller.appspotmail.com
    Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
    Cc: Mark Fasheh <mark@fasheh.com>
    Cc: Joel Becker <jlbec@evilplan.org>
    Cc: Junxiao Bi <junxiao.bi@oracle.com>
    Cc: Changwei Ge <gechangwei@live.cn>
    Cc: Jun Piao <piaojun@huawei.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
of: Skip devicetree kunit tests when RISCV+ACPI doesn't populate root node [+ + +]
Author: Guenter Roeck <linux@roeck-us.net>
Date:   Thu Oct 23 09:04:14 2025 -0700

    of: Skip devicetree kunit tests when RISCV+ACPI doesn't populate root node
    
    [ Upstream commit 546dbb0223102813ffb5bbcb9443a47c3183f195 ]
    
    Starting with commit 69a8b62a7aa1 ("riscv: acpi: avoid errors caused by
    probing DT devices when ACPI is used"), riscv images no longer populate
    devicetree if ACPI is enabled. This causes unit tests to fail which require
    the root node to be set.
    
      # Subtest: of_dtb
      # module: of_test
      1..2
      # of_dtb_root_node_found_by_path: EXPECTATION FAILED at drivers/of/of_test.c:21
      Expected np is not null, but is
      # of_dtb_root_node_found_by_path: pass:0 fail:1 skip:0 total:1
      not ok 1 of_dtb_root_node_found_by_path
      # of_dtb_root_node_populates_of_root: EXPECTATION FAILED at drivers/of/of_test.c:31
      Expected of_root is not null, but is
      # of_dtb_root_node_populates_of_root: pass:0 fail:1 skip:0 total:1
      not ok 2 of_dtb_root_node_populates_of_root
    
    Skip those tests for RISCV if the root node is not populated.
    
    Fixes: 69a8b62a7aa1 ("riscv: acpi: avoid errors caused by probing DT devices when ACPI is used")
    Cc: Han Gao <rabenda.cn@gmail.com>
    Cc: Paul Walmsley <pjw@kernel.org>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Reviewed-by: Paul Walmsley <pjw@kernel.org>  # arch/riscv
    Link: https://patch.msgid.link/20251023160415.705294-1-linux@roeck-us.net
    Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
PCI: dwc: Fix wrong PORT_LOGIC_LTSSM_STATE_MASK definition [+ + +]
Author: Shawn Lin <shawn.lin@rock-chips.com>
Date:   Fri Nov 14 20:09:00 2025 +0800

    PCI: dwc: Fix wrong PORT_LOGIC_LTSSM_STATE_MASK definition
    
    [ Upstream commit bcc9a4a0bca3aee4303fa4a20302e57b24ac8f68 ]
    
    As per DesignWare Cores PCI Express Controller Databook, section 5.50,
    SII: Debug Signals, cxpl_debug_info[63:0]:
    
      [5:0] smlh_ltssm_state: LTSSM current state. Encoding is same as the
      dedicated smlh_ltssm_state output.
    
    The mask should be 6 bits, from 0 to 5. Hence, fix the mask definition.
    
    Fixes: 23fe5bd4be90 ("PCI: keystone: Cleanup ks_pcie_link_up()")
    Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
    [mani: reworded description]
    Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Link: https://patch.msgid.link/1763122140-203068-1-git-send-email-shawn.lin@rock-chips.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

PCI: keystone: Exit ks_pcie_probe() for invalid mode [+ + +]
Author: Siddharth Vadapalli <s-vadapalli@ti.com>
Date:   Wed Oct 29 13:34:51 2025 +0530

    PCI: keystone: Exit ks_pcie_probe() for invalid mode
    
    [ Upstream commit 95d9c3f0e4546eaec0977f3b387549a8463cd49f ]
    
    Commit under Fixes introduced support for PCIe EP mode on AM654x platforms.
    When the mode happens to be either "DW_PCIE_RC_TYPE" or "DW_PCIE_EP_TYPE",
    the PCIe Controller is configured accordingly. However, when the mode is
    neither of them, an error message is displayed, but the driver probe
    succeeds. Since this "invalid" mode is not associated with a functional
    PCIe Controller, the probe should fail.
    
    Fix the behavior by exiting "ks_pcie_probe()" with the return value of
    "-EINVAL" in addition to displaying the existing error message when the
    mode is invalid.
    
    Fixes: 23284ad677a9 ("PCI: keystone: Add support for PCIe EP in AM654x Platforms")
    Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
    Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Link: https://patch.msgid.link/20251029080547.1253757-4-s-vadapalli@ti.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

PCI: rcar-gen2: Drop ARM dependency from PCI_RCAR_GEN2 [+ + +]
Author: Geert Uytterhoeven <geert+renesas@glider.be>
Date:   Fri Oct 3 10:35:34 2025 +0200

    PCI: rcar-gen2: Drop ARM dependency from PCI_RCAR_GEN2
    
    [ Upstream commit d312742f686582e6457070bcfd24bee8acfdf213 ]
    
    Since the reliance on ARM-specific struct pci_sys_data was removed, this
    driver can be compile-tested on other architectures.
    
    While at it, make the help text a bit more generic, as some members of
    the R-Car Gen2 family have a different number of internal PCI
    controllers.
    
    Fixes: 4a957563fe0231e0 ("PCI: rcar-gen2: Convert to use modern host bridge probe functions")
    Suggested-by: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
    [bhelgaas: add rcar-gen2 to subject]
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Link: https://patch.msgid.link/00f75d6732eacce93f04ffaeedc415d2db714cd6.1759480426.git.geert+renesas@glider.be
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
perf annotate: Check return value of evsel__get_arch() properly [+ + +]
Author: Tianyou Li <tianyou.li@intel.com>
Date:   Mon Oct 20 15:30:05 2025 +0800

    perf annotate: Check return value of evsel__get_arch() properly
    
    [ Upstream commit f1204e5846d22fb2fffbd1164eeb19535f306797 ]
    
    Check the error code of evsel__get_arch() in the symbol__annotate().
    Previously it checked non-zero value but after the refactoring it does
    only for negative values.
    
    Fixes: 0669729eb0afb0cf ("perf annotate: Factor out evsel__get_arch()")
    Suggested-by: James Clark <james.clark@linaro.org>
    Acked-by: Namhyung Kim <namhyung@kernel.org>
    Signed-off-by: Tianyou Li <tianyou.li@intel.com>
    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
perf arm-spe: Extend branch operations [+ + +]
Author: Leo Yan <leo.yan@arm.com>
Date:   Tue Mar 4 11:12:35 2025 +0000

    perf arm-spe: Extend branch operations
    
    [ Upstream commit 64d86c03e1441742216b6332bdfabfb6ede31662 ]
    
    In Arm ARM (ARM DDI 0487, L.a), the section "D18.2.7 Operation Type
    packet", the branch subclass is extended for Call Return (CR), Guarded
    control stack data access (GCS).
    
    This commit adds support CR and GCS operations.  The IND (indirect)
    operation is defined only in bit [1], its macro is updated accordingly.
    
    Move the COND (Conditional) macro into the same group with other
    operations for better maintenance.
    
    Reviewed-by: Ian Rogers <irogers@google.com>
    Reviewed-by: James Clark <james.clark@linaro.org>
    Signed-off-by: Leo Yan <leo.yan@arm.com>
    Link: https://lore.kernel.org/r/20250304111240.3378214-8-leo.yan@arm.com
    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    Stable-dep-of: 33e1fffea492 ("perf arm_spe: Fix memset subclass in operation")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
perf arm_spe: Fix memset subclass in operation [+ + +]
Author: Leo Yan <leo.yan@arm.com>
Date:   Wed Nov 12 18:24:27 2025 +0000

    perf arm_spe: Fix memset subclass in operation
    
    [ Upstream commit 33e1fffea492b7158a168914dc0da6aedf78d08e ]
    
    The operation subclass is extracted from bits [7..1] of the payload.
    Since bit [0] is not parsed, there is no chance to match the memset type
    (0x25). As a result, the memset payload is never parsed successfully.
    
    Instead of extracting a unified bit field, change to extract the
    specific bits for each operation subclass.
    
    Fixes: 34fb60400e32 ("perf arm-spe: Add raw decoding for SPEv1.3 MTE and MOPS load/store")
    Signed-off-by: Leo Yan <leo.yan@arm.com>
    Reviewed-by: Ian Rogers <irogers@google.com>
    Reviewed-by: James Clark <james.clark@linaro.org>
    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
perf hist: In init, ensure mem_info is put on error paths [+ + +]
Author: Ian Rogers <irogers@google.com>
Date:   Sat Nov 22 00:19:18 2025 -0800

    perf hist: In init, ensure mem_info is put on error paths
    
    [ Upstream commit f60efb4454b24cc944ff3eac164bb9dce9169f71 ]
    
    Rather than exit the internal map_symbols directly, put the mem-info
    that does this and also lowers the reference count on the mem-info
    itself otherwise the mem-info is being leaked.
    
    Fixes: 56e144fe98260a0f ("perf mem_info: Add and use map_symbol__exit and addr_map_symbol__exit")
    Signed-off-by: Ian Rogers <irogers@google.com>
    Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
perf lock contention: Load kernel map before lookup [+ + +]
Author: Namhyung Kim <namhyung@kernel.org>
Date:   Wed Oct 29 21:01:39 2025 -0700

    perf lock contention: Load kernel map before lookup
    
    [ Upstream commit 553d18c98a896094b99a01765b9698b204183d49 ]
    
    On some machines, it caused troubles when it tried to find kernel
    symbols.  I think it's because kernel modules and kallsyms are messed
    up during load and split.
    
    Basically we want to make sure the kernel map is loaded and the code has
    it in the lock_contention_read().  But recently we added more lookups in
    the lock_contention_prepare() which is called before _read().
    
    Also the kernel map (kallsyms) may not be the first one in the group
    like on ARM.  Let's use machine__kernel_map() rather than just loading
    the first map.
    
    Reviewed-by: Ian Rogers <irogers@google.com>
    Fixes: 688d2e8de231c54e ("perf lock contention: Add -l/--lock-addr option")
    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
perf record: skip synthesize event when open evsel failed [+ + +]
Author: Shuai Xue <xueshuai@linux.alibaba.com>
Date:   Thu Oct 23 09:50:43 2025 +0800

    perf record: skip synthesize event when open evsel failed
    
    [ Upstream commit 163e5f2b96632b7fb2eaa965562aca0dbdf9f996 ]
    
    When using perf record with the `--overwrite` option, a segmentation fault
    occurs if an event fails to open. For example:
    
      perf record -e cycles-ct -F 1000 -a --overwrite
      Error:
      cycles-ct:H: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat'
      perf: Segmentation fault
          #0 0x6466b6 in dump_stack debug.c:366
          #1 0x646729 in sighandler_dump_stack debug.c:378
          #2 0x453fd1 in sigsegv_handler builtin-record.c:722
          #3 0x7f8454e65090 in __restore_rt libc-2.32.so[54090]
          #4 0x6c5671 in __perf_event__synthesize_id_index synthetic-events.c:1862
          #5 0x6c5ac0 in perf_event__synthesize_id_index synthetic-events.c:1943
          #6 0x458090 in record__synthesize builtin-record.c:2075
          #7 0x45a85a in __cmd_record builtin-record.c:2888
          #8 0x45deb6 in cmd_record builtin-record.c:4374
          #9 0x4e5e33 in run_builtin perf.c:349
          #10 0x4e60bf in handle_internal_command perf.c:401
          #11 0x4e6215 in run_argv perf.c:448
          #12 0x4e653a in main perf.c:555
          #13 0x7f8454e4fa72 in __libc_start_main libc-2.32.so[3ea72]
          #14 0x43a3ee in _start ??:0
    
    The --overwrite option implies --tail-synthesize, which collects non-sample
    events reflecting the system status when recording finishes. However, when
    evsel opening fails (e.g., unsupported event 'cycles-ct'), session->evlist
    is not initialized and remains NULL. The code unconditionally calls
    record__synthesize() in the error path, which iterates through the NULL
    evlist pointer and causes a segfault.
    
    To fix it, move the record__synthesize() call inside the error check block, so
    it's only called when there was no error during recording, ensuring that evlist
    is properly initialized.
    
    Fixes: 4ea648aec019 ("perf record: Add --tail-synthesize option")
    Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com>
    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
perf tools: Fix split kallsyms DSO counting [+ + +]
Author: Namhyung Kim <namhyung@kernel.org>
Date:   Tue Dec 2 15:57:15 2025 -0800

    perf tools: Fix split kallsyms DSO counting
    
    [ Upstream commit ad0b9c4865b98dc37f4d606d26b1c19808796805 ]
    
    It's counted twice as it's increased after calling maps__insert().  I
    guess we want to increase it only after it's added properly.
    
    Reviewed-by: Ian Rogers <irogers@google.com>
    Fixes: 2e538c4a1847291cf ("perf tools: Improve kernel/modules symbol lookup")
    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

perf tools: Mark split kallsyms DSOs as loaded [+ + +]
Author: Namhyung Kim <namhyung@kernel.org>
Date:   Tue Dec 2 15:57:14 2025 -0800

    perf tools: Mark split kallsyms DSOs as loaded
    
    [ Upstream commit 7da4d60db33cccd8f4c445ab20bba71531435ee5 ]
    
    The maps__split_kallsyms() will split symbols to module DSOs if it comes
    from a module.  It also handled some unusual kernel symbols after modules
    by creating new kernel maps like "[kernel].0".
    
    But they are pseudo DSOs to have those unexpected symbols.  They should
    not be considered as unloaded kernel DSOs.  Otherwise the dso__load()
    for them will end up calling dso__load_kallsyms() and then
    maps__split_kallsyms() again and again.
    
    Reviewed-by: Ian Rogers <irogers@google.com>
    Fixes: 2e538c4a1847291cf ("perf tools: Improve kernel/modules symbol lookup")
    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
perf/x86/intel/cstate: Remove PC3 support from LunarLake [+ + +]
Author: Zhang Rui <rui.zhang@intel.com>
Date:   Thu Oct 23 15:37:52 2025 -0700

    perf/x86/intel/cstate: Remove PC3 support from LunarLake
    
    [ Upstream commit 4ba45f041abe60337fdeeb68553b9ee1217d544e ]
    
    LunarLake doesn't support Package C3. Remove the PC3 residency counter
    support from LunarLake.
    
    Fixes: 26579860fbd5 ("perf/x86/intel/cstate: Add Lunarlake support")
    Signed-off-by: Zhang Rui <rui.zhang@intel.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
    Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
    Link: https://patch.msgid.link/20251023223754.1743928-3-zide.chen@intel.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
perf/x86/intel: Correct large PEBS flag check [+ + +]
Author: Dapeng Mi <dapeng1.mi@linux.intel.com>
Date:   Wed Oct 29 18:21:28 2025 +0800

    perf/x86/intel: Correct large PEBS flag check
    
    [ Upstream commit 5e4e355ae7cdeb0fef5dbe908866e1f895abfacc ]
    
    current large PEBS flag check only checks if sample_regs_user contains
    unsupported GPRs but doesn't check if sample_regs_intr contains
    unsupported GPRs.
    
    Of course, currently PEBS HW supports to sample all perf supported GPRs,
    the missed check doesn't cause real issue. But it won't be true any more
    after the subsequent patches support to sample SSP register. SSP
    sampling is not supported by adaptive PEBS HW and it would be supported
    until arch-PEBS HW. So correct this issue.
    
    Fixes: a47ba4d77e12 ("perf/x86: Enable free running PEBS for REGS_USER/INTR")
    Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://patch.msgid.link/20251029102136.61364-5-dapeng1.mi@linux.intel.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
perf: Remove get_perf_callchain() init_nr argument [+ + +]
Author: Josh Poimboeuf <jpoimboe@kernel.org>
Date:   Wed Aug 20 14:03:39 2025 -0400

    perf: Remove get_perf_callchain() init_nr argument
    
    [ Upstream commit e649bcda25b5ae1a30a182cc450f928a0b282c93 ]
    
    The 'init_nr' argument has double duty: it's used to initialize both the
    number of contexts and the number of stack entries.  That's confusing
    and the callers always pass zero anyway.  Hard code the zero.
    
    Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
    Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Acked-by: Namhyung Kim <Namhyung@kernel.org>
    Acked-by: Alexei Starovoitov <ast@kernel.org>
    Link: https://lore.kernel.org/r/20250820180428.259565081@kernel.org
    Stable-dep-of: 23f852daa4ba ("bpf: Fix stackmap overflow check in __bpf_get_stackid()")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
phy: freescale: Initialize priv->lock [+ + +]
Author: Xiaolei Wang <xiaolei.wang@windriver.com>
Date:   Thu Sep 25 09:38:06 2025 +0800

    phy: freescale: Initialize priv->lock
    
    [ Upstream commit 95e5905698983df94069e185f9eb3c67c7cf75d5 ]
    
    Initialize priv->lock to fix the following warning.
    
    WARNING: CPU: 0 PID: 12 at kernel/locking/mutex.c:577 __mutex_lock+0x70c/0x8b8
     Modules linked in:
     Hardware name: Freescale i.MX8QM MEK (DT)
     Call trace:
      __mutex_lock+0x70c/0x8b8 (P)
      mutex_lock_nested+0x24/0x30
      imx_hsio_power_on+0x4c/0x764
      phy_power_on+0x7c/0x12c
      imx_pcie_host_init+0x1d0/0x4d4
      dw_pcie_host_init+0x188/0x4b0
      imx_pcie_probe+0x324/0x6f4
      platform_probe+0x5c/0x98
      really_probe+0xbc/0x29c
      __driver_probe_device+0x78/0x12c
      driver_probe_device+0xd8/0x160
      __device_attach_driver+0xb8/0x138
      bus_for_each_drv+0x84/0xe4
      __device_attach_async_helper+0xb8/0xdc
      async_run_entry_fn+0x34/0xe0
      process_one_work+0x220/0x694
      worker_thread+0x1c0/0x36c
      kthread+0x14c/0x224
    
    Fixes: 82c56b6dd24f ("phy: freescale: imx8qm-hsio: Add i.MX8QM HSIO PHY driver support")
    Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
    Reviewed-by: Frank Li <Frank.Li@nxp.com>
    Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
    Link: https://patch.msgid.link/20250925013806.569658-1-xiaolei.wang@windriver.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

phy: mscc: Fix PTP for VSC8574 and VSC8572 [+ + +]
Author: Horatiu Vultur <horatiu.vultur@microchip.com>
Date:   Thu Oct 23 21:13:50 2025 +0200

    phy: mscc: Fix PTP for VSC8574 and VSC8572
    
    [ Upstream commit ea5df88aeca112aac69e6c32e3dd1433a113b0c9 ]
    
    The PTP initialization is two-step. First part are the function
    vsc8584_ptp_probe_once() and vsc8584_ptp_probe() at probe time which
    initialize the locks, queues, creates the PTP device. The second part is
    the function vsc8584_ptp_init() at config_init() time which initialize
    PTP in the HW.
    
    For VSC8574 and VSC8572, the PTP initialization is incomplete. It is
    missing the first part but it makes the second part. Meaning that the
    ptp_clock_register() is never called.
    
    There is no crash without the first part when enabling PTP but this is
    unexpected because some PHys have PTP functionality exposed by the
    driver and some don't even though they share the same PTP clock PTP.
    
    Fixes: 774626fa440e ("net: phy: mscc: Add PTP support for 2 more VSC PHYs")
    Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
    Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
    Link: https://patch.msgid.link/20251023191350.190940-3-horatiu.vultur@microchip.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

phy: renesas: rcar-gen3-usb2: Fix an error handling path in rcar_gen3_phy_usb2_probe() [+ + +]
Author: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Date:   Thu Oct 23 16:58:05 2025 +0300

    phy: renesas: rcar-gen3-usb2: Fix an error handling path in rcar_gen3_phy_usb2_probe()
    
    [ Upstream commit 662bb179d3381c7c069e44bb177396bcaee31cc8 ]
    
    If an error occurs after the reset_control_deassert(),
    reset_control_assert() must be called, as already done in the remove
    function.
    
    Use devm_add_action_or_reset() to add the missing call and simplify the
    .remove() function accordingly.
    
    While at it, drop struct rcar_gen3_chan::rstc as it is not used aymore.
    
    [claudiu.beznea: removed "struct reset_control *rstc = data;" from
     rcar_gen3_reset_assert(), dropped struct rcar_gen3_chan::rstc]
    
    Fixes: 4eae16375357 ("phy: renesas: rcar-gen3-usb2: Add support to initialize the bus")
    Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
    Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
    Link: https://patch.msgid.link/20251023135810.1688415-3-claudiu.beznea.uj@bp.renesas.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

phy: rockchip: samsung-hdptx: Prevent Inter-Pair Skew from exceeding the limits [+ + +]
Author: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Date:   Tue Oct 28 10:00:56 2025 +0200

    phy: rockchip: samsung-hdptx: Prevent Inter-Pair Skew from exceeding the limits
    
    [ Upstream commit 51023cf6cc5db3423dea6620746d9087e336e024 ]
    
    Fixup PHY deskew FIFO to prevent the phase of D2 lane going ahead of
    other lanes.  It's worth noting this might only happen when dealing with
    HDMI 2.0 rates.
    
    Fixes: 553be2830c5f ("phy: rockchip: Add Samsung HDMI/eDP Combo PHY driver")
    Co-developed-by: Algea Cao <algea.cao@rock-chips.com>
    Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
    Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
    Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
    Link: https://patch.msgid.link/20251028-phy-hdptx-fixes-v1-3-ecc642a59d94@collabora.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

phy: rockchip: samsung-hdptx: Reduce ROPLL loop bandwidth [+ + +]
Author: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Date:   Tue Oct 28 10:00:55 2025 +0200

    phy: rockchip: samsung-hdptx: Reduce ROPLL loop bandwidth
    
    [ Upstream commit 8daaced9f5eeb4a2c8ca08b0a8286b6a498a8387 ]
    
    Due to its relatively low frequency, a noise stemming from the 24MHz PLL
    reference clock may traverse the low-pass loop filter of ROPLL, which
    could potentially generate some HDMI flash artifacts.
    
    Reduce ROPLL loop bandwidth in an attempt to mitigate the problem.
    
    Fixes: 553be2830c5f ("phy: rockchip: Add Samsung HDMI/eDP Combo PHY driver")
    Co-developed-by: Algea Cao <algea.cao@rock-chips.com>
    Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
    Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
    Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
    Link: https://patch.msgid.link/20251028-phy-hdptx-fixes-v1-2-ecc642a59d94@collabora.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
pinctrl: renesas: rzg2l: Fix PMC restore [+ + +]
Author: Biju Das <biju.das.jz@bp.renesas.com>
Date:   Sun Sep 21 12:15:52 2025 +0100

    pinctrl: renesas: rzg2l: Fix PMC restore
    
    [ Upstream commit cea950101108b7bfffe26ec4007b8e263a4b56a8 ]
    
    PMC restore needs unlocking the register using the PWPR register.
    
    Fixes: ede014cd1ea6422d ("pinctrl: renesas: rzg2l: Add function pointer for PMC register write")
    Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
    Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Link: https://patch.msgid.link/20250921111557.103069-2-biju.das.jz@bp.renesas.com
    Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

pinctrl: single: Fix incorrect type for error return variable [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Wed Dec 3 14:13:47 2025 +0800

    pinctrl: single: Fix incorrect type for error return variable
    
    [ Upstream commit 61d1bb53547d42c6bdaec9da4496beb3a1a05264 ]
    
    pcs_pinconf_get() and pcs_pinconf_set() declare ret as unsigned int,
    but assign it the return values of pcs_get_function() that may return
    negative error codes. This causes negative error codes to be
    converted to large positive values.
    
    Change ret from unsigned int to int in both functions.
    
    Fixes: 9dddb4df90d1 ("pinctrl: single: support generic pinconf")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Signed-off-by: Linus Walleij <linusw@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

pinctrl: stm32: fix hwspinlock resource leak in probe function [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Wed Oct 29 09:42:52 2025 +0800

    pinctrl: stm32: fix hwspinlock resource leak in probe function
    
    [ Upstream commit 002679f79ed605e543fbace465557317cd307c9a ]
    
    In stm32_pctl_probe(), hwspin_lock_request_specific() is called to
    request a hwspinlock, but the acquired lock is not freed on multiple
    error paths after this call. This causes resource leakage when the
    function fails to initialize properly.
    
    Use devm_hwspin_lock_request_specific() instead of
    hwspin_lock_request_specific() to automatically manage the hwspinlock
    resource lifecycle.
    
    Fixes: 97cfb6cd34f2 ("pinctrl: stm32: protect configuration registers with a hwspinlock")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Reviewed-by: Antonio Borneo <antonio.borneo@foss.st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
platform/x86: asus-wmi: use brightness_set_blocking() for kbd led [+ + +]
Author: Anton Khirnov <anton@khirnov.net>
Date:   Sat Nov 29 11:13:08 2025 +0100

    platform/x86: asus-wmi: use brightness_set_blocking() for kbd led
    
    [ Upstream commit ccb61a328321ba3f8567e350664c9ca7a42b6c70 ]
    
    kbd_led_set() can sleep, and so may not be used as the brightness_set()
    callback.
    
    Otherwise using this led with a trigger leads to system hangs
    accompanied by:
    BUG: scheduling while atomic: acpi_fakekeyd/2588/0x00000003
    CPU: 4 UID: 0 PID: 2588 Comm: acpi_fakekeyd Not tainted 6.17.9+deb14-amd64 #1 PREEMPT(lazy)  Debian 6.17.9-1
    Hardware name: ASUSTeK COMPUTER INC. ASUS EXPERTBOOK B9403CVAR/B9403CVAR, BIOS B9403CVAR.311 12/24/2024
    Call Trace:
     <TASK>
     [...]
     schedule_timeout+0xbd/0x100
     __down_common+0x175/0x290
     down_timeout+0x67/0x70
     acpi_os_wait_semaphore+0x57/0x90
     [...]
     asus_wmi_evaluate_method3+0x87/0x190 [asus_wmi]
     led_trigger_event+0x3f/0x60
     [...]
    
    Fixes: 9fe44fc98ce4 ("platform/x86: asus-wmi: Simplify the keyboard brightness updating process")
    Signed-off-by: Anton Khirnov <anton@khirnov.net>
    Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Reviewed-by: Denis Benato <benato.denis96@gmail.com>
    Link: https://patch.msgid.link/20251129101307.18085-3-anton@khirnov.net
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
Linux: platform/x86:intel/pmc: Update Arrow Lake telemetry GUID [+ + +]
Author: Xi Pardee <xi.pardee@linux.intel.com>
Date:   Tue Oct 14 14:45:29 2025 -0700

    platform/x86:intel/pmc: Update Arrow Lake telemetry GUID
    
    [ Upstream commit 644ab3bc98ee386f178d5209ae8170b3fac591aa ]
    
    Update ARL_PMT_DMU_GUID value. Arrow Lake PMT DMU GUID has been updated
    after it was add to the driver. This updates ensures that the die C6
    value is available in the debug filesystem.
    
    Bugzilla Link: https://bugzilla.kernel.org/show_bug.cgi?id=220421
    Fixes: 83f168a1a437 ("platform/x86/intel/pmc: Add Arrow Lake S support to intel_pmc_core driver")
    Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
    Signed-off-by: Xi Pardee <xi.pardee@linux.intel.com>
    Link: https://patch.msgid.link/20251014214548.629023-2-xi.pardee@linux.intel.com
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
power: supply: apm_power: only unset own apm_get_power_status [+ + +]
Author: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Date:   Fri Oct 17 00:05:18 2025 +0200

    power: supply: apm_power: only unset own apm_get_power_status
    
    [ Upstream commit bd44ea12919ac4e83c9f3997240fe58266aa8799 ]
    
    Mirroring drivers/macintosh/apm_emu.c, this means that
      modprobe apm_power && modprobe $anotherdriver && modprobe -r apm_power
    leaves $anotherdriver's apm_get_power_status instead of deleting it.
    
    Fixes: 3788ec932bfd ("[BATTERY] APM emulation driver for class batteries")
    Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
    Link: https://patch.msgid.link/xczpgox57hxbunkcbdl5fxhc4gnsajsipldfidi7355afezk64@tarta.nabijaczleweli.xyz
    Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

power: supply: cw2015: Check devm_delayed_work_autocancel() return code [+ + +]
Author: Ivan Abramov <i.abramov@mt-integration.ru>
Date:   Wed Oct 8 15:07:11 2025 +0300

    power: supply: cw2015: Check devm_delayed_work_autocancel() return code
    
    [ Upstream commit 92ec7e7b86ec0aff9cd7db64d9dce50a0ea7c542 ]
    
    Since devm_delayed_work_autocancel() may fail, add return code check and
    exit cw_bat_probe() on error.
    
    Found by Linux Verification Center (linuxtesting.org) with SVACE.
    
    Fixes: 0cb172a4918e ("power: supply: cw2015: Use device managed API to simplify the code")
    Signed-off-by: Ivan Abramov <i.abramov@mt-integration.ru>
    Link: https://patch.msgid.link/20251008120711.556021-1-i.abramov@mt-integration.ru
    Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

power: supply: max17040: Check iio_read_channel_processed() return code [+ + +]
Author: Ivan Abramov <i.abramov@mt-integration.ru>
Date:   Wed Oct 8 16:36:47 2025 +0300

    power: supply: max17040: Check iio_read_channel_processed() return code
    
    [ Upstream commit 2c68ac48c52ad146523f32b01d70009622bf81aa ]
    
    Since iio_read_channel_processed() may fail, return its exit code on error.
    
    Found by Linux Verification Center (linuxtesting.org) with SVACE.
    
    Fixes: 814755c48f8b ("power: max17040: get thermal data from adc if available")
    Signed-off-by: Ivan Abramov <i.abramov@mt-integration.ru>
    Link: https://patch.msgid.link/20251008133648.559286-1-i.abramov@mt-integration.ru
    Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

power: supply: rt5033_charger: Fix device node reference leaks [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Mon Sep 29 19:32:34 2025 +0800

    power: supply: rt5033_charger: Fix device node reference leaks
    
    [ Upstream commit 6cdc4d488c2f3a61174bfba4e8cc4ac92c219258 ]
    
    The device node pointers `np_conn` and `np_edev`, obtained from
    of_parse_phandle() and of_get_parent() respectively, are not released.
    This results in a reference count leak.
    
    Add of_node_put() calls after the last use of these device nodes to
    properly release their references and fix the leaks.
    
    Fixes: 8242336dc8a8 ("power: supply: rt5033_charger: Add cable detection and USB OTG supply")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Link: https://patch.msgid.link/20250929113234.1726-1-vulab@iscas.ac.cn
    Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

power: supply: rt9467: Prevent using uninitialized local variable in rt9467_set_value_from_ranges() [+ + +]
Author: Murad Masimov <m.masimov@mt-integration.ru>
Date:   Thu Oct 9 17:53:08 2025 +0300

    power: supply: rt9467: Prevent using uninitialized local variable in rt9467_set_value_from_ranges()
    
    [ Upstream commit 15aca30cc6c69806054b896a2ccf7577239cb878 ]
    
    There is a typo in rt9467_set_value_from_ranges() that can cause leaving local
    variable sel with an undefined value which is then used in regmap_field_write().
    
    Found by Linux Verification Center (linuxtesting.org) with SVACE.
    
    Fixes: 6f7f70e3a8dd ("power: supply: rt9467: Add Richtek RT9467 charger driver")
    Signed-off-by: Murad Masimov <m.masimov@mt-integration.ru>
    Link: https://patch.msgid.link/20251009145308.1830893-1-m.masimov@mt-integration.ru
    Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

power: supply: rt9467: Return error on failure in rt9467_set_value_from_ranges() [+ + +]
Author: Ivan Abramov <i.abramov@mt-integration.ru>
Date:   Thu Oct 9 17:47:24 2025 +0300

    power: supply: rt9467: Return error on failure in rt9467_set_value_from_ranges()
    
    [ Upstream commit 8b27fe2d8d2380118c343629175385ff587e2fe4 ]
    
    The return value of rt9467_set_value_from_ranges() when setting AICL VTH is
    not checked, even though it may fail.
    
    Log error and return from rt9467_run_aicl() on fail.
    
    Found by Linux Verification Center (linuxtesting.org) with SVACE.
    
    Fixes: 6f7f70e3a8dd ("power: supply: rt9467: Add Richtek RT9467 charger driver")
    Signed-off-by: Ivan Abramov <i.abramov@mt-integration.ru>
    Link: https://patch.msgid.link/20251009144725.562278-1-i.abramov@mt-integration.ru
    Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

power: supply: wm831x: Check wm831x_set_bits() return value [+ + +]
Author: Ivan Abramov <i.abramov@mt-integration.ru>
Date:   Thu Oct 9 20:05:52 2025 +0300

    power: supply: wm831x: Check wm831x_set_bits() return value
    
    [ Upstream commit ea14bae6df18942bccb467fcf5ff33ca677b8253 ]
    
    Since wm831x_set_bits() may return error, log failure and exit from
    wm831x_usb_limit_change() in such case.
    
    Found by Linux Verification Center (linuxtesting.org) with SVACE.
    
    Fixes: 626b6cd5f52e ("power: wm831x_power: Support USB charger current limit management")
    Signed-off-by: Ivan Abramov <i.abramov@mt-integration.ru>
    Link: https://patch.msgid.link/20251009170553.566561-1-i.abramov@mt-integration.ru
    Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
powerpc/32: Fix unpaired stwcx. on interrupt exit [+ + +]
Author: Christophe Leroy <chleroy@kernel.org>
Date:   Fri Sep 12 10:37:34 2025 +0200

    powerpc/32: Fix unpaired stwcx. on interrupt exit
    
    [ Upstream commit 10e1c77c3636d815db802ceef588522c2d2d947c ]
    
    Commit b96bae3ae2cb ("powerpc/32: Replace ASM exception exit by C
    exception exit from ppc64") erroneouly copied to powerpc/32 the logic
    from powerpc/64 based on feature CPU_FTR_STCX_CHECKS_ADDRESS which is
    always 0 on powerpc/32.
    
    Re-instate the logic implemented by commit b64f87c16f3c ("[POWERPC]
    Avoid unpaired stwcx. on some processors") which is based on
    CPU_FTR_NEED_PAIRED_STWCX feature.
    
    Fixes: b96bae3ae2cb ("powerpc/32: Replace ASM exception exit by C exception exit from ppc64")
    Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
    Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
    Link: https://patch.msgid.link/6040b5dbcf5cdaa1cd919fcf0790f12974ea6e5a.1757666244.git.christophe.leroy@csgroup.eu
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
powerpc/64s/hash: Restrict stress_hpt_struct memblock region to within RMA limit [+ + +]
Author: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Date:   Thu Oct 30 20:27:27 2025 +0530

    powerpc/64s/hash: Restrict stress_hpt_struct memblock region to within RMA limit
    
    [ Upstream commit 17b45ccf09882e0c808ad2cf62acdc90ad968746 ]
    
    When HV=0 & IR/DR=0, the Hash MMU is said to be in Virtual Real
    Addressing Mode during early boot. During this, we should ensure that
    memory region allocations for stress_hpt_struct should happen from
    within RMA region as otherwise the boot might get stuck while doing
    memset of this region.
    
    History behind why do we have RMA region limitation is better explained
    in these 2 patches [1] & [2]. This patch ensures that memset to
    stress_hpt_struct during early boot does not cross ppc64_rma_size
    boundary.
    
    [1]: https://lore.kernel.org/all/20190710052018.14628-1-sjitindarsingh@gmail.com/
    [2]: https://lore.kernel.org/all/87wp54usvj.fsf@linux.vnet.ibm.com/
    
    Fixes: 6b34a099faa12 ("powerpc/64s/hash: add stress_hpt kernel boot option to increase hash faults")
    Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
    Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
    Link: https://patch.msgid.link/ada1173933ea7617a994d6ee3e54ced8797339fc.1761834163.git.ritesh.list@gmail.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
powerpc/64s/ptdump: Fix kernel_hash_pagetable dump for ISA v3.00 HPTE format [+ + +]
Author: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Date:   Thu Oct 30 20:27:28 2025 +0530

    powerpc/64s/ptdump: Fix kernel_hash_pagetable dump for ISA v3.00 HPTE format
    
    [ Upstream commit eae40a6da63faa9fb63ff61f8fa2b3b57da78a84 ]
    
    HPTE format was changed since Power9 (ISA 3.0) onwards. While dumping
    kernel hash page tables, nothing gets printed on powernv P9+. This patch
    utilizes the helpers added in the patch tagged as fixes, to convert new
    format to old format and dump the hptes. This fix is only needed for
    native_find() (powernv), since pseries continues to work fine with the
    old format.
    
    Fixes: 6b243fcfb5f1e ("powerpc/64: Simplify adaptation to new ISA v3.00 HPTE format")
    Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
    Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
    Link: https://patch.msgid.link/4c2bb9e5b3cfbc0dd80b61b67cdd3ccfc632684c.1761834163.git.ritesh.list@gmail.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
powerpc/kdump: Fix size calculation for hot-removed memory ranges [+ + +]
Author: Sourabh Jain <sourabhjain@linux.ibm.com>
Date:   Wed Nov 5 09:09:41 2025 +0530

    powerpc/kdump: Fix size calculation for hot-removed memory ranges
    
    [ Upstream commit 7afe2383eff05f76f4ce2cfda658b7889c89f101 ]
    
    The elfcorehdr segment in the kdump image stores information about the
    memory regions (called crash memory ranges) that the kdump kernel must
    capture.
    
    When a memory hot-remove event occurs, the kernel regenerates the
    elfcorehdr for the currently loaded kdump image to remove the
    hot-removed memory from the crash memory ranges.
    
    Call chain:
    remove_mem_range()
    update_crash_elfcorehdr()
    arch_crash_handle_hotplug_event()
    crash_handle_hotplug_event()
    
    While removing the hot-removed memory from the crash memory ranges in
    remove_mem_range(), if the removed memory lies within an existing crash
    range, that range is split into two. During this split, the size of the
    second range was being calculated incorrectly.
    
    This leads to dump capture failure with makedumpfile with below error:
    
    $ makedumpfile -l -d 31 /proc/vmcore /tmp/vmcore
    
    readpage_elf: Attempt to read non-existent page at 0xbbdab0000.
    readmem: type_addr: 0, addr:c000000bbdab7f00, size:16
    validate_mem_section: Can't read mem_section array.
    readpage_elf: Attempt to read non-existent page at 0xbbdab0000.
    readmem: type_addr: 0, addr:c000000bbdab7f00, size:8
    get_mm_sparsemem: Can't get the address of mem_section.
    
    The updated crash memory range in PT_LOAD entry is holding incorrect
    data (checkout FileSiz and MemSiz):
    
    readelf -a /proc/vmcore
    <snip...>
      Type           Offset             VirtAddr           PhysAddr
                     FileSiz            MemSiz              Flags  Align
      LOAD           0x0000000b013d0000 0xc000000b80000000 0x0000000b80000000
                     0xffffffffc0000000 0xffffffffc0000000  RWE    0x0
    <snip...>
    
    Update the size calculation for the new crash memory range to fix this
    issue.
    
    Note: This problem will not occur if the kdump kernel is loaded or
    reloaded after a memory hot-remove operation.
    
    Fixes: 849599b702ef ("powerpc/crash: add crash memory hotplug support")
    Reported-by: Shirisha G <shirisha@linux.ibm.com>
    Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
    Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
    Link: https://patch.msgid.link/20251105033941.1752287-1-sourabhjain@linux.ibm.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
ps3disk: use memcpy_{from,to}_bvec index [+ + +]
Author: Rene Rebe <rene@exactco.de>
Date:   Fri Nov 14 15:30:33 2025 +0100

    ps3disk: use memcpy_{from,to}_bvec index
    
    [ Upstream commit 79bd8c9814a273fa7ba43399e1c07adec3fc95db ]
    
    With 6e0a48552b8c (ps3disk: use memcpy_{from,to}_bvec) converting
    ps3disk to new bvec helpers, incrementing the offset was accidently
    lost, corrupting consecutive buffers. Restore index for non-corrupted
    data transfers.
    
    Fixes: 6e0a48552b8c (ps3disk: use memcpy_{from,to}_bvec)
    Signed-off-by: René Rebe <rene@exactco.de>
    Reviewed-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
pwm: bcm2835: Make sure the channel is enabled after pwm_request() [+ + +]
Author: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Date:   Tue Nov 18 18:43:02 2025 +0100

    pwm: bcm2835: Make sure the channel is enabled after pwm_request()
    
    [ Upstream commit cda323dbda76600bf9761970d58517648f0de67d ]
    
    The .free callback cleared among others the enable bit PWENx in the
    control register. When the PWM is requested later again this bit isn't
    restored but the core assumes the PWM is enabled and thus skips a
    request to configure the same state as before.
    
    To fix that don't touch the hardware configuration in .free(). For
    symmetry also drop .request() and configure the mode completely in
    .apply().
    
    Fixes: e5a06dc5ac1f ("pwm: Add BCM2835 PWM driver")
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
    Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
    Link: https://patch.msgid.link/20251118174303.1761577-2-u.kleine-koenig@baylibre.com
    Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
RAS: Report all ARM processor CPER information to userspace [+ + +]
Author: Jason Tian <jason@os.amperecomputing.com>
Date:   Thu Aug 14 09:52:52 2025 -0700

    RAS: Report all ARM processor CPER information to userspace
    
    [ Upstream commit 05954511b73e748d0370549ad9dd9cd95297d97a ]
    
    The ARM processor CPER record was added in UEFI v2.6 and remained
    unchanged up to v2.10.
    
    Yet, the original arm_event trace code added by
    
      e9279e83ad1f ("trace, ras: add ARM processor error trace event")
    
    is incomplete, as it only traces some fields of UAPI 2.6 table N.16, not
    exporting any information from tables N.17 to N.29 of the record.
    
    This is not enough for the user to be able to figure out what has
    exactly happened or to take appropriate action.
    
    According to the UEFI v2.9 specification chapter N2.4.4, the ARM
    processor error section includes:
    
    - several (ERR_INFO_NUM) ARM processor error information structures
      (Tables N.17 to N.20);
    - several (CONTEXT_INFO_NUM) ARM processor context information
      structures (Tables N.21 to N.29);
    - several vendor specific error information structures. The
      size is given by Section Length minus the size of the other
      fields.
    
    In addition, it also exports two fields that are parsed by the GHES
    driver when firmware reports it, e.g.:
    
    - error severity
    - CPU logical index
    
    Report all of these information to userspace via a the ARM tracepoint so
    that userspace can properly record the error and take decisions related
    to CPU core isolation according to error severity and other info.
    
    The updated ARM trace event now contains the following fields:
    
    ======================================  =============================
    UEFI field on table N.16                ARM Processor trace fields
    ======================================  =============================
    Validation                              handled when filling data for
                                            affinity MPIDR and running
                                            state.
    ERR_INFO_NUM                            pei_len
    CONTEXT_INFO_NUM                        ctx_len
    Section Length                          indirectly reported by
                                            pei_len, ctx_len and oem_len
    Error affinity level                    affinity
    MPIDR_EL1                               mpidr
    MIDR_EL1                                midr
    Running State                           running_state
    PSCI State                              psci_state
    Processor Error Information Structure   pei_err - count at pei_len
    Processor Context                       ctx_err- count at ctx_len
    Vendor Specific Error Info              oem - count at oem_len
    ======================================  =============================
    
    It should be noted that decoding of tables N.17 to N.29, if needed, will
    be handled in userspace. That gives more flexibility, as there won't be
    any need to flood the kernel with micro-architecture specific error
    decoding.
    
    Also, decoding the other fields require a complex logic, and should be
    done for each of the several values inside the record field.  So, let
    userspace daemons like rasdaemon decode them, parsing such tables and
    having vendor-specific micro-architecture-specific decoders.
    
     [mchehab: modified description, solved merge conflicts and fixed coding style]
    
    Signed-off-by: Jason Tian <jason@os.amperecomputing.com>
    Co-developed-by: Shengwei Luo <luoshengwei@huawei.com>
    Signed-off-by: Shengwei Luo <luoshengwei@huawei.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Signed-off-by: Daniel Ferguson <danielf@os.amperecomputing.com> # rebased
    Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
    Tested-by: Shiju Jose <shiju.jose@huawei.com>
    Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
    Fixes: e9279e83ad1f ("trace, ras: add ARM processor error trace event")
    Link: https://uefi.org/specs/UEFI/2.10/Apx_N_Common_Platform_Error_Record.html#arm-processor-error-section
    Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
rculist: Add hlist_nulls_replace_rcu() and hlist_nulls_replace_init_rcu() [+ + +]
Author: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
Date:   Wed Oct 15 10:02:34 2025 +0800

    rculist: Add hlist_nulls_replace_rcu() and hlist_nulls_replace_init_rcu()
    
    [ Upstream commit 9c4609225ec1cb551006d6a03c7c4ad8cb5584c0 ]
    
    Add two functions to atomically replace RCU-protected hlist_nulls entries.
    
    Keep using WRITE_ONCE() to assign values to ->next and ->pprev, as
    mentioned in the patch below:
    commit efd04f8a8b45 ("rcu: Use WRITE_ONCE() for assignments to ->next for
    rculist_nulls")
    commit 860c8802ace1 ("rcu: Use WRITE_ONCE() for assignments to ->pprev for
    hlist_nulls")
    
    Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
    Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
    Reviewed-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
    Link: https://patch.msgid.link/20251015020236.431822-2-xuanqiang.luo@linux.dev
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Stable-dep-of: 1532ed0d0753 ("inet: Avoid ehash lookup race in inet_ehash_insert()")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
RDMA/bnxt_re: Fix the inline size for GenP7 devices [+ + +]
Author: Selvin Xavier <selvin.xavier@broadcom.com>
Date:   Wed Nov 19 23:36:54 2025 -0800

    RDMA/bnxt_re: Fix the inline size for GenP7 devices
    
    [ Upstream commit 6afe40ff484a1155b71158b911c65299496e35c3 ]
    
    Inline size supported by the device is based on the number
    of SGEs supported by the adapter. Change the inline
    size calculation based on that.
    
    Fixes: de1d364c3815 ("RDMA/bnxt_re: Add support for Variable WQE in Genp7 adapters")
    Reviewed-by: Kashyap Desai <kashyap.desai@broadcom.com>
    Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
    Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
    Link: https://patch.msgid.link/1763624215-10382-1-git-send-email-selvin.xavier@broadcom.com
    Signed-off-by: Leon Romanovsky <leon@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

RDMA/bnxt_re: Pass correct flag for dma mr creation [+ + +]
Author: Selvin Xavier <selvin.xavier@broadcom.com>
Date:   Wed Nov 19 23:36:55 2025 -0800

    RDMA/bnxt_re: Pass correct flag for dma mr creation
    
    [ Upstream commit a26c4c7cdb50247b8486f1caa1ea8ab5e5c37edf ]
    
    DMA MR doesn't use the unified MR model. So the lkey passed
    on to the reg_mr command to FW should contain the correct
    lkey. Driver is incorrectly over writing the lkey with pdid
    and firmware commands fails due to this.
    
    Avoid passing the wrong key for cases where the unified MR
    registration is not used.
    
    Fixes: f786eebbbefa ("RDMA/bnxt_re: Avoid an extra hwrm per MR creation")
    Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
    Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
    Link: https://patch.msgid.link/1763624215-10382-2-git-send-email-selvin.xavier@broadcom.com
    Signed-off-by: Leon Romanovsky <leon@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
RDMA/irdma: Do not directly rely on IB_PD_UNSAFE_GLOBAL_RKEY [+ + +]
Author: Jacob Moroni <jmoroni@google.com>
Date:   Mon Nov 24 20:53:47 2025 -0600

    RDMA/irdma: Do not directly rely on IB_PD_UNSAFE_GLOBAL_RKEY
    
    [ Upstream commit 71d3bdae5eab21cf8991a6f3cd914caa31d5a51f ]
    
    The HW disables bounds checking for MRs with a length of zero, so
    the driver will only allow a zero length MR if the "all_memory"
    flag is set, and this flag is only set if IB_PD_UNSAFE_GLOBAL_RKEY
    is set for the PD.
    
    This means that the "get_dma_mr" method will currently fail unless
    the IB_PD_UNSAFE_GLOBAL_RKEY flag is set. This has not been an issue
    because the "get_dma_mr" method is only ever invoked if the device
    does not support the local DMA key or if IB_PD_UNSAFE_GLOBAL_RKEY
    is set, and so far, all IRDMA HW supports the local DMA lkey.
    
    However, some new HW does not support the local DMA lkey, so the
    "get_dma_mr" method needs to work without IB_PD_UNSAFE_GLOBAL_RKEY
    being set.
    
    To support HW that does not allow the local DMA lkey, the logic has
    been changed to pass an explicit flag to indicate when a dma_mr is
    being created so that the zero length will be allowed.
    
    Also, the "all_memory" flag has been forced to false for normal MR
    allocation since these MRs are never supposed to provide global
    unsafe rkey semantics anyway; only the MR created with "get_dma_mr"
    should support this.
    
    Fixes: bb6d73d9add6 ("RDMA/irdma: Prevent zero-length STAG registration")
    Signed-off-by: Jacob Moroni <jmoroni@google.com>
    Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
    Link: https://patch.msgid.link/20251125025350.180-7-tatyana.e.nikolova@intel.com
    Signed-off-by: Leon Romanovsky <leon@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

RDMA/irdma: Fix data race in irdma_free_pble [+ + +]
Author: Krzysztof Czurylo <krzysztof.czurylo@intel.com>
Date:   Mon Nov 24 20:53:43 2025 -0600

    RDMA/irdma: Fix data race in irdma_free_pble
    
    [ Upstream commit 81f44409fb4f027d1e6d54edbeba5156ad94b214 ]
    
    Protects pble_rsrc counters with mutex to prevent data race.
    Fixes the following data race in irdma_free_pble reported by KCSAN:
    
    BUG: KCSAN: data-race in irdma_free_pble [irdma] / irdma_free_pble [irdma]
    
    write to 0xffff91430baa0078 of 8 bytes by task 16956 on cpu 5:
     irdma_free_pble+0x3b/0xb0 [irdma]
     irdma_dereg_mr+0x108/0x110 [irdma]
     ib_dereg_mr_user+0x74/0x160 [ib_core]
     uverbs_free_mr+0x26/0x30 [ib_uverbs]
     destroy_hw_idr_uobject+0x4a/0x90 [ib_uverbs]
     uverbs_destroy_uobject+0x7b/0x330 [ib_uverbs]
     uobj_destroy+0x61/0xb0 [ib_uverbs]
     ib_uverbs_run_method+0x1f2/0x380 [ib_uverbs]
     ib_uverbs_cmd_verbs+0x365/0x440 [ib_uverbs]
     ib_uverbs_ioctl+0x111/0x190 [ib_uverbs]
     __x64_sys_ioctl+0xc9/0x100
     do_syscall_64+0x44/0xa0
     entry_SYSCALL_64_after_hwframe+0x6e/0xd8
    
    read to 0xffff91430baa0078 of 8 bytes by task 16953 on cpu 2:
     irdma_free_pble+0x23/0xb0 [irdma]
     irdma_dereg_mr+0x108/0x110 [irdma]
     ib_dereg_mr_user+0x74/0x160 [ib_core]
     uverbs_free_mr+0x26/0x30 [ib_uverbs]
     destroy_hw_idr_uobject+0x4a/0x90 [ib_uverbs]
     uverbs_destroy_uobject+0x7b/0x330 [ib_uverbs]
     uobj_destroy+0x61/0xb0 [ib_uverbs]
     ib_uverbs_run_method+0x1f2/0x380 [ib_uverbs]
     ib_uverbs_cmd_verbs+0x365/0x440 [ib_uverbs]
     ib_uverbs_ioctl+0x111/0x190 [ib_uverbs]
     __x64_sys_ioctl+0xc9/0x100
     do_syscall_64+0x44/0xa0
     entry_SYSCALL_64_after_hwframe+0x6e/0xd8
    
    value changed: 0x0000000000005a62 -> 0x0000000000005a68
    
    Fixes: e8c4dbc2fcac ("RDMA/irdma: Add PBLE resource manager")
    Signed-off-by: Krzysztof Czurylo <krzysztof.czurylo@intel.com>
    Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
    Link: https://patch.msgid.link/20251125025350.180-3-tatyana.e.nikolova@intel.com
    Signed-off-by: Leon Romanovsky <leon@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

RDMA/irdma: Fix data race in irdma_sc_ccq_arm [+ + +]
Author: Krzysztof Czurylo <krzysztof.czurylo@intel.com>
Date:   Mon Nov 24 20:53:42 2025 -0600

    RDMA/irdma: Fix data race in irdma_sc_ccq_arm
    
    [ Upstream commit a521928164433de44fed5aaf5f49aeb3f1fb96f5 ]
    
    Adds a lock around irdma_sc_ccq_arm body to prevent inter-thread data race.
    Fixes data race in irdma_sc_ccq_arm() reported by KCSAN:
    
    BUG: KCSAN: data-race in irdma_sc_ccq_arm [irdma] / irdma_sc_ccq_arm [irdma]
    
    read to 0xffff9d51b4034220 of 8 bytes by task 255 on cpu 11:
     irdma_sc_ccq_arm+0x36/0xd0 [irdma]
     irdma_cqp_ce_handler+0x300/0x310 [irdma]
     cqp_compl_worker+0x2a/0x40 [irdma]
     process_one_work+0x402/0x7e0
     worker_thread+0xb3/0x6d0
     kthread+0x178/0x1a0
     ret_from_fork+0x2c/0x50
    
    write to 0xffff9d51b4034220 of 8 bytes by task 89 on cpu 3:
     irdma_sc_ccq_arm+0x7e/0xd0 [irdma]
     irdma_cqp_ce_handler+0x300/0x310 [irdma]
     irdma_wait_event+0xd4/0x3e0 [irdma]
     irdma_handle_cqp_op+0xa5/0x220 [irdma]
     irdma_hw_flush_wqes+0xb1/0x300 [irdma]
     irdma_flush_wqes+0x22e/0x3a0 [irdma]
     irdma_cm_disconn_true+0x4c7/0x5d0 [irdma]
     irdma_disconnect_worker+0x35/0x50 [irdma]
     process_one_work+0x402/0x7e0
     worker_thread+0xb3/0x6d0
     kthread+0x178/0x1a0
     ret_from_fork+0x2c/0x50
    
    value changed: 0x0000000000024000 -> 0x0000000000034000
    
    Fixes: 3f49d6842569 ("RDMA/irdma: Implement HW Admin Queue OPs")
    Signed-off-by: Krzysztof Czurylo <krzysztof.czurylo@intel.com>
    Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
    Link: https://patch.msgid.link/20251125025350.180-2-tatyana.e.nikolova@intel.com
    Signed-off-by: Leon Romanovsky <leon@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
RDMA/rtrs: server: Fix error handling in get_or_create_srv [+ + +]
Author: Ma Ke <make24@iscas.ac.cn>
Date:   Mon Nov 10 08:51:58 2025 +0800

    RDMA/rtrs: server: Fix error handling in get_or_create_srv
    
    [ Upstream commit a338d6e849ab31f32c08b4fcac11c0c72afbb150 ]
    
    After device_initialize() is called, use put_device() to release the
    device according to kernel device management rules. While direct
    kfree() work in this case, using put_device() is more correct.
    
    Found by code review.
    
    Fixes: 9cb837480424 ("RDMA/rtrs: server: main functionality")
    Signed-off-by: Ma Ke <make24@iscas.ac.cn>
    Link: https://patch.msgid.link/20251110005158.13394-1-make24@iscas.ac.cn
    Acked-by: Jack Wang <jinpu.wang@ionos.com>
    Signed-off-by: Leon Romanovsky <leon@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
RDMA/rxe: Fix null deref on srq->rq.queue after resize failure [+ + +]
Author: Zhu Yanjun <yanjun.zhu@linux.dev>
Date:   Mon Oct 27 14:52:03 2025 -0700

    RDMA/rxe: Fix null deref on srq->rq.queue after resize failure
    
    [ Upstream commit 503a5e4690ae14c18570141bc0dcf7501a8419b0 ]
    
    A NULL pointer dereference can occur in rxe_srq_chk_attr() when
    ibv_modify_srq() is invoked twice in succession under certain error
    conditions. The first call may fail in rxe_queue_resize(), which leads
    rxe_srq_from_attr() to set srq->rq.queue = NULL. The second call then
    triggers a crash (null deref) when accessing
    srq->rq.queue->buf->index_mask.
    
    Call Trace:
    <TASK>
    rxe_modify_srq+0x170/0x480 [rdma_rxe]
    ? __pfx_rxe_modify_srq+0x10/0x10 [rdma_rxe]
    ? uverbs_try_lock_object+0x4f/0xa0 [ib_uverbs]
    ? rdma_lookup_get_uobject+0x1f0/0x380 [ib_uverbs]
    ib_uverbs_modify_srq+0x204/0x290 [ib_uverbs]
    ? __pfx_ib_uverbs_modify_srq+0x10/0x10 [ib_uverbs]
    ? tryinc_node_nr_active+0xe6/0x150
    ? uverbs_fill_udata+0xed/0x4f0 [ib_uverbs]
    ib_uverbs_handler_UVERBS_METHOD_INVOKE_WRITE+0x2c0/0x470 [ib_uverbs]
    ? __pfx_ib_uverbs_handler_UVERBS_METHOD_INVOKE_WRITE+0x10/0x10 [ib_uverbs]
    ? uverbs_fill_udata+0xed/0x4f0 [ib_uverbs]
    ib_uverbs_run_method+0x55a/0x6e0 [ib_uverbs]
    ? __pfx_ib_uverbs_handler_UVERBS_METHOD_INVOKE_WRITE+0x10/0x10 [ib_uverbs]
    ib_uverbs_cmd_verbs+0x54d/0x800 [ib_uverbs]
    ? __pfx_ib_uverbs_cmd_verbs+0x10/0x10 [ib_uverbs]
    ? __pfx___raw_spin_lock_irqsave+0x10/0x10
    ? __pfx_do_vfs_ioctl+0x10/0x10
    ? ioctl_has_perm.constprop.0.isra.0+0x2c7/0x4c0
    ? __pfx_ioctl_has_perm.constprop.0.isra.0+0x10/0x10
    ib_uverbs_ioctl+0x13e/0x220 [ib_uverbs]
    ? __pfx_ib_uverbs_ioctl+0x10/0x10 [ib_uverbs]
    __x64_sys_ioctl+0x138/0x1c0
    do_syscall_64+0x82/0x250
    ? fdget_pos+0x58/0x4c0
    ? ksys_write+0xf3/0x1c0
    ? __pfx_ksys_write+0x10/0x10
    ? do_syscall_64+0xc8/0x250
    ? __pfx_vm_mmap_pgoff+0x10/0x10
    ? fget+0x173/0x230
    ? fput+0x2a/0x80
    ? ksys_mmap_pgoff+0x224/0x4c0
    ? do_syscall_64+0xc8/0x250
    ? do_user_addr_fault+0x37b/0xfe0
    ? clear_bhb_loop+0x50/0xa0
    ? clear_bhb_loop+0x50/0xa0
    ? clear_bhb_loop+0x50/0xa0
    entry_SYSCALL_64_after_hwframe+0x76/0x7e
    
    Fixes: 8700e3e7c485 ("Soft RoCE driver")
    Tested-by: Liu Yi <asatsuyu.liu@gmail.com>
    Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
    Link: https://patch.msgid.link/20251027215203.1321-1-yanjun.zhu@linux.dev
    Signed-off-by: Leon Romanovsky <leon@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
regulator: core: disable supply if enabling main regulator fails [+ + +]
Author: Gabor Juhos <j4g8y7@gmail.com>
Date:   Fri Nov 7 18:10:08 2025 +0100

    regulator: core: disable supply if enabling main regulator fails
    
    [ Upstream commit fb1ebb10468da414d57153ddebaab29c38ef1a78 ]
    
    For 'always-on' and 'boot-on' regulators, the set_machine_constraints()
    may enable supply before enabling the main regulator, however if the
    latter fails, the function returns with an error but the supply remains
    enabled.
    
    When this happens, the regulator_register() function continues on the
    error path where it puts the supply regulator. Since enabling the supply
    is not balanced with a disable call, a warning similar to the following
    gets issued from _regulator_put():
    
        [    1.603889] WARNING: CPU: 2 PID: 44 at _regulator_put+0x8c/0xa0
        [    1.603908] Modules linked in:
        [    1.603926] CPU: 2 UID: 0 PID: 44 Comm: kworker/u16:3 Not tainted 6.18.0-rc4 #0 NONE
        [    1.603938] Hardware name: Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C7 (DT)
        [    1.603945] Workqueue: async async_run_entry_fn
        [    1.603958] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
        [    1.603967] pc : _regulator_put+0x8c/0xa0
        [    1.603976] lr : _regulator_put+0x7c/0xa0
        ...
        [    1.604140] Call trace:
        [    1.604145]  _regulator_put+0x8c/0xa0 (P)
        [    1.604156]  regulator_register+0x2ec/0xbf0
        [    1.604166]  devm_regulator_register+0x60/0xb0
        [    1.604178]  rpm_reg_probe+0x120/0x208
        [    1.604187]  platform_probe+0x64/0xa8
        ...
    
    In order to avoid this, change the set_machine_constraints() function to
    disable the supply if enabling the main regulator fails.
    
    Fixes: 05f224ca6693 ("regulator: core: Clean enabling always-on regulators + their supplies")
    Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
    Link: https://patch.msgid.link/20251107-regulator-disable-supply-v1-1-c95f0536f1b5@gmail.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

regulator: core: Protect regulator_supply_alias_list with regulator_list_mutex [+ + +]
Author: sparkhuang <huangshaobo3@xiaomi.com>
Date:   Thu Nov 27 10:57:16 2025 +0800

    regulator: core: Protect regulator_supply_alias_list with regulator_list_mutex
    
    [ Upstream commit 0cc15a10c3b4ab14cd71b779fd5c9ca0cb2bc30d ]
    
    regulator_supply_alias_list was accessed without any locking in
    regulator_supply_alias(), regulator_register_supply_alias(), and
    regulator_unregister_supply_alias(). Concurrent registration,
    unregistration and lookups can race, leading to:
    
    1 use-after-free if an alias entry is removed while being read,
    2 duplicate entries when two threads register the same alias,
    3 inconsistent alias mappings observed by consumers.
    
    Protect all traversals, insertions and deletions on
    regulator_supply_alias_list with the existing regulator_list_mutex.
    
    Fixes: a06ccd9c3785f ("regulator: core: Add ability to create a lookup alias for supply")
    Signed-off-by: sparkhuang <huangshaobo3@xiaomi.com>
    Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
    Link: https://patch.msgid.link/20251127025716.5440-1-huangshaobo3@xiaomi.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

regulator: fixed: Rely on the core freeing the enable GPIO [+ + +]
Author: Mark Brown <broonie@kernel.org>
Date:   Thu Dec 4 19:39:34 2025 +0000

    regulator: fixed: Rely on the core freeing the enable GPIO
    
    [ Upstream commit 79a45ddcdbba330f5139c7c7ff7042d69cf147b2 ]
    
    In order to simplify ownership rules for enable GPIOs supplied by drivers
    regulator_register() always takes ownership of them, even if it ends up
    failing for some other reason. We therefore should not free the GPIO if
    registration fails but just let the core worry about things.
    
    Fixes: 636f4618b1cd (regulator: fixed: fix GPIO descriptor leak on register failure)
    Reported-by: Diederik de Haas <diederik@cknow-tech.com>
    Closes: https://lore.kernel.org/r/DEPEYUF5BRGY.UKFBWRRE8HNP@cknow-tech.com
    Tested-by: Diederik de Haas <diederik@cknow-tech.com>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Link: https://patch.msgid.link/20251204-regulator-fixed-fix-gpiod-leak-v1-1-48efea5b82c2@kernel.org
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
Reinstate "resource: avoid unnecessary lookups in find_next_iomem_res()" [+ + +]
Author: Ilias Stamatis <ilstam@amazon.com>
Date:   Mon Nov 24 16:53:49 2025 +0000

    Reinstate "resource: avoid unnecessary lookups in find_next_iomem_res()"
    
    [ Upstream commit 6fb3acdebf65a72df0a95f9fd2c901ff2bc9a3a2 ]
    
    Commit 97523a4edb7b ("kernel/resource: remove first_lvl / siblings_only
    logic") removed an optimization introduced by commit 756398750e11
    ("resource: avoid unnecessary lookups in find_next_iomem_res()").  That
    was not called out in the message of the first commit explicitly so it's
    not entirely clear whether removing the optimization happened
    inadvertently or not.
    
    As the original commit message of the optimization explains there is no
    point considering the children of a subtree in find_next_iomem_res() if
    the top level range does not match.
    
    Reinstating the optimization results in performance improvements in
    systems where /proc/iomem is ~5k lines long.  Calling mmap() on /dev/mem
    in such platforms takes 700-1500μs without the optimisation and 10-50μs
    with the optimisation.
    
    Note that even though commit 97523a4edb7b removed the 'sibling_only'
    parameter from next_resource(), newer kernels have basically reinstated it
    under the name 'skip_children'.
    
    Link: https://lore.kernel.org/all/20251124165349.3377826-1-ilstam@amazon.com/T/#u
    Fixes: 97523a4edb7b ("kernel/resource: remove first_lvl / siblings_only logic")
    Signed-off-by: Ilias Stamatis <ilstam@amazon.com>
    Acked-by: David Hildenbrand (Red Hat) <david@kernel.org>
    Cc: Andriy Shevchenko <andriy.shevchenko@linux.intel.com>
    Cc: Baoquan He <bhe@redhat.com>
    Cc: "Huang, Ying" <huang.ying.caritas@gmail.com>
    Cc: Nadav Amit <nadav.amit@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
remoteproc: qcom_q6v5_wcss: fix parsing of qcom,halt-regs [+ + +]
Author: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Date:   Fri Nov 28 19:32:05 2025 -0600

    remoteproc: qcom_q6v5_wcss: fix parsing of qcom,halt-regs
    
    [ Upstream commit 7e81fa8d809ed1e67ae9ecd52d20a20c2c65d877 ]
    
    The "qcom,halt-regs" consists of a phandle reference followed by the
    three offsets within syscon for halt registers. Thus, we need to
    request 4 integers from of_property_read_variable_u32_array(), with
    the halt_reg ofsets at indexes 1, 2, and 3. Offset 0 is the phandle.
    
    With MAX_HALT_REG at 3, of_property_read_variable_u32_array() returns
    -EOVERFLOW, causing .probe() to fail.
    
    Increase MAX_HALT_REG to 4, and update the indexes accordingly.
    
    Fixes: 0af65b9b915e ("remoteproc: qcom: wcss: Add non pas wcss Q6 support for QCS404")
    Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
    Link: https://lore.kernel.org/r/20251129013207.3981517-1-mr.nuke.me@gmail.com
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
resource: introduce is_type_match() helper and use it [+ + +]
Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date:   Wed Sep 25 18:43:35 2024 +0300

    resource: introduce is_type_match() helper and use it
    
    [ Upstream commit ba1eccc114ffc62c4495a5e15659190fa2c42308 ]
    
    There are already a couple of places where we may replace a few lines of
    code by calling a helper, which increases readability while deduplicating
    the code.
    
    Introduce is_type_match() helper and use it.
    
    Link: https://lkml.kernel.org/r/20240925154355.1170859-3-andriy.shevchenko@linux.intel.com
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Stable-dep-of: 6fb3acdebf65 ("Reinstate "resource: avoid unnecessary lookups in find_next_iomem_res()"")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

resource: replace open coded resource_intersection() [+ + +]
Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date:   Wed Sep 25 18:43:34 2024 +0300

    resource: replace open coded resource_intersection()
    
    [ Upstream commit 5c1edea773c98707fbb23d1df168bcff52f61e4b ]
    
    Patch series "resource: A couple of cleanups".
    
    A couple of ad-hoc cleanups since there was a recent development of
    the code in question. No functional changes intended.
    
    This patch (of 2):
    
    __region_intersects() uses open coded resource_intersection().  Replace it
    with existing API which also make more clear what we are checking.
    
    Link: https://lkml.kernel.org/r/20240925154355.1170859-1-andriy.shevchenko@linux.intel.com
    Link: https://lkml.kernel.org/r/20240925154355.1170859-2-andriy.shevchenko@linux.intel.com
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Stable-dep-of: 6fb3acdebf65 ("Reinstate "resource: avoid unnecessary lookups in find_next_iomem_res()"")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
Revert "mtd: rawnand: marvell: fix layouts" [+ + +]
Author: Aryan Srivastava <aryan.srivastava@alliedtelesis.co.nz>
Date:   Fri Oct 24 13:19:41 2025 +1300

    Revert "mtd: rawnand: marvell: fix layouts"
    
    [ Upstream commit fbd72cb463fdea3a0c900dd5d6e813cdebc3a73c ]
    
    This reverts commit e6a30d0c48a1e8a68f1cc413bee65302ab03ddfb.
    
    This change resulted in the 8bit ECC layouts having the incorrect amount
    of read/write chunks, the last spare bytes chunk would always be missed.
    
    Fixes: e6a30d0c48a1 ("mtd: rawnand: marvell: fix layouts")
    Signed-off-by: Aryan Srivastava <aryan.srivastava@alliedtelesis.co.nz>
    Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
Revert "nfs: clear SB_RDONLY before getting superblock" [+ + +]
Author: Trond Myklebust <trond.myklebust@hammerspace.com>
Date:   Fri Nov 28 13:39:38 2025 -0500

    Revert "nfs: clear SB_RDONLY before getting superblock"
    
    [ Upstream commit d216b698d44e33417ad4cc796cb04ccddbb8c0ee ]
    
    This reverts commit 8cd9b785943c57a136536250da80ba1eb6f8eb18.
    
    Silently ignoring the "ro" and "rw" mount options causes user confusion,
    and regressions.
    
    Reported-by: Alkis Georgopoulos<alkisg@gmail.com>
    Cc: Li Lingfeng <lilingfeng3@huawei.com>
    Fixes: 8cd9b785943c ("nfs: clear SB_RDONLY before getting superblock")
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

Revert "nfs: ignore SB_RDONLY when mounting nfs" [+ + +]
Author: Trond Myklebust <trond.myklebust@hammerspace.com>
Date:   Fri Nov 28 13:39:45 2025 -0500

    Revert "nfs: ignore SB_RDONLY when mounting nfs"
    
    [ Upstream commit d4a26d34f1946142f9d32e540490e4926ae9a46b ]
    
    This reverts commit 52cb7f8f177878b4f22397b9c4d2c8f743766be3.
    
    Silently ignoring the "ro" and "rw" mount options causes user confusion,
    and regressions.
    
    Reported-by: Alkis Georgopoulos<alkisg@gmail.com>
    Cc: Li Lingfeng <lilingfeng3@huawei.com>
    Fixes: 52cb7f8f1778 ("nfs: ignore SB_RDONLY when mounting nfs")
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

Revert "nfs: ignore SB_RDONLY when remounting nfs" [+ + +]
Author: Trond Myklebust <trond.myklebust@hammerspace.com>
Date:   Fri Nov 28 13:39:07 2025 -0500

    Revert "nfs: ignore SB_RDONLY when remounting nfs"
    
    [ Upstream commit 400fa37afbb11a601c204b72af0f0e5bc2db695c ]
    
    This reverts commit 80c4de6ab44c14e910117a02f2f8241ffc6ec54a.
    
    Silently ignoring the "ro" and "rw" mount options causes user confusion,
    and regressions.
    
    Reported-by: Alkis Georgopoulos<alkisg@gmail.com>
    Cc: Li Lingfeng <lilingfeng3@huawei.com>
    Fixes: 80c4de6ab44c ("nfs: ignore SB_RDONLY when remounting nfs")
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
RISC-V: KVM: Fix guest page fault within HLV* instructions [+ + +]
Author: Fangyu Yu <fangyu.yu@linux.alibaba.com>
Date:   Fri Nov 21 21:35:43 2025 +0800

    RISC-V: KVM: Fix guest page fault within HLV* instructions
    
    [ Upstream commit 974555d6e417974e63444266e495a06d06c23af5 ]
    
    When executing HLV* instructions at the HS mode, a guest page fault
    may occur when a g-stage page table migration between triggering the
    virtual instruction exception and executing the HLV* instruction.
    
    This may be a corner case, and one simpler way to handle this is to
    re-execute the instruction where the virtual  instruction exception
    occurred, and the guest page fault will be automatically handled.
    
    Fixes: b91f0e4cb8a3 ("RISC-V: KVM: Factor-out instruction emulation into separate sources")
    Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com>
    Reviewed-by: Anup Patel <anup@brainfault.org>
    Link: https://lore.kernel.org/r/20251121133543.46822-1-fangyu.yu@linux.alibaba.com
    Signed-off-by: Anup Patel <anup@brainfault.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
rtc: gamecube: Check the return value of ioremap() [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Wed Nov 26 16:06:25 2025 +0800

    rtc: gamecube: Check the return value of ioremap()
    
    [ Upstream commit d1220e47e4bd2be8b84bc158f4dea44f2f88b226 ]
    
    The function ioremap() in gamecube_rtc_read_offset_from_sram() can fail
    and return NULL, which is dereferenced without checking, leading to a
    NULL pointer dereference.
    
    Add a check for the return value of ioremap() and return -ENOMEM on
    failure.
    
    Fixes: 86559400b3ef ("rtc: gamecube: Add a RTC driver for the GameCube, Wii and Wii U")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Reviewed-by: Link Mauve <kernel@linkmauve.fr>
    Link: https://patch.msgid.link/20251126080625.1752-1-vulab@iscas.ac.cn
    Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
s390/ap: Don't leak debug feature files if AP instructions are not available [+ + +]
Author: Heiko Carstens <hca@linux.ibm.com>
Date:   Fri Oct 24 12:24:33 2025 +0200

    s390/ap: Don't leak debug feature files if AP instructions are not available
    
    [ Upstream commit 020d5dc57874e58d3ebae398f3fe258f029e3d06 ]
    
    If no AP instructions are available the AP bus module leaks registered
    debug feature files. Change function call order to fix this.
    
    Fixes: cccd85bfb7bf ("s390/zcrypt: Rework debug feature invocations.")
    Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
    Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
s390/smp: Fix fallback CPU detection [+ + +]
Author: Heiko Carstens <hca@linux.ibm.com>
Date:   Mon Oct 20 16:17:54 2025 +0200

    s390/smp: Fix fallback CPU detection
    
    [ Upstream commit 07a75d08cfa1b883a6e1256666e5f0617ee99231 ]
    
    In case SCLP CPU detection does not work a fallback mechanism using SIGP is
    in place. Since a cleanup this does not work correctly anymore: new CPUs
    are only considered if their type matches the boot CPU.
    
    Before the cleanup the information if a CPU type should be considered was
    also part of a structure generated by the fallback mechanism and indicated
    that a CPU type should not be considered when adding CPUs.
    
    Since the rework a global SCLP state is used instead. If the global SCLP
    state indicates that the CPU type should be considered and the fallback
    mechanism is used, there may be a mismatch with CPU types if CPUs are
    added. This can lead to a system with only a single CPU even tough there
    are many more CPUs.
    
    Address this by simply copying the boot cpu type into the generated data
    structure from the fallback mechanism.
    
    Reported-by: Alexander Egorenkov <egorenar@linux.ibm.com>
    Fixes: d08d94306e90 ("s390/smp: cleanup core vs. cpu in the SCLP interface")
    Reviewed-by: Mete Durlu <meted@linux.ibm.com>
    Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
sched/fair: Fix unfairness caused by stalled tg_load_avg_contrib when the last task migrates out [+ + +]
Author: xupengbo <xupengbo@oppo.com>
Date:   Wed Aug 27 10:22:07 2025 +0800

    sched/fair: Fix unfairness caused by stalled tg_load_avg_contrib when the last task migrates out
    
    [ Upstream commit ca125231dd29fc0678dd3622e9cdea80a51dffe4 ]
    
    When a task is migrated out, there is a probability that the tg->load_avg
    value will become abnormal. The reason is as follows:
    
    1. Due to the 1ms update period limitation in update_tg_load_avg(), there
       is a possibility that the reduced load_avg is not updated to tg->load_avg
       when a task migrates out.
    
    2. Even though __update_blocked_fair() traverses the leaf_cfs_rq_list and
       calls update_tg_load_avg() for cfs_rqs that are not fully decayed, the key
       function cfs_rq_is_decayed() does not check whether
       cfs->tg_load_avg_contrib is null. Consequently, in some cases,
       __update_blocked_fair() removes cfs_rqs whose avg.load_avg has not been
       updated to tg->load_avg.
    
    Add a check of cfs_rq->tg_load_avg_contrib in cfs_rq_is_decayed(),
    which fixes the case (2.) mentioned above.
    
    Fixes: 1528c661c24b ("sched/fair: Ratelimit update to tg->load_avg")
    Signed-off-by: xupengbo <xupengbo@oppo.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Reviewed-by: Aaron Lu <ziqianlu@bytedance.com>
    Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
    Tested-by: Aaron Lu <ziqianlu@bytedance.com>
    Link: https://patch.msgid.link/20250827022208.14487-1-xupengbo@oppo.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

sched/fair: Forfeit vruntime on yield [+ + +]
Author: Fernand Sieber <sieberf@amazon.com>
Date:   Thu Sep 18 17:05:28 2025 +0200

    sched/fair: Forfeit vruntime on yield
    
    [ Upstream commit 79104becf42baeeb4a3f2b106f954b9fc7c10a3c ]
    
    If a task yields, the scheduler may decide to pick it again. The task in
    turn may decide to yield immediately or shortly after, leading to a tight
    loop of yields.
    
    If there's another runnable task as this point, the deadline will be
    increased by the slice at each loop. This can cause the deadline to runaway
    pretty quickly, and subsequent elevated run delays later on as the task
    doesn't get picked again. The reason the scheduler can pick the same task
    again and again despite its deadline increasing is because it may be the
    only eligible task at that point.
    
    Fix this by making the task forfeiting its remaining vruntime and pushing
    the deadline one slice ahead. This implements yield behavior more
    authentically.
    
    We limit the forfeiting to eligible tasks. This is because core scheduling
    prefers running ineligible tasks rather than force idling. As such, without
    the condition, we can end up on a yield loop which makes the vruntime
    increase rapidly, leading to anomalous run delays later down the line.
    
    Fixes: 147f3efaa24182 ("sched/fair: Implement an EEVDF-like scheduling  policy")
    Signed-off-by: Fernand Sieber <sieberf@amazon.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://lore.kernel.org/r/20250401123622.584018-1-sieberf@amazon.com
    Link: https://lore.kernel.org/r/20250911095113.203439-1-sieberf@amazon.com
    Link: https://lore.kernel.org/r/20250916140228.452231-1-sieberf@amazon.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
scsi: imm: Fix use-after-free bug caused by unfinished delayed work [+ + +]
Author: Duoming Zhou <duoming@zju.edu.cn>
Date:   Tue Oct 28 18:01:49 2025 +0800

    scsi: imm: Fix use-after-free bug caused by unfinished delayed work
    
    [ Upstream commit ab58153ec64fa3fc9aea09ca09dc9322e0b54a7c ]
    
    The delayed work item 'imm_tq' is initialized in imm_attach() and
    scheduled via imm_queuecommand() for processing SCSI commands.  When the
    IMM parallel port SCSI host adapter is detached through imm_detach(),
    the imm_struct device instance is deallocated.
    
    However, the delayed work might still be pending or executing
    when imm_detach() is called, leading to use-after-free bugs
    when the work function imm_interrupt() accesses the already
    freed imm_struct memory.
    
    The race condition can occur as follows:
    
    CPU 0(detach thread)   | CPU 1
                           | imm_queuecommand()
                           |   imm_queuecommand_lck()
    imm_detach()           |     schedule_delayed_work()
      kfree(dev) //FREE    | imm_interrupt()
                           |   dev = container_of(...) //USE
                               dev-> //USE
    
    Add disable_delayed_work_sync() in imm_detach() to guarantee proper
    cancellation of the delayed work item before imm_struct is deallocated.
    
    Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
    Signed-off-by: Duoming Zhou <duoming@zju.edu.cn>
    Link: https://patch.msgid.link/20251028100149.40721-1-duoming@zju.edu.cn
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

scsi: qla2xxx: Fix improper freeing of purex item [+ + +]
Author: Zilin Guan <zilin@seu.edu.cn>
Date:   Thu Nov 13 15:12:46 2025 +0000

    scsi: qla2xxx: Fix improper freeing of purex item
    
    [ Upstream commit 78b1a242fe612a755f2158fd206ee6bb577d18ca ]
    
    In qla2xxx_process_purls_iocb(), an item is allocated via
    qla27xx_copy_multiple_pkt(), which internally calls
    qla24xx_alloc_purex_item().
    
    The qla24xx_alloc_purex_item() function may return a pre-allocated item
    from a per-adapter pool for small allocations, instead of dynamically
    allocating memory with kzalloc().
    
    An error handling path in qla2xxx_process_purls_iocb() incorrectly uses
    kfree() to release the item. If the item was from the pre-allocated
    pool, calling kfree() on it is a bug that can lead to memory corruption.
    
    Fix this by using the correct deallocation function,
    qla24xx_free_purex_item(), which properly handles both dynamically
    allocated and pre-allocated items.
    
    Fixes: 875386b98857 ("scsi: qla2xxx: Add Unsolicited LS Request and Response Support for NVMe")
    Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
    Reviewed-by: Himanshu Madhani <hmadhani2024@gmail.com>
    Link: https://patch.msgid.link/20251113151246.762510-1-zilin@seu.edu.cn
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

scsi: sim710: Fix resource leak by adding missing ioport_unmap() calls [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Wed Oct 29 11:25:55 2025 +0800

    scsi: sim710: Fix resource leak by adding missing ioport_unmap() calls
    
    [ Upstream commit acd194d9b5bac419e04968ffa44351afabb50bac ]
    
    The driver calls ioport_map() to map I/O ports in sim710_probe_common()
    but never calls ioport_unmap() to release the mapping. This causes
    resource leaks in both the error path when request_irq() fails and in
    the normal device removal path via sim710_device_remove().
    
    Add ioport_unmap() calls in the out_release error path and in
    sim710_device_remove().
    
    Fixes: 56fece20086e ("[PATCH] finally fix 53c700 to use the generic iomem infrastructure")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Link: https://patch.msgid.link/20251029032555.1476-1-vulab@iscas.ac.cn
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

scsi: smartpqi: Fix device resources accessed after device removal [+ + +]
Author: Mike McGowen <mike.mcgowen@microchip.com>
Date:   Thu Nov 6 10:38:20 2025 -0600

    scsi: smartpqi: Fix device resources accessed after device removal
    
    [ Upstream commit b518e86d1a70a88f6592a7c396cf1b93493d1aab ]
    
    Correct possible race conditions during device removal.
    
    Previously, a scheduled work item to reset a LUN could still execute
    after the device was removed, leading to use-after-free and other
    resource access issues.
    
    This race condition occurs because the abort handler may schedule a LUN
    reset concurrently with device removal via sdev_destroy(), leading to
    use-after-free and improper access to freed resources.
    
      - Check in the device reset handler if the device is still present in
        the controller's SCSI device list before running; if not, the reset
        is skipped.
    
      - Cancel any pending TMF work that has not started in sdev_destroy().
    
      - Ensure device freeing in sdev_destroy() is done while holding the
        LUN reset mutex to avoid races with ongoing resets.
    
    Fixes: 2d80f4054f7f ("scsi: smartpqi: Update deleting a LUN via sysfs")
    Reviewed-by: Scott Teel <scott.teel@microchip.com>
    Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
    Signed-off-by: Mike McGowen <mike.mcgowen@microchip.com>
    Signed-off-by: Don Brace <don.brace@microchip.com>
    Link: https://patch.msgid.link/20251106163823.786828-3-don.brace@microchip.com
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

scsi: stex: Fix reboot_notifier leak in probe error path [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Tue Nov 4 17:48:47 2025 +0800

    scsi: stex: Fix reboot_notifier leak in probe error path
    
    [ Upstream commit 20da637eb545b04753e20c675cfe97b04c7b600b ]
    
    In stex_probe(), register_reboot_notifier() is called at the beginning,
    but if any subsequent initialization step fails, the function returns
    without unregistering the notifier, resulting in a resource leak.
    
    Add unregister_reboot_notifier() in the out_disable error path to ensure
    proper cleanup on all failure paths.
    
    Fixes: 61b745fa63db ("scsi: stex: Add S6 support")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Link: https://patch.msgid.link/20251104094847.270-1-vulab@iscas.ac.cn
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

scsi: target: Do not write NUL characters into ASCII configfs output [+ + +]
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Oct 27 11:46:38 2025 -0700

    scsi: target: Do not write NUL characters into ASCII configfs output
    
    [ Upstream commit c03b55f235e283cae49c88b9602fd11096b92eba ]
    
    NUL characters are not allowed in ASCII configfs output. Hence this
    patch.
    
    Fixes: c66ac9db8d4a ("[SCSI] target: Add LIO target core v4.0.0-rc6")
    Signed-off-by: Bart Van Assche <bvanassche@acm.org>
    Link: https://patch.msgid.link/20251027184639.3501254-2-bvanassche@acm.org
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

scsi: ufs: core: fix incorrect buffer duplication in ufshcd_read_string_desc() [+ + +]
Author: Bean Huo <beanhuo@micron.com>
Date:   Sat Nov 8 00:05:17 2025 +0100

    scsi: ufs: core: fix incorrect buffer duplication in ufshcd_read_string_desc()
    
    [ Upstream commit d794b499f948801f54d67ddbc34a6eac5a6d150a ]
    
    The function ufshcd_read_string_desc() was duplicating memory starting
    from the beginning of struct uc_string_id, which included the length and
    type fields. As a result, the allocated buffer contained unwanted
    metadata in addition to the string itself.
    
    The correct behavior is to duplicate only the Unicode character array in
    the structure. Update the code so that only the actual string content is
    copied into the new buffer.
    
    Fixes: 5f57704dbcfe ("scsi: ufs: Use kmemdup in ufshcd_read_string_desc()")
    Reviewed-by: Avri Altman <avri.altman@sandisk.com>
    Reviewed-by: Bart Van Assche <bvanassche@acm.org>
    Signed-off-by: Bean Huo <beanhuo@micron.com>
    Link: https://patch.msgid.link/20251107230518.4060231-3-beanhuo@iokpp.de
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
sctp: Defer SCTP_DBG_OBJCNT_DEC() to sctp_destroy_sock(). [+ + +]
Author: Kuniyuki Iwashima <kuniyu@google.com>
Date:   Thu Oct 23 23:16:50 2025 +0000

    sctp: Defer SCTP_DBG_OBJCNT_DEC() to sctp_destroy_sock().
    
    [ Upstream commit 622e8838a29845316668ec2e7648428878df7f9a ]
    
    SCTP_DBG_OBJCNT_INC() is called only when sctp_init_sock()
    returns 0 after successfully allocating sctp_sk(sk)->ep.
    
    OTOH, SCTP_DBG_OBJCNT_DEC() is called in sctp_close().
    
    The code seems to expect that the socket is always exposed
    to userspace once SCTP_DBG_OBJCNT_INC() is incremented, but
    there is a path where the assumption is not true.
    
    In sctp_accept(), sctp_sock_migrate() could fail after
    sctp_init_sock().
    
    Then, sk_common_release() does not call inet_release() nor
    sctp_close().  Instead, it calls sk->sk_prot->destroy().
    
    Let's move SCTP_DBG_OBJCNT_DEC() from sctp_close() to
    sctp_destroy_sock().
    
    Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
    Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
    Acked-by: Xin Long <lucien.xin@gmail.com>
    Link: https://patch.msgid.link/20251023231751.4168390-2-kuniyu@google.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
selftests/bpf: Fix failure paths in send_signal test [+ + +]
Author: Alexei Starovoitov <ast@kernel.org>
Date:   Thu Nov 13 09:11:53 2025 -0800

    selftests/bpf: Fix failure paths in send_signal test
    
    [ Upstream commit c13339039891dbdfa6c1972f0483bd07f610b776 ]
    
    When test_send_signal_kern__open_and_load() fails parent closes the
    pipe which cases ASSERT_EQ(read(pipe_p2c...)) to fail, but child
    continues and enters infinite loop, while parent is stuck in wait(NULL).
    Other error paths have similar issue, so kill the child before waiting on it.
    
    The bug was discovered while compiling all of selftests with -O1 instead of -O2
    which caused progs/test_send_signal_kern.c to fail to load.
    
    Fixes: ab8b7f0cb358 ("tools/bpf: Add self tests for bpf_send_signal_thread()")
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Acked-by: Eduard Zingerman <eddyz87@gmail.com>
    Link: https://lore.kernel.org/bpf/20251113171153.2583-1-alexei.starovoitov@gmail.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

selftests/bpf: Improve reliability of test_perf_branches_no_hw() [+ + +]
Author: Matt Bobrowski <mattbobrowski@google.com>
Date:   Wed Nov 19 14:35:40 2025 +0000

    selftests/bpf: Improve reliability of test_perf_branches_no_hw()
    
    [ Upstream commit ae24fc8a16b0481ea8c5acbc66453c49ec0431c4 ]
    
    Currently, test_perf_branches_no_hw() relies on the busy loop within
    test_perf_branches_common() being slow enough to allow at least one
    perf event sample tick to occur before starting to tear down the
    backing perf event BPF program. With a relatively small fixed
    iteration count of 1,000,000, this is not guaranteed on modern fast
    CPUs, resulting in the test run to subsequently fail with the
    following:
    
    bpf_testmod.ko is already unloaded.
    Loading bpf_testmod.ko...
    Successfully loaded bpf_testmod.ko.
    test_perf_branches_common:PASS:test_perf_branches_load 0 nsec
    test_perf_branches_common:PASS:attach_perf_event 0 nsec
    test_perf_branches_common:PASS:set_affinity 0 nsec
    check_good_sample:PASS:output not valid 0 nsec
    check_good_sample:PASS:read_branches_size 0 nsec
    check_good_sample:PASS:read_branches_stack 0 nsec
    check_good_sample:PASS:read_branches_stack 0 nsec
    check_good_sample:PASS:read_branches_global 0 nsec
    check_good_sample:PASS:read_branches_global 0 nsec
    check_good_sample:PASS:read_branches_size 0 nsec
    test_perf_branches_no_hw:PASS:perf_event_open 0 nsec
    test_perf_branches_common:PASS:test_perf_branches_load 0 nsec
    test_perf_branches_common:PASS:attach_perf_event 0 nsec
    test_perf_branches_common:PASS:set_affinity 0 nsec
    check_bad_sample:FAIL:output not valid no valid sample from prog
    Summary: 0/1 PASSED, 0 SKIPPED, 1 FAILED
    Successfully unloaded bpf_testmod.ko.
    
    On a modern CPU (i.e. one with a 3.5 GHz clock rate), executing 1
    million increments of a volatile integer can take significantly less
    than 1 millisecond. If the spin loop and detachment of the perf event
    BPF program elapses before the first 1 ms sampling interval elapses,
    the perf event will never end up firing. Fix this by bumping the loop
    iteration counter a little within test_perf_branches_common(), along
    with ensuring adding another loop termination condition which is
    directly influenced by the backing perf event BPF program
    executing. Notably, a concious decision was made to not adjust the
    sample_freq value as that is just not a reliable way to go about
    fixing the problem. It effectively still leaves the race window open.
    
    Fixes: 67306f84ca78c ("selftests/bpf: Add bpf_read_branch_records() selftest")
    Signed-off-by: Matt Bobrowski <mattbobrowski@google.com>
    Reviewed-by: Jiri Olsa <jolsa@kernel.org>
    Link: https://lore.kernel.org/r/20251119143540.2911424-1-mattbobrowski@google.com
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

selftests/bpf: skip test_perf_branches_hw() on unsupported platforms [+ + +]
Author: Matt Bobrowski <mattbobrowski@google.com>
Date:   Thu Nov 20 14:20:59 2025 +0000

    selftests/bpf: skip test_perf_branches_hw() on unsupported platforms
    
    [ Upstream commit 27746aaf1b20172f0859546c4a3e82eca459f680 ]
    
    Gracefully skip the test_perf_branches_hw subtest on platforms that
    do not support LBR or require specialized perf event attributes
    to enable branch sampling.
    
    For example, AMD's Milan (Zen 3) supports BRS rather than traditional
    LBR. This requires specific configurations (attr.type = PERF_TYPE_RAW,
    attr.config = RETIRED_TAKEN_BRANCH_INSTRUCTIONS) that differ from the
    generic setup used within this test. Notably, it also probably doesn't
    hold much value to special case perf event configurations for selected
    micro architectures.
    
    Fixes: 67306f84ca78c ("selftests/bpf: Add bpf_read_branch_records() selftest")
    Signed-off-by: Matt Bobrowski <mattbobrowski@google.com>
    Acked-by: Song Liu <song@kernel.org>
    Link: https://lore.kernel.org/r/20251120142059.2836181-1-mattbobrowski@google.com
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
selftests: bonding: add delay before each xvlan_over_bond connectivity check [+ + +]
Author: Hangbin Liu <liuhangbin@gmail.com>
Date:   Thu Nov 27 14:33:10 2025 +0000

    selftests: bonding: add delay before each xvlan_over_bond connectivity check
    
    [ Upstream commit 2c28ee720ad14f58eb88a97ec3efe7c5c315ea5d ]
    
    Jakub reported increased flakiness in bond_macvlan_ipvlan.sh on regular
    kernel, while the tests consistently pass on a debug kernel. This suggests
    a timing-sensitive issue.
    
    To mitigate this, introduce a short sleep before each xvlan_over_bond
    connectivity check. The delay helps ensure neighbor and route cache
    have fully converged before verifying connectivity.
    
    The sleep interval is kept minimal since check_connection() is invoked
    nearly 100 times during the test.
    
    Fixes: 246af950b940 ("selftests: bonding: add macvlan over bond testing")
    Reported-by: Jakub Kicinski <kuba@kernel.org>
    Closes: https://lore.kernel.org/netdev/20251114082014.750edfad@kernel.org
    Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
    Link: https://patch.msgid.link/20251127143310.47740-1-liuhangbin@gmail.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

selftests: bonding: add ipvlan over bond testing [+ + +]
Author: Etienne Champetier <champetier.etienne@gmail.com>
Date:   Wed Jan 8 22:28:19 2025 -0500

    selftests: bonding: add ipvlan over bond testing
    
    [ Upstream commit 08ac69b24507ab06871c18adc421c9d4f1008c61 ]
    
    This rework bond_macvlan.sh into bond_macvlan_ipvlan.sh
    We only test bridge mode for macvlan and l2 mode
    
    ]# ./bond_macvlan_ipvlan.sh
    TEST: active-backup/macvlan_bridge: IPv4: client->server            [ OK ]
    ...
    TEST: active-backup/ipvlan_l2: IPv4: client->server                 [ OK ]
    ...
    TEST: balance-tlb/macvlan_bridge: IPv4: client->server              [ OK ]
    ...
    TEST: balance-tlb/ipvlan_l2: IPv4: client->server                   [ OK ]
    ...
    TEST: balance-alb/macvlan_bridge: IPv4: client->server              [ OK ]
    ...
    TEST: balance-alb/ipvlan_l2: IPv4: client->server                   [ OK ]
    ...
    
    Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
    Link: https://patch.msgid.link/20250109032819.326528-3-champetier.etienne@gmail.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Stable-dep-of: 2c28ee720ad1 ("selftests: bonding: add delay before each xvlan_over_bond connectivity check")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
smack: always "instantiate" inode in smack_inode_init_security() [+ + +]
Author: Konstantin Andreev <andreev@swemel.ru>
Date:   Mon Jun 16 04:07:31 2025 +0300

    smack: always "instantiate" inode in smack_inode_init_security()
    
    [ Upstream commit 69204f6cdb90f56b7ca27966d1080841108fc5de ]
    
    If memory allocation for the SMACK64TRANSMUTE
    xattr value fails in smack_inode_init_security(),
    the SMK_INODE_INSTANT flag is not set in
    (struct inode_smack *issp)->smk_flags,
    leaving the inode as not "instantiated".
    
    It does not matter if fs frees the inode
    after failed smack_inode_init_security() call,
    but there is no guarantee for this.
    
    To be safe, mark the inode as "instantiated",
    even if allocation of xattr values fails.
    
    Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
    Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
    Stable-dep-of: 78fc6a94be25 ("smack: fix bug: invalid label of unix socket file")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

smack: deduplicate "does access rule request transmutation" [+ + +]
Author: Konstantin Andreev <andreev@swemel.ru>
Date:   Mon Jun 16 04:07:28 2025 +0300

    smack: deduplicate "does access rule request transmutation"
    
    [ Upstream commit 635a01da8385fc00a144ec24684100bd1aa9db11 ]
    
    Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
    Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
    Stable-dep-of: 78fc6a94be25 ("smack: fix bug: invalid label of unix socket file")
    Signed-off-by: Sasha Levin <sashal@kernel.org>
smack: deduplicate xattr setting in smack_inode_init_security() [+ + +]
Author: Konstantin Andreev <andreev@swemel.ru>
Date:   Mon Jun 16 04:07:30 2025 +0300

    smack: deduplicate xattr setting in smack_inode_init_security()
    
    [ Upstream commit 8e5d9f916a9678e2dcbed2289b87efd453e4e052 ]
    
    Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
    Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
    Stable-dep-of: 78fc6a94be25 ("smack: fix bug: invalid label of unix socket file")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

smack: fix bug: invalid label of unix socket file [+ + +]
Author: Konstantin Andreev <andreev@swemel.ru>
Date:   Mon Jun 16 04:07:32 2025 +0300

    smack: fix bug: invalid label of unix socket file
    
    [ Upstream commit 78fc6a94be252b27bb73e4926eed70b5e302a8e0 ]
    
    According to [1], the label of a UNIX domain socket (UDS)
    file (i.e., the filesystem object representing the socket)
    is not supposed to participate in Smack security.
    
    To achieve this, [1] labels UDS files with "*"
    in smack_d_instantiate().
    
    Before [2], smack_d_instantiate() was responsible
    for initializing Smack security for all inodes,
    except ones under /proc
    
    [2] imposed the sole responsibility for initializing
    inode security for newly created filesystem objects
    on smack_inode_init_security().
    
    However, smack_inode_init_security() lacks some logic
    present in smack_d_instantiate().
    In particular, it does not label UDS files with "*".
    
    This patch adds the missing labeling of UDS files
    with "*" to smack_inode_init_security().
    
    Labeling UDS files with "*" in smack_d_instantiate()
    still works for stale UDS files that already exist on
    disk. Stale UDS files are useless, but I keep labeling
    them for consistency and maybe to make easier for user
    to delete them.
    
    Compared to [1], this version introduces the following
    improvements:
    
      * UDS file label is held inside inode only
        and not saved to xattrs.
    
      * relabeling UDS files (setxattr, removexattr, etc.)
        is blocked.
    
    [1] 2010-11-24 Casey Schaufler
    commit b4e0d5f0791b ("Smack: UDS revision")
    
    [2] 2023-11-16 roberto.sassu
    Fixes: e63d86b8b764 ("smack: Initialize the in-memory inode in smack_inode_init_security()")
    Link: https://lore.kernel.org/linux-security-module/20231116090125.187209-5-roberto.sassu@huaweicloud.com/
    
    Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
    Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

smack: fix bug: setting task label silently ignores input garbage [+ + +]
Author: Konstantin Andreev <andreev@swemel.ru>
Date:   Tue Jun 17 00:32:17 2025 +0300

    smack: fix bug: setting task label silently ignores input garbage
    
    [ Upstream commit 674e2b24791cbe8fd5dc8a0aed4cb4404fcd2028 ]
    
    This command:
        # echo foo/bar >/proc/$$/attr/smack/current
    
    gives the task a label 'foo' w/o indication
    that label does not match input.
    Setting the label with lsm_set_self_attr() syscall
    behaves identically.
    
    This occures because:
    
    1) smk_parse_smack() is used to convert input to a label
    2) smk_parse_smack() takes only that part from the
       beginning of the input that looks like a label.
    3) `/' is prohibited in labels, so only "foo" is taken.
    
    (2) is by design, because smk_parse_smack() is used
    for parsing strings which are more than just a label.
    
    Silent failure is not a good thing, and there are two
    indicators that this was not done intentionally:
    
        (size >= SMK_LONGLABEL) ~> invalid
    
    clause at the beginning of the do_setattr() and the
    "Returns the length of the smack label" claim
    in the do_setattr() description.
    
    So I fixed this by adding one tiny check:
    the taken label length == input length.
    
    Since input length is now strictly controlled,
    I changed the two ways of setting label
    
       smack_setselfattr(): lsm_set_self_attr() syscall
       smack_setprocattr(): > /proc/.../current
    
    to accommodate the divergence in
    what they understand by "input length":
    
      smack_setselfattr counts mandatory \0 into input length,
      smack_setprocattr does not.
    
      smack_setprocattr allows various trailers after label
    
    Related changes:
    
    * fixed description for smk_parse_smack
    
    * allow unprivileged tasks validate label syntax.
    
    * extract smk_parse_label_len() from smk_parse_smack()
      so parsing may be done w/o string allocation.
    
    * extract smk_import_valid_label() from smk_import_entry()
      to avoid repeated parsing.
    
    * smk_parse_smack(): scan null-terminated strings
      for no more than SMK_LONGLABEL(256) characters
    
    * smack_setselfattr(): require struct lsm_ctx . flags == 0
      to reserve them for future.
    
    Fixes: e114e473771c ("Smack: Simplified Mandatory Access Control Kernel")
    Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
    Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

smack: fix bug: SMACK64TRANSMUTE set on non-directory [+ + +]
Author: Konstantin Andreev <andreev@swemel.ru>
Date:   Mon Jun 16 04:07:29 2025 +0300

    smack: fix bug: SMACK64TRANSMUTE set on non-directory
    
    [ Upstream commit 195da3ff244deff119c3f5244b464b2236ea1725 ]
    
    When a new file system object is created
    and the conditions for label transmutation are met,
    the SMACK64TRANSMUTE extended attribute is set
    on the object regardless of its type:
    file, pipe, socket, symlink, or directory.
    
    However,
    SMACK64TRANSMUTE may only be set on directories.
    
    This bug is a combined effect of the commits [1] and [2]
    which both transfer functionality
    from smack_d_instantiate() to smack_inode_init_security(),
    but only in part.
    
    Commit [1] set blank  SMACK64TRANSMUTE on improper object types.
    Commit [2] set "TRUE" SMACK64TRANSMUTE on improper object types.
    
    [1] 2023-06-10,
    Fixes: baed456a6a2f ("smack: Set the SMACK64TRANSMUTE xattr in smack_inode_init_security()")
    Link: https://lore.kernel.org/linux-security-module/20230610075738.3273764-3-roberto.sassu@huaweicloud.com/
    
    [2] 2023-11-16,
    Fixes: e63d86b8b764 ("smack: Initialize the in-memory inode in smack_inode_init_security()")
    Link: https://lore.kernel.org/linux-security-module/20231116090125.187209-5-roberto.sassu@huaweicloud.com/
    
    Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
    Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
    Stable-dep-of: 78fc6a94be25 ("smack: fix bug: invalid label of unix socket file")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

smack: fix bug: unprivileged task can create labels [+ + +]
Author: Konstantin Andreev <andreev@swemel.ru>
Date:   Tue Jun 17 00:32:16 2025 +0300

    smack: fix bug: unprivileged task can create labels
    
    [ Upstream commit c147e13ea7fe9f118f8c9ba5e96cbd644b00d6b3 ]
    
    If an unprivileged task is allowed to relabel itself
    (/smack/relabel-self is not empty),
    it can freely create new labels by writing their
    names into own /proc/PID/attr/smack/current
    
    This occurs because do_setattr() imports
    the provided label in advance,
    before checking "relabel-self" list.
    
    This change ensures that the "relabel-self" list
    is checked before importing the label.
    
    Fixes: 38416e53936e ("Smack: limited capability for changing process label")
    Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
    Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
soc: qcom: gsbi: fix double disable caused by devm [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Tue Oct 21 00:02:15 2025 +0800

    soc: qcom: gsbi: fix double disable caused by devm
    
    [ Upstream commit 2286e18e3937c69cc103308a8c1d4898d8a7b04f ]
    
    In the commit referenced by the Fixes tag, devm_clk_get_enabled() was
    introduced to replace devm_clk_get() and clk_prepare_enable(). While
    the clk_disable_unprepare() call in the error path was correctly
    removed, the one in the remove function was overlooked, leading to a
    double disable issue.
    
    Remove the redundant clk_disable_unprepare() call from gsbi_remove()
    to fix this issue. Since all resources are now managed by devres
    and will be automatically released, the remove function serves no purpose
    and can be deleted entirely.
    
    Fixes: 489d7a8cc286 ("soc: qcom: use devm_clk_get_enabled() in gsbi_probe()")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Link: https://lore.kernel.org/stable/20251020160215.523-1-vulab%40iscas.ac.cn
    Link: https://lore.kernel.org/r/20251020160215.523-1-vulab@iscas.ac.cn
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

soc: qcom: smem: fix hwspinlock resource leak in probe error paths [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Wed Oct 29 10:27:33 2025 +0800

    soc: qcom: smem: fix hwspinlock resource leak in probe error paths
    
    [ Upstream commit dc5db35073a19f6d3c30bea367b551c1a784ef8f ]
    
    The hwspinlock acquired via hwspin_lock_request_specific() is not
    released on several error paths. This results in resource leakage
    when probe fails.
    
    Switch to devm_hwspin_lock_request_specific() to automatically
    handle cleanup on probe failure. Remove the manual hwspin_lock_free()
    in qcom_smem_remove() as devm handles it automatically.
    
    Fixes: 20bb6c9de1b7 ("soc: qcom: smem: map only partitions used by local HOST")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
    Link: https://lore.kernel.org/r/20251029022733.255-1-vulab@iscas.ac.cn
    Signed-off-by: Bjorn Andersson <andersson@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

soc: Switch back to struct platform_driver::remove() [+ + +]
Author: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Date:   Tue Oct 29 08:48:58 2024 +0100

    soc: Switch back to struct platform_driver::remove()
    
    [ Upstream commit 511c06e3903563dba4472430e1b586745b6ae238 ]
    
    After commit 0edb555a65d1 ("platform: Make platform_driver::remove()
    return void") .remove() is (again) the right callback to implement for
    platform drivers.
    
    Convert all platform drivers below drivers/soc to use .remove(), with
    the eventual goal to drop struct platform_driver::remove_new(). As
    .remove() and .remove_new() have the same prototypes, conversion is done
    by just changing the structure member name in the driver initializer.
    
    On the way do a few whitespace changes to make indention consistent.
    
    Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
    Acked-by: Heiko Stuebner <heiko@sntech.de>
    Acked-by: Herve Codina <herve.codina@bootlin.com> # for fsl/qe/{qmc,tsa}.c
    Acked-by: Bjorn Andersson <andersson@kernel.org> # qcom parts
    Acked-by: Gabriel Somlo <gsomlo@gmail.com>
    Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au> # aspeed
    Link: https://lore.kernel.org/r/20241029074859.509587-2-u.kleine-koenig@baylibre.com
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Stable-dep-of: 2286e18e3937 ("soc: qcom: gsbi: fix double disable caused by devm")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
spi: airoha-snfi: en7523: workaround flash damaging if UART_TXD was short to GND [+ + +]
Author: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Date:   Wed Nov 26 02:40:45 2025 +0300

    spi: airoha-snfi: en7523: workaround flash damaging if UART_TXD was short to GND
    
    [ Upstream commit 061795b345aff371df8f71d54ae7c7dc8ae630d0 ]
    
    Airoha EN7523 specific bug
    --------------------------
    We found that some serial console may pull TX line to GROUND during board
    boot time. Airoha uses TX line as one of its bootstrap pins. On the EN7523
    SoC this may lead to booting in RESERVED boot mode.
    
    It was found that some flashes operates incorrectly in RESERVED mode.
    Micron and Skyhigh flashes are definitely affected by the issue,
    Winbond flashes are not affected.
    
    Details:
    --------
    DMA reading of odd pages on affected flashes operates incorrectly. Page
    reading offset (start of the page) on hardware level is replaced by 0x10.
    Thus results in incorrect data reading. As result OS loading becomes
    impossible.
    
    Usage of UBI make things even worse. On attaching, UBI will detects
    corruptions (because of wrong reading of odd pages) and will try to
    recover. For recovering UBI will erase and write 'damaged' blocks with
    a valid information. This will destroy all UBI data.
    
    Non-DMA reading is OK.
    
    This patch detects booting in reserved mode, turn off DMA and print big
    fat warning.
    
    It's worth noting that the boot configuration is preserved across reboots.
    Therefore, to boot normally, you should do the following:
    - disconnect the serial console from the board,
    - power cycle the board.
    
    Fixes: a403997c12019 ("spi: airoha: add SPI-NAND Flash controller driver")
    Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
    Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
    Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
    Link: https://patch.msgid.link/20251125234047.1101985-2-mikhail.kshevetskiy@iopsys.eu
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

spi: ch341: fix out-of-bounds memory access in ch341_transfer_one [+ + +]
Author: Tianchu Chen <flynnnchen@tencent.com>
Date:   Fri Nov 28 16:06:30 2025 +0800

    spi: ch341: fix out-of-bounds memory access in ch341_transfer_one
    
    [ Upstream commit 545d1287e40a55242f6ab68bcc1ba3b74088b1bc ]
    
    Discovered by Atuin - Automated Vulnerability Discovery Engine.
    
    The 'len' variable is calculated as 'min(32, trans->len + 1)',
    which includes the 1-byte command header.
    
    When copying data from 'trans->tx_buf' to 'ch341->tx_buf + 1', using 'len'
    as the length is incorrect because:
    
    1. It causes an out-of-bounds read from 'trans->tx_buf' (which has size
       'trans->len', i.e., 'len - 1' in this context).
    2. It can cause an out-of-bounds write to 'ch341->tx_buf' if 'len' is
       CH341_PACKET_LENGTH (32). Writing 32 bytes to ch341->tx_buf + 1
       overflows the buffer.
    
    Fix this by copying 'len - 1' bytes.
    
    Fixes: 8846739f52af ("spi: add ch341a usb2spi driver")
    Signed-off-by: Tianchu Chen <flynnnchen@tencent.com>
    Link: https://patch.msgid.link/20251128160630.0f922c45ec6084a46fb57099@linux.dev
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

spi: tegra210-quad: Fix timeout handling [+ + +]
Author: Vishwaroop A <va@nvidia.com>
Date:   Tue Oct 28 15:57:01 2025 +0000

    spi: tegra210-quad: Fix timeout handling
    
    [ Upstream commit b4e002d8a7cee3b1d70efad0e222567f92a73000 ]
    
    When the CPU that the QSPI interrupt handler runs on (typically CPU 0)
    is excessively busy, it can lead to rare cases of the IRQ thread not
    running before the transfer timeout is reached.
    
    While handling the timeouts, any pending transfers are cleaned up and
    the message that they correspond to is marked as failed, which leaves
    the curr_xfer field pointing at stale memory.
    
    To avoid this, clear curr_xfer to NULL upon timeout and check for this
    condition when the IRQ thread is finally run.
    
    While at it, also make sure to clear interrupts on failure so that new
    interrupts can be run.
    
    A better, more involved, fix would move the interrupt clearing into a
    hard IRQ handler. Ideally we would also want to signal that the IRQ
    thread no longer needs to be run after the timeout is hit to avoid the
    extra check for a valid transfer.
    
    Fixes: 921fc1838fb0 ("spi: tegra210-quad: Add support for Tegra210 QSPI controller")
    Signed-off-by: Thierry Reding <treding@nvidia.com>
    Signed-off-by: Vishwaroop A <va@nvidia.com>
    Link: https://patch.msgid.link/20251028155703.4151791-2-va@nvidia.com
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
staging: fbtft: core: fix potential memory leak in fbtft_probe_common() [+ + +]
Author: Jianglei Nie <niejianglei2021@163.com>
Date:   Wed Nov 12 20:22:07 2025 +0100

    staging: fbtft: core: fix potential memory leak in fbtft_probe_common()
    
    [ Upstream commit 47d3949a9b04cbcb0e10abae30c2b53e98706e11 ]
    
    fbtft_probe_common() allocates a memory chunk for "info" with
    fbtft_framebuffer_alloc(). When "display->buswidth == 0" is true, the
    function returns without releasing the "info", which will lead to a
    memory leak.
    
    Fix it by calling fbtft_framebuffer_release() when "display->buswidth
    == 0" is true.
    
    Fixes: c296d5f9957c ("staging: fbtft: core support")
    Signed-off-by: Jianglei Nie <niejianglei2021@163.com>
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Acked-by: Abdun Nihaal <abdun.nihaal@gmail.com>
    Link: https://patch.msgid.link/20251112192235.2088654-1-andriy.shevchenko@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
task_work: Fix NMI race condition [+ + +]
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Mon Sep 22 15:47:00 2025 +0200

    task_work: Fix NMI race condition
    
    [ Upstream commit ef1ea98c8fffe227e5319215d84a53fa2a4bcebc ]
    
      __schedule()
      // disable irqs
          <NMI>
              task_work_add(current, work, TWA_NMI_CURRENT);
          </NMI>
      // current = next;
      // enable irqs
          <IRQ>
              task_work_set_notify_irq()
              test_and_set_tsk_thread_flag(current,
                                           TIF_NOTIFY_RESUME); // wrong task!
          </IRQ>
      // original task skips task work on its next return to user (or exit!)
    
    Fixes: 466e4d801cd4 ("task_work: Add TWA_NMI_CURRENT as an additional notify mode.")
    Reported-by: Josh Poimboeuf <jpoimboe@kernel.org>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
    Link: https://patch.msgid.link/20250924080118.425949403@infradead.org
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
tcp_metrics: use dst_dev_net_rcu() [+ + +]
Author: Eric Dumazet <edumazet@google.com>
Date:   Mon Dec 15 21:51:19 2025 +0000

    tcp_metrics: use dst_dev_net_rcu()
    
    [ Upstream commit 50c127a69cd6285300931853b352a1918cfa180f ]
    
    Replace three dst_dev() with a lockdep enabled helper.
    
    Fixes: 4a6ce2b6f2ec ("net: introduce a new function dst_dev_put()")
    Cc: stable@vger.kernel.org
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Reviewed-by: David Ahern <dsahern@kernel.org>
    Link: https://patch.msgid.link/20250828195823.3958522-7-edumazet@google.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    Signed-off-by: Gyokhan Kochmarla <gyokhan@amazon.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

 
tools/nolibc/stdio: let perror work when NOLIBC_IGNORE_ERRNO is set [+ + +]
Author: Benjamin Berg <benjamin.berg@intel.com>
Date:   Wed Sep 24 16:20:50 2025 +0200

    tools/nolibc/stdio: let perror work when NOLIBC_IGNORE_ERRNO is set
    
    [ Upstream commit c485ca3aff2442adea4c08ceb5183e671ebed22a ]
    
    There is no errno variable when NOLIBC_IGNORE_ERRNO is defined. As such,
    simply print the message with "unknown error" rather than the integer
    value of errno.
    
    Fixes: acab7bcdb1bc ("tools/nolibc/stdio: add perror() to report the errno value")
    Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
    Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
tracefs: fix a leak in eventfs_create_events_dir() [+ + +]
Author: Al Viro <viro@zeniv.linux.org.uk>
Date:   Sat Oct 25 18:13:48 2025 -0400

    tracefs: fix a leak in eventfs_create_events_dir()
    
    [ Upstream commit 798a401660a151633cb171738a72a8f1efb9b0b4 ]
    
    If we have LOCKDOWN_TRACEFS, the function bails out - *after*
    having locked the parent directory and without bothering to
    undo that.  Just check it before tracefs_start_creating()...
    
    Fixes: e24709454c45 "tracefs/eventfs: Add missing lockdown checks"
    Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
ublk: prevent invalid access with DEBUG [+ + +]
Author: Kevin Brodsky <kevin.brodsky@arm.com>
Date:   Wed Nov 26 12:48:35 2025 +0000

    ublk: prevent invalid access with DEBUG
    
    [ Upstream commit c6a45ee7607de3a350008630f4369b1b5ac80884 ]
    
    ublk_ch_uring_cmd_local() may jump to the out label before
    initialising the io pointer. This will cause trouble if DEBUG is
    defined, because the pr_devel() call dereferences io. Clang reports:
    
    drivers/block/ublk_drv.c:2403:6: error: variable 'io' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
     2403 |         if (tag >= ub->dev_info.queue_depth)
          |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    drivers/block/ublk_drv.c:2492:32: note: uninitialized use occurs here
     2492 |                         __func__, cmd_op, tag, ret, io->flags);
          |
    
    Fix this by initialising io to NULL and checking it before
    dereferencing it.
    
    Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
    Fixes: 71f28f3136af ("ublk_drv: add io_uring based userspace block driver")
    Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
uio: uio_fsl_elbc_gpcm:: Add null pointer check to uio_fsl_elbc_gpcm_probe [+ + +]
Author: Li Qiang <liqiang01@kylinos.cn>
Date:   Wed Oct 15 14:40:20 2025 +0800

    uio: uio_fsl_elbc_gpcm:: Add null pointer check to uio_fsl_elbc_gpcm_probe
    
    [ Upstream commit d48fb15e6ad142e0577428a8c5028136e10c7b3d ]
    
    devm_kasprintf() returns a pointer to dynamically allocated memory
    which can be NULL upon failure.
    
    Fixes: d57801c45f53e ("uio: uio_fsl_elbc_gpcm: use device-managed allocators")
    Signed-off-by: Li Qiang <liqiang01@kylinos.cn>
    Link: https://patch.msgid.link/20251015064020.56589-1-liqiang01@kylinos.cn
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
um: Don't rename vmap to kernel_vmap [+ + +]
Author: David Gow <davidgow@google.com>
Date:   Sat Nov 22 16:32:12 2025 +0800

    um: Don't rename vmap to kernel_vmap
    
    [ Upstream commit a74b6c0e53a6df8e8a096b50c06c4f872906368a ]
    
    In order to work around the existence of a vmap symbol in libpcap, the
    UML makefile unconditionally redefines vmap to kernel_vmap. However,
    this not only affects the actual vmap symbol, but also anything else
    named vmap, including a number of struct members in DRM.
    
    This would not be too much of a problem, since all uses are also
    updated, except we now have Rust DRM bindings, which expect the
    corresponding Rust structs to have 'vmap' names. Since the redefinition
    applies in bindgen, but not to Rust code, we end up with errors such as:
    
    error[E0560]: struct `drm_gem_object_funcs` has no fields named `vmap`
      --> rust/kernel/drm/gem/mod.rs:210:9
    
    Since libpcap support was removed in commit 12b8e7e69aa7 ("um: Remove
    obsolete pcap driver"), remove the, now unnecessary, define as well.
    
    We also take this opportunity to update the comment.
    
    Signed-off-by: David Gow <davidgow@google.com>
    Acked-by: Miguel Ojeda <ojeda@kernel.org>
    Link: https://patch.msgid.link/20251122083213.3996586-1-davidgow@google.com
    Fixes: 12b8e7e69aa7 ("um: Remove obsolete pcap driver")
    [adjust commmit message a bit]
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
usb: chaoskey: fix locking for O_NONBLOCK [+ + +]
Author: Oliver Neukum <oneukum@suse.com>
Date:   Thu Oct 30 10:39:06 2025 +0100

    usb: chaoskey: fix locking for O_NONBLOCK
    
    [ Upstream commit a2fa8a12e6bc9d89c0505b8dd7ae38ec173d25de ]
    
    A failure to take a lock with O_NONBLOCK needs to result
    in -EAGAIN. Change it.
    
    Fixes: 66e3e591891da ("usb: Add driver for Altus Metrum ChaosKey device (v2)")
    Signed-off-by: Oliver Neukum <oneukum@suse.com>
    Link: https://patch.msgid.link/20251030093918.2248104-1-oneukum@suse.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

usb: dwc2: disable platform lowlevel hw resources during shutdown [+ + +]
Author: Jisheng Zhang <jszhang@kernel.org>
Date:   Sun Jun 29 17:46:55 2025 +0800

    usb: dwc2: disable platform lowlevel hw resources during shutdown
    
    [ Upstream commit 7481a97c5f49f10c7490bb990d0e863f23b9bb71 ]
    
    On some SoC platforms, in shutdown stage, most components' power is cut
    off, but there's still power supply to the so called always-on
    domain, so if the dwc2's regulator is from the always-on domain, we
    need to explicitly disable it to save power.
    
    Disable platform lowlevel hw resources such as phy, clock and
    regulators etc. in device shutdown hook to reduce non-necessary power
    consumption when the platform enters shutdown stage.
    
    Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
    Acked-by: Minas Harutyunyan <hminas@synopsys.com>
    Link: https://lore.kernel.org/r/20250629094655.747-1-jszhang@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Stable-dep-of: b6ebcfdcac40 ("usb: dwc2: fix hang during shutdown if set as peripheral")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

usb: dwc2: fix hang during shutdown if set as peripheral [+ + +]
Author: Jisheng Zhang <jszhang@kernel.org>
Date:   Tue Nov 4 08:25:02 2025 +0800

    usb: dwc2: fix hang during shutdown if set as peripheral
    
    [ Upstream commit b6ebcfdcac40a27953f052e4269ce75a18825ffc ]
    
    dwc2 on most platforms needs phy controller, clock and power supply.
    All of them must be enabled/activated to properly operate. If dwc2
    is configured as peripheral mode, then all the above three hardware
    resources are disabled at the end of the probe:
    
            /* Gadget code manages lowlevel hw on its own */
            if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)
                    dwc2_lowlevel_hw_disable(hsotg);
    
    But dwc2_driver_shutdown() tries to disable the interrupts on HW IP
    level. This would result in hang during shutdown if dwc2 is configured
    as peripheral mode.
    
    Fix this hang by only disable and sync irq when lowlevel hw is enabled.
    
    Fixes: 4fdf228cdf69 ("usb: dwc2: Fix shutdown callback in platform")
    Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
    Link: https://patch.msgid.link/20251104002503.17158-2-jszhang@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

usb: dwc2: fix hang during suspend if set as peripheral [+ + +]
Author: Jisheng Zhang <jszhang@kernel.org>
Date:   Tue Nov 4 08:25:03 2025 +0800

    usb: dwc2: fix hang during suspend if set as peripheral
    
    [ Upstream commit 2b94b054ac4974ad2f89f7f7461840c851933adb ]
    
    dwc2 on most platforms needs phy controller, clock and power supply.
    All of them must be enabled/activated to properly operate. If dwc2
    is configured as peripheral mode, then all the above three hardware
    resources are disabled at the end of the probe:
    
            /* Gadget code manages lowlevel hw on its own */
            if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)
                    dwc2_lowlevel_hw_disable(hsotg);
    
    But the dwc2_suspend() tries to read the dwc2's reg to check whether
    is_device_mode or not, this would result in hang during suspend if dwc2
    is configured as peripheral mode.
    
    Fix this hang by bypassing suspend/resume if lowlevel hw isn't
    enabled.
    
    Fixes: 09a75e857790 ("usb: dwc2: refactor common low-level hw code to platform.c")
    Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
    Link: https://patch.msgid.link/20251104002503.17158-3-jszhang@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

usb: dwc3: dwc3_power_off_all_roothub_ports: Use ioremap_np when required [+ + +]
Author: Sven Peter <sven@kernel.org>
Date:   Wed Oct 15 15:40:42 2025 +0000

    usb: dwc3: dwc3_power_off_all_roothub_ports: Use ioremap_np when required
    
    commit 5ed9cc71432a8adf3c42223c935f714aac29901b upstream.
    
    On Apple Silicon machines we can't use ioremap() / Device-nGnRE to map most
    regions but must use ioremap_np() / Device-nGnRnE whenever
    IORESOURCE_MEM_NONPOSTED is set. Make sure this is also done inside
    dwc3_power_off_all_roothub_ports to prevent SErrors.
    
    Fixes: 2d2a3349521d ("usb: dwc3: Add workaround for host mode VBUS glitch when boot")
    Cc: stable@kernel.org
    Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
    Reviewed-by: Neal Gompa <neal@gompa.dev>
    Signed-off-by: Sven Peter <sven@kernel.org>
    Link: https://patch.msgid.link/20251015-b4-aplpe-dwc3-v2-2-cbd65a2d511a@kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

 
USB: Fix descriptor count when handling invalid MBIM extended descriptor [+ + +]
Author: Seungjin Bae <eeodqql09@gmail.com>
Date:   Sun Sep 28 14:56:11 2025 -0400

    USB: Fix descriptor count when handling invalid MBIM extended descriptor
    
    [ Upstream commit 5570ad1423ee60f6e972dadb63fb2e5f90a54cbe ]
    
    In cdc_parse_cdc_header(), the check for the USB_CDC_MBIM_EXTENDED_TYPE
    descriptor was using 'break' upon detecting an invalid length.
    
    This was incorrect because 'break' only exits the switch statement,
    causing the code to fall through to cnt++, thus incorrectly
    incrementing the count of parsed descriptors for a descriptor that was
    actually invalid and being discarded.
    
    This patch changes 'break' to 'goto next_desc;' to ensure that the
    logic skips the counter increment and correctly proceeds to the next
    descriptor in the buffer. This maintains an accurate count of only
    the successfully parsed descriptors.
    
    Fixes: e4c6fb7794982 ("usbnet: move the CDC parser into USB core")
    Signed-off-by: Seungjin Bae <eeodqql09@gmail.com>
    Link: https://lore.kernel.org/r/20250928185611.764589-1-eeodqql09@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
usb: gadget: tegra-xudc: Always reinitialize data toggle when clear halt [+ + +]
Author: Haotien Hsu <haotienh@nvidia.com>
Date:   Thu Nov 27 11:35:40 2025 +0800

    usb: gadget: tegra-xudc: Always reinitialize data toggle when clear halt
    
    commit 2585973c7f9ee31d21e5848c996fab2521fd383d upstream.
    
    The driver previously skipped handling ClearFeature(ENDPOINT_HALT)
    when the endpoint was already not halted. This prevented the
    controller from resetting the data sequence number and reinitializing
    the endpoint state.
    
    According to USB 3.2 specification Rev. 1.1, section 9.4.5,
    ClearFeature(ENDPOINT_HALT) must always reset the data sequence and
    set the stream state machine to Disabled, regardless of whether the
    endpoint was halted.
    
    Remove the early return so that ClearFeature(ENDPOINT_HALT) always
    resets the endpoint sequence state as required by the specification.
    
    Fixes: 49db427232fe ("usb: gadget: Add UDC driver for tegra XUSB device mode controller")
    Cc: stable <stable@kernel.org>
    Signed-off-by: Haotien Hsu <haotienh@nvidia.com>
    Signed-off-by: Wayne Chang <waynec@nvidia.com>
    Link: https://patch.msgid.link/20251127033540.2287517-1-waynec@nvidia.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

usb: phy: Initialize struct usb_phy list_head [+ + +]
Author: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
Date:   Fri Nov 21 18:16:36 2025 +0000

    usb: phy: Initialize struct usb_phy list_head
    
    commit c69ff68b097b0f53333114f1b2c3dc128f389596 upstream.
    
    As part of the registration of a new 'struct usb_phy' with the USB PHY core
    via either usb_add_phy(struct usb_phy *x, ...) or usb_add_phy_dev(struct
    usb_phy *x) these functions call list_add_tail(&x->head, phy_list) in
    order for the new instance x to be stored in phy_list, a static list
    kept internally by the core.
    
    After 7d21114dc6a2 ("usb: phy: Introduce one extcon device into usb phy")
    when executing either of the registration functions above it is possible
    that usb_add_extcon() fails, leading to either function returning before
    the call to list_add_tail(), leaving x->head uninitialized.
    
    Then, when a driver tries to undo the failed registration by calling
    usb_remove_phy(struct usb_phy *x) there will be an unconditional call to
    list_del(&x->head) acting on an uninitialized variable, and thus a
    possible NULL pointer dereference.
    
    Fix this by initializing x->head before usb_add_extcon() has a
    chance to fail. Note that this was not needed before 7d21114dc6a2 since
    list_add_phy() was executed unconditionally and it guaranteed that x->head
    was initialized.
    
    Fixes: 7d21114dc6a2 ("usb: phy: Introduce one extcon device into usb phy")
    Cc: stable <stable@kernel.org>
    Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
    Link: https://patch.msgid.link/20251121-diogo-smaug_typec-v2-1-5c37c1169d57@tecnico.ulisboa.pt
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

usb: raw-gadget: cap raw_io transfer length to KMALLOC_MAX_SIZE [+ + +]
Author: Gopi Krishna Menon <krishnagopi487@gmail.com>
Date:   Tue Oct 28 22:26:57 2025 +0530

    usb: raw-gadget: cap raw_io transfer length to KMALLOC_MAX_SIZE
    
    [ Upstream commit a5160af78be7fcf3ade6caab0a14e349560c96d7 ]
    
    The previous commit removed the PAGE_SIZE limit on transfer length of
    raw_io buffer in order to avoid any problems with emulating USB devices
    whose full configuration descriptor exceeds PAGE_SIZE in length. However
    this also removes the upperbound on user supplied length, allowing very
    large values to be passed to the allocator.
    
    syzbot on fuzzing the transfer length with very large value (1.81GB)
    results in kmalloc() to fall back to the page allocator, which triggers
    a kernel warning as the page allocator cannot handle allocations more
    than MAX_PAGE_ORDER/KMALLOC_MAX_SIZE.
    
    Since there is no limit imposed on the size of buffer for both control
    and non control transfers, cap the raw_io transfer length to
    KMALLOC_MAX_SIZE and return -EINVAL for larger transfer length to
    prevent any warnings from the page allocator.
    
    Fixes: 37b9dd0d114a ("usb: raw-gadget: do not limit transfer length")
    Tested-by: syzbot+d8fd35fa6177afa8c92b@syzkaller.appspotmail.com
    Reported-by: syzbot+d8fd35fa6177afa8c92b@syzkaller.appspotmail.com
    Closes: https://lore.kernel.org/all/68fc07a0.a70a0220.3bf6c6.01ab.GAE@google.com/
    Signed-off-by: Gopi Krishna Menon <krishnagopi487@gmail.com>
    Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
    Link: https://patch.msgid.link/20251028165659.50962-1-krishnagopi487@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
vdpa/mlx5: Fix incorrect error code reporting in query_virtqueues [+ + +]
Author: Alok Tiwari <alok.a.tiwari@oracle.com>
Date:   Mon Sep 29 06:42:53 2025 -0700

    vdpa/mlx5: Fix incorrect error code reporting in query_virtqueues
    
    [ Upstream commit f0ea2e91093ac979d07ebd033e0f45869b1d2608 ]
    
    When query_virtqueues() fails, the error log prints the variable err
    instead of cmd->err. Since err may still be zero at this point, the
    log message can misleadingly report a success value 0 even though the
    command actually failed.
    
    Even worse, once err is set to the first failure, subsequent logs
    print that same stale value. This makes the error reporting appear
    one step behind the actual failing queue index, which is confusing
    and misleading.
    
    Fix the log to report cmd->err, which reflects the real failure code
    returned by the firmware.
    
    Fixes: 1fcdf43ea69e ("vdpa/mlx5: Use async API for vq query command")
    Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Message-Id: <20250929134258.80956-1-alok.a.tiwari@oracle.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
vdpa/pds: use %pe for ERR_PTR() in event handler registration [+ + +]
Author: Alok Tiwari <alok.a.tiwari@oracle.com>
Date:   Sat Oct 18 10:46:46 2025 -0700

    vdpa/pds: use %pe for ERR_PTR() in event handler registration
    
    [ Upstream commit 731ca4a4cc52fd5c5ae309edcfd2d7e54ece3321 ]
    
    Use %pe instead of %ps when printing ERR_PTR() values. %ps is intended
    for string pointers, while %pe correctly prints symbolic error names
    for error pointers returned via ERR_PTR().
    This shows the returned error value more clearly.
    
    Fixes: 67f27b8b3a34 ("pds_vdpa: subscribe to the pds_core events")
    Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
    Reviewed-by: Brett Creeley <brett.creeley@amd.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Message-Id: <20251018174705.1511982-1-alok.a.tiwari@oracle.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
vfio/pci: Use RCU for error/request triggers to avoid circular locking [+ + +]
Author: Alex Williamson <alex.williamson@nvidia.com>
Date:   Mon Nov 24 15:36:22 2025 -0700

    vfio/pci: Use RCU for error/request triggers to avoid circular locking
    
    [ Upstream commit 98693e0897f754e3f51ce6626ed5f785f625ba2b ]
    
    Thanks to a device generating an ACS violation during bus reset,
    lockdep reported the following circular locking issue:
    
    CPU0: SET_IRQS (MSI/X): holds igate, acquires memory_lock
    CPU1: HOT_RESET: holds memory_lock, acquires pci_bus_sem
    CPU2: AER: holds pci_bus_sem, acquires igate
    
    This results in a potential 3-way deadlock.
    
    Remove the pci_bus_sem->igate leg of the triangle by using RCU
    to peek at the eventfd rather than locking it with igate.
    
    Fixes: 3be3a074cf5b ("vfio-pci: Don't use device_lock around AER interrupt setup")
    Signed-off-by: Alex Williamson <alex.williamson@nvidia.com>
    Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
    Link: https://lore.kernel.org/r/20251124223623.2770706-1-alex@shazbot.org
    Signed-off-by: Alex Williamson <alex@shazbot.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
vhost: Fix kthread worker cgroup failure handling [+ + +]
Author: Mike Christie <michael.christie@oracle.com>
Date:   Sat Nov 1 14:43:58 2025 -0500

    vhost: Fix kthread worker cgroup failure handling
    
    [ Upstream commit f3f64c2eaffbc3169bbe1e5d1e897e6dacc839d1 ]
    
    If we fail to attach to a cgroup we are leaking the id. This adds
    a new goto to free the id.
    
    Fixes: 7d9896e9f6d0 ("vhost: Reintroduce kthread API and add mode selection")
    Signed-off-by: Mike Christie <michael.christie@oracle.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Message-Id: <20251101194358.13605-1-michael.christie@oracle.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
virtio: fix grammar in virtio_queue_info docs [+ + +]
Author: Michael S. Tsirkin <mst@redhat.com>
Date:   Thu Nov 13 04:34:36 2025 -0500

    virtio: fix grammar in virtio_queue_info docs
    
    [ Upstream commit 63598fba55ab9d384818fed48dc04006cecf7be4 ]
    
    Fix grammar in the description of @ctx
    
    Fixes: c502eb85c34e ("virtio: introduce virtio_queue_info struct and find_vqs_info() config op")
    Message-Id: <a5cf2b92573200bdb1c1927e559d3930d61a4af2.1763026134.git.mst@redhat.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

virtio: fix typo in virtio_device_ready() comment [+ + +]
Author: Michael S. Tsirkin <mst@redhat.com>
Date:   Thu Nov 13 04:34:31 2025 -0500

    virtio: fix typo in virtio_device_ready() comment
    
    [ Upstream commit 361173f95ae4b726ebbbf0bd594274f5576c4abc ]
    
    "coherenct" -> "coherent"
    
    Fixes: 8b4ec69d7e09 ("virtio: harden vring IRQ")
    Message-Id: <db286e9a65449347f6584e68c9960fd5ded2b4b0.1763026134.git.mst@redhat.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

virtio: fix virtqueue_set_affinity() docs [+ + +]
Author: Michael S. Tsirkin <mst@redhat.com>
Date:   Thu Nov 13 04:34:43 2025 -0500

    virtio: fix virtqueue_set_affinity() docs
    
    [ Upstream commit 43236d8bbafff94b423afecc4a692dd90602d426 ]
    
    Rewrite the comment for better grammar and clarity.
    
    Fixes: 75a0a52be3c2 ("virtio: introduce an API to set affinity for a virtqueue")
    Message-Id: <e317e91bd43b070e5eaec0ebbe60c5749d02e2dd.1763026134.git.mst@redhat.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

virtio: fix whitespace in virtio_config_ops [+ + +]
Author: Michael S. Tsirkin <mst@redhat.com>
Date:   Thu Nov 13 04:34:34 2025 -0500

    virtio: fix whitespace in virtio_config_ops
    
    [ Upstream commit 7831791e77a1cd29528d4dc336ce14466aef5ba6 ]
    
    The finalize_features documentation uses a tab between words.
    Use space instead.
    
    Fixes: d16c0cd27331 ("docs: driver-api: virtio: virtio on Linux")
    Message-Id: <39d7685c82848dc6a876d175e33a1407f6ab3fc1.1763026134.git.mst@redhat.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
virtio_vdpa: fix misleading return in void function [+ + +]
Author: Alok Tiwari <alok.a.tiwari@oracle.com>
Date:   Wed Oct 1 12:16:50 2025 -0700

    virtio_vdpa: fix misleading return in void function
    
    [ Upstream commit e40b6abe0b1247d43bc61942aa7534fca7209e44 ]
    
    virtio_vdpa_set_status() is declared as returning void, but it used
    "return vdpa_set_status()" Since vdpa_set_status() also returns
    void, the return statement is unnecessary and misleading.
    Remove it.
    
    Fixes: c043b4a8cf3b ("virtio: introduce a vDPA based transport")
    Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
    Message-Id: <20251001191653.1713923-1-alok.a.tiwari@oracle.com>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
watchdog: starfive: Fix resource leak in probe error path [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Wed Nov 5 16:42:20 2025 +0800

    watchdog: starfive: Fix resource leak in probe error path
    
    [ Upstream commit 5bcc5786a0cfa9249ccbe539833040a6285d0de3 ]
    
    If pm_runtime_put_sync() fails after watchdog_register_device()
    succeeds, the probe function jumps to err_exit without
    unregistering the watchdog device. This leaves the watchdog
    registered in the subsystem while the driver fails to load,
    resulting in a resource leak.
    
    Add a new error label err_unregister_wdt to properly unregister
    the watchdog device.
    
    Fixes: 8bc22a2f1bf0 ("watchdog: starfive: Check pm_runtime_enabled() before decrementing usage counter")
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Reviewed-by: Wim Van Sebroeck <wim@linux-watchdog.org>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

watchdog: wdat_wdt: Fix ACPI table leak in probe function [+ + +]
Author: Haotian Zhang <vulab@iscas.ac.cn>
Date:   Thu Nov 13 10:30:32 2025 +0800

    watchdog: wdat_wdt: Fix ACPI table leak in probe function
    
    [ Upstream commit 25c0b472eab8379683d4eef681185c104bed8ffd ]
    
    wdat_wdt_probe() calls acpi_get_table() to obtain the WDAT ACPI table but
    never calls acpi_put_table() on any paths. This causes a permanent ACPI
    table memory leak.
    
    Add a single cleanup path which calls acpi_put_table() to ensure
    the ACPI table is always released.
    
    Fixes: 058dfc767008 ("ACPI / watchdog: Add support for WDAT hardware watchdog")
    Suggested-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
    Reviewed-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
wifi: ath10k: Add missing include of export.h [+ + +]
Author: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Date:   Wed Jun 11 09:13:56 2025 -0700

    wifi: ath10k: Add missing include of export.h
    
    [ Upstream commit 32c3a0f8894311c743b2a6a15b50b13d01411ce1 ]
    
    Commit a934a57a42f6 ("scripts/misc-check: check missing #include
    <linux/export.h> when W=1") introduced a new check that is producing
    the following warnings:
    
    drivers/net/wireless/ath/ath10k/bmi.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
    drivers/net/wireless/ath/ath10k/ce.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
    drivers/net/wireless/ath/ath10k/core.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
    drivers/net/wireless/ath/ath10k/coredump.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
    drivers/net/wireless/ath/ath10k/debug.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
    drivers/net/wireless/ath/ath10k/htc.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
    drivers/net/wireless/ath/ath10k/htt_rx.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
    drivers/net/wireless/ath/ath10k/htt_tx.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
    drivers/net/wireless/ath/ath10k/mac.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
    drivers/net/wireless/ath/ath10k/trace.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
    
    Add the missing #include to satisfy the check.
    
    Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
    Link: https://patch.msgid.link/20250611-ath-unused-export-v1-3-c36819df7e7b@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
    Stable-dep-of: f35a07a4842a ("wifi: ath10k: move recovery check logic into a new work")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

wifi: ath10k: Avoid vdev delete timeout when firmware is already down [+ + +]
Author: Loic Poulain <loic.poulain@oss.qualcomm.com>
Date:   Thu May 22 15:17:04 2025 +0200

    wifi: ath10k: Avoid vdev delete timeout when firmware is already down
    
    [ Upstream commit dc9c4252fe0d7a7f1ee904405ea91534277305bf ]
    
    In some scenarios, the firmware may be stopped before the interface is
    removed, either due to a crash or because the remoteproc (e.g., MPSS)
    is shut down early during system reboot or shutdown.
    
    This leads to a delay during interface teardown, as the driver waits for
    a vdev delete response that never arrives, eventually timing out.
    
    Example (SNOC):
    $ echo stop > /sys/class/remoteproc/remoteproc0/state
    [ 71.64] remoteproc remoteproc0: stopped remote processor modem
    $ reboot
    [ 74.84] ath10k_snoc c800000.wifi: failed to transmit packet, dropping: -108
    [ 74.84] ath10k_snoc c800000.wifi: failed to submit frame: -108
    [...]
    [ 82.39] ath10k_snoc c800000.wifi: Timeout in receiving vdev delete response
    
    To avoid this, skip waiting for the vdev delete response if the firmware is
    already marked as unreachable (`ATH10K_FLAG_CRASH_FLUSH`), similar to how
    `ath10k_mac_wait_tx_complete()` and `ath10k_vdev_setup_sync()` handle this case.
    
    Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
    Link: https://patch.msgid.link/20250522131704.612206-1-loic.poulain@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
    Stable-dep-of: f35a07a4842a ("wifi: ath10k: move recovery check logic into a new work")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

wifi: ath10k: move recovery check logic into a new work [+ + +]
Author: Kang Yang <kang.yang@oss.qualcomm.com>
Date:   Tue Oct 14 19:07:57 2025 +0800

    wifi: ath10k: move recovery check logic into a new work
    
    [ Upstream commit f35a07a4842a88801d9182b1a76d178bfa616978 ]
    
    Currently, ath10k has a recovery check logic. It will wait for the
    last recovery to finish by wait_for_completion_timeout();
    
    But in SDIO scenarios, the recovery function may be invoked from
    interrupt context, where long blocking waits are undesirable and can
    lead to system instability.
    
    Additionally, Linux’s ordered workqueue processes one task at a time.
    If a previous recovery is still queued or executing, new triggers are
    ignored. This prevents accurate tracking of consecutive failures and
    delays transition to the WEDGED state.
    
    To address this, move the recovery check logic into a different
    workqueue.
    
    Tested-on: QCA6174 hw3.2 PCI WLAN.RM.4.4.1-00288-QCARMSWPZ-1
    Tested-on: QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00189
    
    Fixes: c256a94d1b1b ("wifi: ath10k: shutdown driver when hardware is unreliable")
    Signed-off-by: Kang Yang <kang.yang@oss.qualcomm.com>
    Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
    Link: https://patch.msgid.link/20251014110757.155-1-kang.yang@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

wifi: ath11k: fix peer HE MCS assignment [+ + +]
Author: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Date:   Fri Oct 17 09:49:00 2025 +0800

    wifi: ath11k: fix peer HE MCS assignment
    
    [ Upstream commit 4a013ca2d490c73c40588d62712ffaa432046a04 ]
    
    In ath11k_wmi_send_peer_assoc_cmd(), peer's transmit MCS is sent to
    firmware as receive MCS while peer's receive MCS sent as transmit MCS,
    which goes against firmwire's definition.
    
    While connecting to a misbehaved AP that advertises 0xffff (meaning not
    supported) for 160 MHz transmit MCS map, firmware crashes due to 0xffff
    is assigned to he_mcs->rx_mcs_set field.
    
            Ext Tag: HE Capabilities
                [...]
                Supported HE-MCS and NSS Set
                    [...]
                    Rx and Tx MCS Maps 160 MHz
                        [...]
                        Tx HE-MCS Map 160 MHz: 0xffff
    
    Swap the assignment to fix this issue.
    
    As the HE rate control mask is meant to limit our own transmit MCS, it
    needs to go via he_mcs->rx_mcs_set field. With the aforementioned swapping
    done, change is needed as well to apply it to the peer's receive MCS.
    
    Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.41
    Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1
    
    Fixes: 61fe43e7216d ("ath11k: add support for setting fixed HE rate/gi/ltf")
    Signed-off-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
    Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
    Link: https://patch.msgid.link/20251017-ath11k-mcs-assignment-v1-2-da40825c1783@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

wifi: ath11k: fix VHT MCS assignment [+ + +]
Author: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Date:   Fri Oct 17 09:48:59 2025 +0800

    wifi: ath11k: fix VHT MCS assignment
    
    [ Upstream commit 47d0cd6bccb4604192633cc8d29511e85d811fc0 ]
    
    While associating, firmware needs to know peer's receive capability to
    calculate its own VHT transmit MCS, currently host sends this information
    to firmware via mcs->rx_mcs_set field, this is wrong as firmware actually
    takes it from mcs->tx_mcs_set field. Till now there is no failure seen
    due to this, most likely because almost all peers are advertising the
    same capability for both transmit and receive. Swap the assignment to
    fix it.
    
    Besides, rate control mask is meant to limit our own transmit MCS, hence
    need to go via mcs->tx_mcs_set field. With the aforementioned swapping
    done, change is needed as well to apply it to the peer's receive
    capability rather than transmit capability.
    
    Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.41
    Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1
    
    Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
    Signed-off-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
    Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
    Link: https://patch.msgid.link/20251017-ath11k-mcs-assignment-v1-1-da40825c1783@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

wifi: ath11k: restore register window after global reset [+ + +]
Author: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Date:   Tue Oct 14 10:30:20 2025 +0800

    wifi: ath11k: restore register window after global reset
    
    [ Upstream commit 596b911644cc19ecba0dbc9c92849fb59390e29a ]
    
    Hardware target implements an address space larger than that PCI BAR can
    map. In order to be able to access the whole target address space, the BAR
    space is split into 4 segments, of which the last 3, called windows, can
    be dynamically mapped to the desired area. This is achieved by updating
    window register with appropriate window value. Currently each time when
    accessing a register that beyond ATH11K_PCI_WINDOW_START, host calculates
    the window value and caches it after window update, this way next time
    when accessing a register falling in the same window, host knows that the
    window is already good hence no additional update needed.
    
    However this mechanism breaks after global reset is triggered in
    ath11k_pci_soc_global_reset(), because with global reset hardware resets
    window register hence the window is not properly mapped any more. Current
    host does nothing about this, as a result a subsequent register access may
    not work as expected if it falls in a window same as before.
    
    Although there is no obvious issue seen now, better to fix it to avoid
    future problem. The fix is done by restoring the window register after
    global reset.
    
    Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.30
    
    Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
    Signed-off-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
    Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
    Link: https://patch.msgid.link/20251014-ath11k-reset-window-cache-v1-1-b85271b111dd@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

wifi: ath12k: fix potential memory leak in ath12k_wow_arp_ns_offload() [+ + +]
Author: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Date:   Tue Oct 28 22:34:55 2025 +0530

    wifi: ath12k: fix potential memory leak in ath12k_wow_arp_ns_offload()
    
    [ Upstream commit be5febd51c478bc8e24ad3480435f2754a403b14 ]
    
    When the call to ath12k_wmi_arp_ns_offload() fails, the temporary memory
    allocation for offload is not freed before returning. Fix that by
    freeing offload in the error path.
    
    Fixes: 1666108c74c4 ("wifi: ath12k: support ARP and NS offload")
    Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
    Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
    Link: https://patch.msgid.link/20251028170457.134608-1-nihaal@cse.iitm.ac.in
    Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

wifi: cw1200: Fix potential memory leak in cw1200_bh_rx_helper() [+ + +]
Author: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Date:   Mon Nov 10 23:23:15 2025 +0530

    wifi: cw1200: Fix potential memory leak in cw1200_bh_rx_helper()
    
    [ Upstream commit 5e88e864118c20e63a1571d0ff0a152e5d684959 ]
    
    In one of the error paths, the memory allocated for skb_rx is not freed.
    Fix that by freeing it before returning.
    
    Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets")
    Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
    Link: https://patch.msgid.link/20251110175316.106591-1-nihaal@cse.iitm.ac.in
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

wifi: ieee80211: correct FILS status codes [+ + +]
Author: Ria Thomas <ria.thomas@morsemicro.com>
Date:   Mon Nov 24 18:26:37 2025 +0530

    wifi: ieee80211: correct FILS status codes
    
    [ Upstream commit 24d4da5c2565313c2ad3c43449937a9351a64407 ]
    
    The FILS status codes are set to 108/109, but the IEEE 802.11-2020
    spec defines them as 112/113. Update the enum so it matches the
    specification and keeps the kernel consistent with standard values.
    
    Fixes: a3caf7440ded ("cfg80211: Add support for FILS shared key authentication offload")
    Signed-off-by: Ria Thomas <ria.thomas@morsemicro.com>
    Reviewed-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
    Link: https://patch.msgid.link/20251124125637.3936154-1-ria.thomas@morsemicro.com
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

wifi: mac80211: fix CMAC functions not handling errors [+ + +]
Author: Chien Wong <m@xv97.com>
Date:   Thu Nov 13 22:05:07 2025 +0800

    wifi: mac80211: fix CMAC functions not handling errors
    
    [ Upstream commit 353cda30d30e5dc7cacf8de5d2546724708ae3bb ]
    
    The called hash functions could fail thus we should check return values.
    
    Fixes: 26717828b75d ("mac80211: aes-cmac: switch to shash CMAC driver")
    Signed-off-by: Chien Wong <m@xv97.com>
    Link: https://patch.msgid.link/20251113140511.48658-2-m@xv97.com
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

wifi: rtl818x: Fix potential memory leaks in rtl8180_init_rx_ring() [+ + +]
Author: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Date:   Fri Nov 14 15:15:26 2025 +0530

    wifi: rtl818x: Fix potential memory leaks in rtl8180_init_rx_ring()
    
    [ Upstream commit 9b5b9c042b30befc5b37e4539ace95af70843473 ]
    
    In rtl8180_init_rx_ring(), memory is allocated for skb packets and DMA
    allocations in a loop. When an allocation fails, the previously
    successful allocations are not freed on exit.
    
    Fix that by jumping to err_free_rings label on error, which calls
    rtl8180_free_rx_ring() to free the allocations. Remove the free of
    rx_ring in rtl8180_init_rx_ring() error path, and set the freed
    priv->rx_buf entry to null, to avoid double free.
    
    Fixes: f653211197f3 ("Add rtl8180 wireless driver")
    Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
    Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
    Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
    Link: https://patch.msgid.link/20251114094527.79842-1-nihaal@cse.iitm.ac.in
    Signed-off-by: Sasha Levin <sashal@kernel.org>

wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb() [+ + +]
Author: Seungjin Bae <eeodqql09@gmail.com>
Date:   Mon Nov 17 20:32:59 2025 -0500

    wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb()
    
    [ Upstream commit b647d2574e4583c2e3b0ab35568f60c88e910840 ]
    
    The rtl8187_rx_cb() calculates the rx descriptor header address
    by subtracting its size from the skb tail pointer.
    However, it does not validate if the received packet
    (skb->len from urb->actual_length) is large enough to contain this
    header.
    
    If a truncated packet is received, this will lead to a buffer
    underflow, reading memory before the start of the skb data area,
    and causing a kernel panic.
    
    Add length checks for both rtl8187 and rtl8187b descriptor headers
    before attempting to access them, dropping the packet cleanly if the
    check fails.
    
    Fixes: 6f7853f3cbe4 ("rtl8187: change rtl8187_dev.c to support RTL8187B (part 2)")
    Signed-off-by: Seungjin Bae <eeodqql09@gmail.com>
    Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
    Link: https://patch.msgid.link/20251118013258.1789949-2-eeodqql09@gmail.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
x86/boot: Fix page table access in 5-level to 4-level paging transition [+ + +]
Author: Usama Arif <usamaarif642@gmail.com>
Date:   Mon Nov 3 14:09:22 2025 +0000

    x86/boot: Fix page table access in 5-level to 4-level paging transition
    
    [ Upstream commit eb2266312507d7b757859e2227aa5c4ba6280ebe ]
    
    When transitioning from 5-level to 4-level paging, the existing code
    incorrectly accesses page table entries by directly dereferencing CR3 and
    applying PAGE_MASK. This approach has several issues:
    
    - __native_read_cr3() returns the raw CR3 register value, which on x86_64
      includes not just the physical address but also flags. Bits above the
      physical address width of the system i.e. above __PHYSICAL_MASK_SHIFT) are
      also not masked.
    
    - The PGD entry is masked by PAGE_SIZE which doesn't take into account the
      higher bits such as _PAGE_BIT_NOPTISHADOW.
    
    Replace this with proper accessor functions:
    
    - native_read_cr3_pa(): Uses CR3_ADDR_MASK to additionally mask metadata out
      of CR3 (like SME or LAM bits). All remaining bits are real address bits or
      reserved and must be 0.
    
    - mask pgd value with PTE_PFN_MASK instead of PAGE_MASK, accounting for flags
      above bit 51 (_PAGE_BIT_NOPTISHADOW in particular). Bits below 51, but above
      the max physical address are reserved and must be 0.
    
    Fixes: e9d0e6330eb8 ("x86/boot/compressed/64: Prepare new top-level page table for trampoline")
    Reported-by: Michael van der Westhuizen <rmikey@meta.com>
    Reported-by: Tobias Fleig <tfleig@meta.com>
    Co-developed-by: Kiryl Shutsemau <kas@kernel.org>
    Signed-off-by: Kiryl Shutsemau <kas@kernel.org>
    Signed-off-by: Usama Arif <usamaarif642@gmail.com>
    Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
    Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
    Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
    Link: https://lore.kernel.org/r/a482fd68-ce54-472d-8df1-33d6ac9f6bb5@intel.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 
x86/dumpstack: Prevent KASAN false positive warnings in __show_regs() [+ + +]
Author: Tengda Wu <wutengda@huaweicloud.com>
Date:   Thu Oct 23 09:06:32 2025 +0000

    x86/dumpstack: Prevent KASAN false positive warnings in __show_regs()
    
    [ Upstream commit ced37e9ceae50e4cb6cd058963bd315ec9afa651 ]
    
    When triggering a stack dump via sysrq (echo t > /proc/sysrq-trigger),
    KASAN may report false-positive out-of-bounds access:
    
      BUG: KASAN: out-of-bounds in __show_regs+0x4b/0x340
      Call Trace:
        dump_stack_lvl
        print_address_description.constprop.0
        print_report
        __show_regs
        show_trace_log_lvl
        sched_show_task
        show_state_filter
        sysrq_handle_showstate
        __handle_sysrq
        write_sysrq_trigger
        proc_reg_write
        vfs_write
        ksys_write
        do_syscall_64
        entry_SYSCALL_64_after_hwframe
    
    The issue occurs as follows:
    
      Task A (walk other tasks' stacks)           Task B (running)
      1. echo t > /proc/sysrq-trigger
      show_trace_log_lvl
        regs = unwind_get_entry_regs()
        show_regs_if_on_stack(regs)
                                                  2. The stack value pointed by
                                                     `regs` keeps changing, and
                                                     so are the tags in its
                                                     KASAN shadow region.
          __show_regs(regs)
            regs->ax, regs->bx, ...
              3. hit KASAN redzones, OOB
    
    When task A walks task B's stack without suspending it, the continuous changes
    in task B's stack (and corresponding KASAN shadow tags) may cause task A to
    hit KASAN redzones when accessing obsolete values on the stack, resulting in
    false positive reports.
    
    Simply stopping the task before unwinding is not a viable fix, as it would
    alter the state intended to inspect. This is especially true for diagnosing
    misbehaving tasks (e.g., in a hard lockup), where stopping might fail or hide
    the root cause by changing the call stack.
    
    Therefore, fix this by disabling KASAN checks during asynchronous stack
    unwinding, which is identified when the unwinding task does not match the
    current task (task != current).
    
      [ bp: Align arguments on function's opening brace. ]
    
    Fixes: 3b3fa11bc700 ("x86/dumpstack: Print any pt_regs found on the stack")
    Signed-off-by: Tengda Wu <wutengda@huaweicloud.com>
    Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
    Reviewed-by: Andrey Ryabinin <ryabinin.a.a@gmail.com>
    Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
    Link: https://patch.msgid.link/all/20251023090632.269121-1-wutengda@huaweicloud.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>