Changelog in Linux kernel 6.17.13

 
9p: fix cache/debug options printing in v9fs_show_options [+ + +]
Author: Eric Sandeen <[email protected]>
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 <[email protected]>
    Message-ID: <[email protected]>
    [Dominique: use %#x at Al Viro's suggestion, also handle debug]
    Tested-by: Remi Pommarel <[email protected]>
    Signed-off-by: Dominique Martinet <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
accel/amdxdna: Clear mailbox interrupt register during channel creation [+ + +]
Author: Lizhi Hou <[email protected]>
Date:   Fri Nov 7 10:11:15 2025 -0800

    accel/amdxdna: Clear mailbox interrupt register during channel creation
    
    [ Upstream commit 6ff9385c07aa311f01f87307e6256231be7d8675 ]
    
    The mailbox interrupt register is not always cleared when a mailbox channel
    is created. This can leave stale interrupt states from previous operations.
    
    Fix this by explicitly clearing the interrupt register in the mailbox
    channel creation function.
    
    Fixes: b87f920b9344 ("accel/amdxdna: Support hardware mailbox")
    Reviewed-by: Maciej Falkowski <[email protected]>
    Signed-off-by: Lizhi Hou <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

accel/amdxdna: Fix deadlock between context destroy and job timeout [+ + +]
Author: Lizhi Hou <[email protected]>
Date:   Fri Nov 7 10:10:50 2025 -0800

    accel/amdxdna: Fix deadlock between context destroy and job timeout
    
    [ Upstream commit ca2583412306ceda9304a7c4302fd9efbf43e963 ]
    
    Hardware context destroy function holds dev_lock while waiting for all jobs
    to complete. The timeout job also needs to acquire dev_lock, this leads to
    a deadlock.
    
    Fix the issue by temporarily releasing dev_lock before waiting for all
    jobs to finish, and reacquiring it afterward.
    
    Fixes: 4fd6ca90fc7f ("accel/amdxdna: Refactor hardware context destroy routine")
    Reviewed-by: Maciej Falkowski <[email protected]>
    Signed-off-by: Lizhi Hou <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

accel/amdxdna: Fix dma_fence leak when job is canceled [+ + +]
Author: Lizhi Hou <[email protected]>
Date:   Wed Nov 5 11:41:40 2025 -0800

    accel/amdxdna: Fix dma_fence leak when job is canceled
    
    [ Upstream commit dea9f84776b96a703f504631ebe9fea07bd2c181 ]
    
    Currently, dma_fence_put(job->fence) is called in job notification
    callback. However, if a job is canceled, the notification callback is never
    invoked, leading to a memory leak. Move dma_fence_put(job->fence)
    to the job cleanup function to ensure the fence is always released.
    
    Fixes: aac243092b70 ("accel/amdxdna: Add command execution")
    Reviewed-by: Mario Limonciello (AMD) <[email protected]>
    Signed-off-by: Lizhi Hou <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

accel/amdxdna: Fix incorrect command state for timed out job [+ + +]
Author: Lizhi Hou <[email protected]>
Date:   Wed Oct 29 12:34:23 2025 -0700

    accel/amdxdna: Fix incorrect command state for timed out job
    
    [ Upstream commit 6fb7f298883246e21f60f971065adcb789ae6eba ]
    
    When a command times out, mark it as ERT_CMD_STATE_TIMEOUT. Any other
    commands that are canceled due to this timeout should be marked as
    ERT_CMD_STATE_ABORT.
    
    Fixes: aac243092b70 ("accel/amdxdna: Add command execution")
    Reviewed-by: Mario Limonciello (AMD) <[email protected]>
    Signed-off-by: Lizhi Hou <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
accel/ivpu: Ensure rpm_runtime_put in case of engine reset/resume fail [+ + +]
Author: Karol Wachowski <[email protected]>
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 <[email protected]>
    Signed-off-by: Karol Wachowski <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

accel/ivpu: Fix DCT active percent format [+ + +]
Author: Karol Wachowski <[email protected]>
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 <[email protected]>
    Signed-off-by: Karol Wachowski <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

accel/ivpu: Fix page fault in ivpu_bo_unbind_all_bos_from_context() [+ + +]
Author: Jacek Lawrynowicz <[email protected]>
Date:   Thu Sep 25 16:51:14 2025 +0200

    accel/ivpu: Fix page fault in ivpu_bo_unbind_all_bos_from_context()
    
    [ Upstream commit 8b694b405a84696f1d964f6da7cf9721e68c4714 ]
    
    Don't add BO to the vdev->bo_list in ivpu_gem_create_object().
    When failure happens inside drm_gem_shmem_create(), the BO is not
    fully created and ivpu_gem_bo_free() callback will not be called
    causing a deleted BO to be left on the list.
    
    Fixes: 8d88e4cdce4f ("accel/ivpu: Use GEM shmem helper for all buffers")
    Signed-off-by: Jacek Lawrynowicz <[email protected]>
    Signed-off-by: Maciej Falkowski <[email protected]>
    Reviewed-by: Karol Wachowski <[email protected]>
    Signed-off-by: Karol Wachowski <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

accel/ivpu: Fix race condition when mapping dmabuf [+ + +]
Author: Wludzik, Jozef <[email protected]>
Date:   Tue Oct 14 09:17:25 2025 +0200

    accel/ivpu: Fix race condition when mapping dmabuf
    
    [ Upstream commit 63c7870fab67b2ab2bfe75e8b46f3c37b88c47a8 ]
    
    Fix a race that can occur when multiple jobs submit the same dmabuf.
    This could cause the sg_table to be mapped twice, leading to undefined
    behavior.
    
    Fixes: e0c0891cd63b ("accel/ivpu: Rework bind/unbind of imported buffers")
    Signed-off-by: Wludzik, Jozef <[email protected]>
    Reviewed-by: Jeff Hugo <[email protected]>
    Signed-off-by: Karol Wachowski <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

accel/ivpu: Fix race condition when unbinding BOs [+ + +]
Author: Tomasz Rusinowicz <[email protected]>
Date:   Wed Oct 29 08:14:51 2025 +0100

    accel/ivpu: Fix race condition when unbinding BOs
    
    [ Upstream commit 00812636df370bedf4e44a0c81b86ea96bca8628 ]
    
    Fix 'Memory manager not clean during takedown' warning that occurs
    when ivpu_gem_bo_free() removes the BO from the BOs list before it
    gets unmapped. Then file_priv_unbind() triggers a warning in
    drm_mm_takedown() during context teardown.
    
    Protect the unmapping sequence with bo_list_lock to ensure the BO is
    always fully unmapped when removed from the list. This ensures the BO
    is either fully unmapped at context teardown time or present on the
    list and unmapped by file_priv_unbind().
    
    Fixes: 48aea7f2a2ef ("accel/ivpu: Fix locking in ivpu_bo_remove_all_bos_from_context()")
    Signed-off-by: Tomasz Rusinowicz <[email protected]>
    Reviewed-by: Jeff Hugo <[email protected]>
    Signed-off-by: Karol Wachowski <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

accel/ivpu: Make function parameter names consistent [+ + +]
Author: Jacek Lawrynowicz <[email protected]>
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 <[email protected]>
    Signed-off-by: Jacek Lawrynowicz <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Stable-dep-of: aa1c2b073ad2 ("accel/ivpu: Fix DCT active percent format")
    Signed-off-by: Sasha Levin <[email protected]>

accel/ivpu: Remove skip of dma unmap for imported buffers [+ + +]
Author: Maciej Falkowski <[email protected]>
Date:   Mon Oct 27 16:09:32 2025 +0100

    accel/ivpu: Remove skip of dma unmap for imported buffers
    
    [ Upstream commit c063c1bbee67391f12956d2ffdd5da00eb87ff79 ]
    
    Rework of imported buffers introduced in the commit
    e0c0891cd63b ("accel/ivpu: Rework bind/unbind of imported buffers")
    switched the logic of imported buffers by dma mapping/unmapping
    them just as the regular buffers.
    
    The commit didn't include removal of skipping dma unmap of imported
    buffers which results in them being mapped without unmapping.
    
    Fixes: e0c0891cd63b ("accel/ivpu: Rework bind/unbind of imported buffers")
    Reviewed-by: Jeff Hugo <[email protected]>
    Reviewed-by: Karol Wachowski <[email protected]>
    Signed-off-by: Maciej Falkowski <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

accel/ivpu: Rework bind/unbind of imported buffers [+ + +]
Author: Jacek Lawrynowicz <[email protected]>
Date:   Thu Sep 25 16:50:59 2025 +0200

    accel/ivpu: Rework bind/unbind of imported buffers
    
    [ Upstream commit e0c0891cd63bf8338c25c423e28a5a93aed3d74c ]
    
    Ensure that imported buffers are properly mapped and unmapped in
    the same way as regular buffers to properly handle buffers during
    device's bind and unbind operations to prevent resource leaks and
    inconsistent buffer states.
    
    Imported buffers are now dma_mapped before submission and
    dma_unmapped in ivpu_bo_unbind(), guaranteeing they are unmapped
    when the device is unbound.
    
    Add also imported buffers to vdev->bo_list for consistent unmapping
    on device unbind. The bo->ctx_id is set in open() so imported
    buffers have a valid context ID.
    
    Debug logs have been updated to match the new code structure.
    The function ivpu_bo_pin() has been renamed to ivpu_bo_bind()
    to better reflect its purpose, and unbind tests have been refactored
    for improved coverage and clarity.
    
    Signed-off-by: Jacek Lawrynowicz <[email protected]>
    Signed-off-by: Maciej Falkowski <[email protected]>
    Reviewed-by: Karol Wachowski <[email protected]>
    Signed-off-by: Karol Wachowski <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Stable-dep-of: 8b694b405a84 ("accel/ivpu: Fix page fault in ivpu_bo_unbind_all_bos_from_context()")
    Signed-off-by: Sasha Levin <[email protected]>

 
ACPI: processor_core: fix map_x2apic_id for amd-pstate on am4 [+ + +]
Author: René Rebe <[email protected]>
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 <[email protected]>
    [ rjw: Changelog edits ]
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Rafael J. Wysocki <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ACPI: property: Fix fwnode refcount leak in acpi_fwnode_graph_parse_endpoint() [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Reviewed-by: Sakari Ailus <[email protected]>
    [ rjw: Changelog edits ]
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Rafael J. Wysocki <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
ALSA: dice: fix buffer overflow in detect_stream_formats() [+ + +]
Author: Junrui Luo <[email protected]>
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 <[email protected]>
    Reported-by: Junrui Luo <[email protected]>
    Fixes: 58579c056c1c ("ALSA: dice: use extended protocol to detect available stream formats")
    Cc: [email protected]
    Reviewed-by: Takashi Sakamoto <[email protected]>
    Signed-off-by: Junrui Luo <[email protected]>
    Link: https://patch.msgid.link/SYBPR01MB7881B043FC68B4C0DA40B73DAFDCA@SYBPR01MB7881.ausprd01.prod.outlook.com
    Signed-off-by: Takashi Iwai <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

ALSA: firewire-motu: add bounds check in put_user loop for DSP events [+ + +]
Author: Junrui Luo <[email protected]>
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 <[email protected]>
    Fixes: 634ec0b2906e ("ALSA: firewire-motu: notify event for parameter change in register DSP model")
    Signed-off-by: Junrui Luo <[email protected]>
    Link: https://patch.msgid.link/SYBPR01MB788112C72AF8A1C8C448B4B8AFA3A@SYBPR01MB7881.ausprd01.prod.outlook.com
    Signed-off-by: Takashi Iwai <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ALSA: firewire-motu: fix buffer overflow in hwdep read for DSP events [+ + +]
Author: Junrui Luo <[email protected]>
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 <[email protected]>
    Reported-by: Junrui Luo <[email protected]>
    Fixes: 634ec0b2906e ("ALSA: firewire-motu: notify event for parameter change in register DSP model")
    Signed-off-by: Junrui Luo <[email protected]>
    Link: https://patch.msgid.link/SYBPR01MB78810656377E79E58350D951AFD9A@SYBPR01MB7881.ausprd01.prod.outlook.com
    Signed-off-by: Takashi Iwai <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ALSA: hda/realtek: Add match for ASUS Xbox Ally projects [+ + +]
Author: Antheas Kapenekakis <[email protected]>
Date:   Sun Oct 26 20:16:35 2025 +0100

    ALSA: hda/realtek: Add match for ASUS Xbox Ally projects
    
    commit 18a4895370a79a3efb4a53ccd1efffef6c5b634e upstream.
    
    Bind the realtek codec to TAS2781 I2C audio amps on ASUS Xbox Ally
    projects. While these projects work without a quirk, adding it increases
    the output volume significantly.
    
    Cc: [email protected] # 6.17
    Signed-off-by: Antheas Kapenekakis <[email protected]>
    Signed-off-by: Takashi Iwai <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

ALSA: hda/tas2781: fix speaker id retrieval for multiple probes [+ + +]
Author: Antheas Kapenekakis <[email protected]>
Date:   Sun Oct 26 20:16:34 2025 +0100

    ALSA: hda/tas2781: fix speaker id retrieval for multiple probes
    
    commit 945865a0ddf3e3950aea32e23e10d815ee9b21bc upstream.
    
    Currently, on ASUS projects, the TAS2781 codec attaches the speaker GPIO
    to the first tasdevice_priv instance using devm. This causes
    tas2781_read_acpi to fail on subsequent probes since the GPIO is already
    managed by the first device. This causes a failure on Xbox Ally X,
    because it has two amplifiers, and prevents us from quirking both the
    Xbox Ally and Xbox Ally X in the realtek codec driver.
    
    It is unnecessary to attach the GPIO to a device as it is static.
    Therefore, instead of attaching it and then reading it when loading the
    firmware, read its value directly in tas2781_read_acpi and store it in
    the private data structure. Then, make reading the value non-fatal so
    that ASUS projects that miss a speaker pin can still work, perhaps using
    fallback firmware.
    
    Fixes: 4e7035a75da9 ("ALSA: hda/tas2781: Add speaker id check for ASUS projects")
    Cc: [email protected] # 6.17
    Signed-off-by: Antheas Kapenekakis <[email protected]>
    Reviewed-by: Baojun Xu <[email protected]>
    Signed-off-by: Takashi Iwai <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

ALSA: hda: cs35l41: Fix NULL pointer dereference in cs35l41_hda_read_acpi() [+ + +]
Author: Denis Arefev <[email protected]>
Date:   Tue Dec 2 13:13:36 2025 +0300

    ALSA: hda: cs35l41: Fix NULL pointer dereference in cs35l41_hda_read_acpi()
    
    commit c34b04cc6178f33c08331568c7fd25c5b9a39f66 upstream.
    
    The acpi_get_first_physical_node() function can return NULL, in which
    case the get_device() function also returns NULL, but this value is
    then dereferenced without checking,so add a check to prevent a crash.
    
    Found by Linux Verification Center (linuxtesting.org) with SVACE.
    
    Fixes: 7b2f3eb492da ("ALSA: hda: cs35l41: Add support for CS35L41 in HDA systems")
    Cc: [email protected]
    Signed-off-by: Denis Arefev <[email protected]>
    Reviewed-by: Richard Fitzgerald <[email protected]>
    Signed-off-by: Takashi Iwai <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

ALSA: uapi: Fix typo in asound.h comment [+ + +]
Author: Andres J Rosa <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Takashi Iwai <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ALSA: wavefront: Fix integer overflow in sample size validation [+ + +]
Author: Junrui Luo <[email protected]>
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: [email protected]
    Signed-off-by: Junrui Luo <[email protected]>
    Link: https://patch.msgid.link/SYBPR01MB7881B47789D1B060CE8BF4C3AFC2A@SYBPR01MB7881.ausprd01.prod.outlook.com
    Signed-off-by: Takashi Iwai <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
arm64: dts: exynos: gs101: fix sysreg_apm reg property [+ + +]
Author: Peter Griffin <[email protected]>
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 <[email protected]>
    Reviewed-by: André Draszik <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: freescale: imx8mp-venice-gw7905-2x: remove duplicate usdhc1 props [+ + +]
Author: Tim Harvey <[email protected]>
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 <[email protected]>
    Reviewed-by: Peng Fan <[email protected]>
    Signed-off-by: Shawn Guo <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: imx8mm-venice-gw72xx: remove unused sdhc1 pinctrl [+ + +]
Author: Tim Harvey <[email protected]>
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 <[email protected]>
    Reviewed-by: Peng Fan <[email protected]>
    Signed-off-by: Shawn Guo <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: imx8mp-venice-gw702x: remove off-board sdhc1 [+ + +]
Author: Tim Harvey <[email protected]>
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 <[email protected]>
    Reviewed-by: Peng Fan <[email protected]>
    Signed-off-by: Shawn Guo <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: imx8mp-venice-gw702x: remove off-board uart [+ + +]
Author: Tim Harvey <[email protected]>
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 <[email protected]>
    Reviewed-by: Peng Fan <[email protected]>
    Signed-off-by: Shawn Guo <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: imx95-15x15-evk: add fan-supply property for pwm-fan [+ + +]
Author: Joy Zou <[email protected]>
Date:   Fri Sep 19 10:27:04 2025 +0800

    arm64: dts: imx95-15x15-evk: add fan-supply property for pwm-fan
    
    [ Upstream commit 93b2fac5cdaf0d501d04c9a4b0e5024632a6af7c ]
    
    Add fan-supply regulator to pwm-fan node to specify power source.
    
    Fixes: e3e8b199aff8 ("arm64: dts: imx95: Add imx95-15x15-evk support")
    Signed-off-by: Joy Zou <[email protected]>
    Reviewed-by: Frank Li <[email protected]>
    Signed-off-by: Shawn Guo <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: imx95-tqma9596sa: fix TPM5 pinctrl node name [+ + +]
Author: Markus Niebel <[email protected]>
Date:   Thu Oct 30 13:49:08 2025 +0100

    arm64: dts: imx95-tqma9596sa: fix TPM5 pinctrl node name
    
    [ Upstream commit 046cb64923e8c05a8fb656baffcd8c3fc67fb688 ]
    
    tpm4grp will be overwritten. Fix node name
    
    Fixes: 91d1ff322c47 ("arm64: dt: imx95: Add TQMa95xxSA")
    Signed-off-by: Markus Niebel <[email protected]>
    Signed-off-by: Alexander Stein <[email protected]>
    Signed-off-by: Shawn Guo <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: imx95-tqma9596sa: reduce maximum FlexSPI frequency to 66MHz [+ + +]
Author: Alexander Stein <[email protected]>
Date:   Thu Oct 30 13:49:09 2025 +0100

    arm64: dts: imx95-tqma9596sa: reduce maximum FlexSPI frequency to 66MHz
    
    [ Upstream commit 461be3802562b2d41250b40868310579a32f32c1 ]
    
    66 MHz is the maximum FlexPI clock frequency in normal/overdrive mode
    when RXCLKSRC = 0 (Default)
    
    Fixes: 91d1ff322c47 ("arm64: dt: imx95: Add TQMa95xxSA")
    Signed-off-by: Alexander Stein <[email protected]>
    Signed-off-by: Shawn Guo <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: msm8996: add interconnect paths to USB2 controller [+ + +]
Author: Dmitry Baryshkov <[email protected]>
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 <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Acked-by: Bjorn Andersson <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Georgi Djakov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: qcm2290: Add CCI node [+ + +]
Author: Loic Poulain <[email protected]>
Date:   Thu Sep 11 23:21:02 2025 +0200

    arm64: dts: qcom: qcm2290: Add CCI node
    
    [ Upstream commit e645096d1f6dadcead09c722a3fbc6c44a45fece ]
    
    Add Camera Control Interface (CCI), supporting two I2C masters.
    
    Signed-off-by: Loic Poulain <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Stable-dep-of: 67445dc8a806 ("arm64: dts: qcom: qcm2290: Fix camss register prop ordering")
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: qcm2290: Fix camss register prop ordering [+ + +]
Author: Loic Poulain <[email protected]>
Date:   Thu Sep 18 17:54:56 2025 +0200

    arm64: dts: qcom: qcm2290: Fix camss register prop ordering
    
    [ Upstream commit 67445dc8a8060309eeb7aebbc41fa0e58302fc09 ]
    
    The qcm2290 CAMSS node has been applied from the V4 series, but a later
    version changed the order of the register property, fix it to prevent
    dtb check error.
    
    Fixes: 2b3aef30dd9d ("arm64: dts: qcom: qcm2290: Add CAMSS node")
    Signed-off-by: Loic Poulain <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: qcm6490-fairphone-fp5: Add supplies to simple-fb node [+ + +]
Author: Luca Weiss <[email protected]>
Date:   Tue Sep 30 15:57:01 2025 +0200

    arm64: dts: qcom: qcm6490-fairphone-fp5: Add supplies to simple-fb node
    
    [ Upstream commit 3d4142cac46b4dde4e60908c509c4cf107067114 ]
    
    Add the OLED power supplies to the simple-framebuffer node, so that
    the regulators don't get turned off while the simple-fb is being used.
    
    Fixes: c365a026155c ("arm64: dts: qcom: qcm6490-fairphone-fp5: Enable display")
    Signed-off-by: Luca Weiss <[email protected]>
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: qcm6490-shift-otter: Add missing reserved-memory [+ + +]
Author: Alexander Martinz <[email protected]>
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 <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Signed-off-by: Luca Weiss <[email protected]>
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: qrb2210-rb1: Fix UART3 wakeup IRQ storm [+ + +]
Author: Praveen Talari <[email protected]>
Date:   Mon Nov 10 15:40:40 2025 +0530

    arm64: dts: qcom: qrb2210-rb1: Fix UART3 wakeup IRQ storm
    
    [ Upstream commit 9c92d36b0b1ea8b2a19dbe0416434f3491dbfaaf ]
    
    For BT use cases, pins are configured with pull-up state in sleep state
    to avoid noise. If IRQ type is configured as level high and the GPIO line
    is also in a high state, it causes continuous interrupt assertions leading
    to an IRQ storm when wakeup irq enables at system suspend/runtime suspend.
    
    Switching to edge-triggered interrupt (IRQ_TYPE_EDGE_FALLING) resolves
    this by only triggering on state transitions (high-to-low) rather than
    maintaining sensitivity to the static level state, effectively preventing
    the continuous interrupt condition and eliminating the wakeup IRQ storm.
    
    Fixes: 9380e0a1d449 ("arm64: dts: qcom: qrb2210-rb1: add Bluetooth support")
    Signed-off-by: Praveen Talari <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: sdm845-oneplus: Correct gpio used for slider [+ + +]
Author: Gergo Koteles <[email protected]>
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 <[email protected]>
    Signed-off-by: David Heidelberg <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: sdm845-starqltechn: Fix i2c-gpio node name [+ + +]
Author: Konrad Dybcio <[email protected]>
Date:   Wed Oct 15 18:32:16 2025 +0200

    arm64: dts: qcom: sdm845-starqltechn: Fix i2c-gpio node name
    
    [ Upstream commit 6030fa06360b8b8d898b66ac156adaaf990b83cb ]
    
    Fix the following DT checker warning:
    
    $nodename:0: 'i2c21' does not match '^i2c(@.+|-[a-z0-9]+)?$'
    
    Fixes: 3a4600448bef ("arm64: dts: qcom: sdm845-starqltechn: add display PMIC")
    Signed-off-by: Konrad Dybcio <[email protected]>
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Link: https://lore.kernel.org/r/20251015-topic-starltechn_i2c_gpio-v1-1-6d303184ee87@oss.qualcomm.com
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts [+ + +]
Author: Dzmitry Sankouski <[email protected]>
Date:   Fri Sep 26 20:13:27 2025 +0300

    arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts
    
    [ Upstream commit 4372b15d89e253e40816f0bde100890cddd25a81 ]
    
    Since max77705 has a register, which indicates interrupt source, it acts
    as an interrupt controller.
    
    Direct MAX77705's subdevices to use the IC's internal interrupt
    controller, instead of listening to every interrupt fired by the
    chip towards the host device.
    
    Fixes: 7a88a931d095 ("arm64: dts: qcom: sdm845-starqltechn: add max77705 PMIC")
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Signed-off-by: Dzmitry Sankouski <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Link: https://lore.kernel.org/r/20250926-starqltechn-correct_max77705_nodes-v5-2-c6ab35165534@gmail.com
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells [+ + +]
Author: Dzmitry Sankouski <[email protected]>
Date:   Fri Sep 26 20:13:26 2025 +0300

    arm64: dts: qcom: sdm845-starqltechn: remove (address|size)-cells
    
    [ Upstream commit 4133486382364f60ea7e4f2c9070555689d9606e ]
    
    Drop the unused address/size-cells properties to silence the DT
    checker warning:
    
    pmic@66 (maxim,max77705): '#address-cells', '#size-cells' do not
    match any of the regexes: '^pinctrl-[0-9]+$'
    
    Fixes: 7a88a931d095 ("arm64: dts: qcom: sdm845-starqltechn: add max77705 PMIC")
    Reviewed-by: Konrad Dybcio <[email protected]>
    Signed-off-by: Dzmitry Sankouski <[email protected]>
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Link: https://lore.kernel.org/r/20250926-starqltechn-correct_max77705_nodes-v5-1-c6ab35165534@gmail.com
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: sm8650: set ufs as dma coherent [+ + +]
Author: Neil Armstrong <[email protected]>
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 <[email protected]>
    Reviewed-by: Krzysztof Kozlowski <[email protected]>
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Link: https://lore.kernel.org/r/20251007-topic-sm8650-upstream-ufs-dma-coherent-v1-1-f3cfeaee04ce@linaro.org
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: starqltechn: remove extra empty line [+ + +]
Author: Eric Gonçalves <[email protected]>
Date:   Thu Aug 28 20:49:28 2025 +0000

    arm64: dts: qcom: starqltechn: remove extra empty line
    
    [ Upstream commit 6e71c5812856d67881572159098f701184c9356a ]
    
    Remove empty white line ine starqltechn device tree at the end of
    max77705_charger node.
    
    Signed-off-by: Eric Gonçalves <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Stable-dep-of: 4372b15d89e2 ("arm64: dts: qcom: sdm845-starqltechn: fix max77705 interrupts")
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: x1e80100: Add missing quirk for HS only USB controller [+ + +]
Author: Krishna Kurapati <[email protected]>
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 <[email protected]>
    Reviewed-by: Abel Vesa <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: qcom: x1e80100: Fix compile warnings for USB HS controller [+ + +]
Author: Krishna Kurapati <[email protected]>
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 <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: renesas: sparrow-hawk: Fix full-size DP connector node name and labels [+ + +]
Author: Marek Vasut <[email protected]>
Date:   Mon Oct 27 19:45:53 2025 +0100

    arm64: dts: renesas: sparrow-hawk: Fix full-size DP connector node name and labels
    
    [ Upstream commit 9d22a34a016313137b9e534a918f1f9aa790aa69 ]
    
    The DisplayPort connector on Retronix R-Car V4H Sparrow Hawk board
    is a full-size DisplayPort connector. Fix the copy-paste error and
    update the DT node name and labels accordingly. No functional change.
    
    Fixes: a719915e76f2 ("arm64: dts: renesas: r8a779g3: Add Retronix R-Car V4H Sparrow Hawk board support")
    Signed-off-by: Marek Vasut <[email protected]>
    Reviewed-by: Niklas Söderlund <[email protected]>
    Reviewed-by: Geert Uytterhoeven <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: rockchip: Add eeprom vcc-supply for Radxa ROCK 3C [+ + +]
Author: FUKAUMI Naoki <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Heiko Stuebner <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: rockchip: Add eeprom vcc-supply for Radxa ROCK 5A [+ + +]
Author: FUKAUMI Naoki <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Heiko Stuebner <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: rockchip: Move the EEPROM to correct I2C bus on Radxa ROCK 5A [+ + +]
Author: FUKAUMI Naoki <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Heiko Stuebner <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

arm64: dts: ti: k3-am62p: Fix memory ranges for GPU [+ + +]
Author: Randolph Sapp <[email protected]>
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 <[email protected]>
    Reviewed-by: Michael Walle <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Vignesh Raghavendra <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
ARM: 9464/1: fix input-only operand modification in load_unaligned_zeropad() [+ + +]
Author: Liyuan Pang <[email protected]>
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 <[email protected]>
    Signed-off-by: Xie Yuanbin <[email protected]>
    Signed-off-by: Liyuan Pang <[email protected]>
    Signed-off-by: Russell King (Oracle) <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ARM: dts: am335x-netcom-plus-2xx: add missing GPIO labels [+ + +]
Author: Yegor Yefremov <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Kevin Hilman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ARM: dts: omap3: beagle-xm: Correct obsolete TWL4030 power compatible [+ + +]
Author: Jihed Chaibi <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Kevin Hilman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ARM: dts: omap3: n900: Correct obsolete TWL4030 power compatible [+ + +]
Author: Jihed Chaibi <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Kevin Hilman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ARM: dts: renesas: gose: Remove superfluous port property [+ + +]
Author: Wolfram Sang <[email protected]>
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 <[email protected]>
    Reviewed-by: Geert Uytterhoeven <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ARM: dts: renesas: r9a06g032-rzn1d400-db: Drop invalid #cells properties [+ + +]
Author: Wolfram Sang <[email protected]>
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 <[email protected]>
    Reviewed-by: Geert Uytterhoeven <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ARM: dts: samsung: exynos4210-i9100: turn off SDIO WLAN chip during system suspend [+ + +]
Author: Marek Szyprowski <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ARM: dts: samsung: exynos4210-trats: turn off SDIO WLAN chip during system suspend [+ + +]
Author: Marek Szyprowski <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ARM: dts: samsung: exynos4412-midas: turn off SDIO WLAN chip during system suspend [+ + +]
Author: Marek Szyprowski <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ARM: dts: samsung: universal_c210: turn off SDIO WLAN chip during system suspend [+ + +]
Author: Marek Szyprowski <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ARM: dts: stm32: stm32mp157c-phycore: Fix STMPE811 touchscreen node properties [+ + +]
Author: Jihed Chaibi <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexandre Torgue <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
ASoC: ak4458: Disable regulator when error happens [+ + +]
Author: Shengjiu Wang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ASoC: ak5558: Disable regulator when error happens [+ + +]
Author: Shengjiu Wang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ASoC: amd: acp: Audio is not resuming after s0ix [+ + +]
Author: Hemalatha Pinnamreddy <[email protected]>
Date:   Wed Dec 3 12:16:48 2025 +0530

    ASoC: amd: acp: Audio is not resuming after s0ix
    
    [ Upstream commit 3ee257aba1d56c3f0f1028669a8ad0f1a477f05b ]
    
    Audio fails to resume after system exits suspend mode
    due to accessing incorrect ring buffer address during
    resume. This patch resolves issue by selecting correct
    address based on the ACP version.
    
    Fixes: f6f7d25b11033 ("ASoC: amd: acp: Add pte configuration for ACP7.0 platform")
    Signed-off-by: Hemalatha Pinnamreddy <[email protected]>
    Signed-off-by: Raghavendra Prasad Mallela <[email protected]>
    Reviewed-by: Mario Limonciello (AMD) <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ASoC: amd: acp: update tdm channels for specific DAI [+ + +]
Author: Hemalatha Pinnamreddy <[email protected]>
Date:   Wed Dec 3 17:31:34 2025 +0530

    ASoC: amd: acp: update tdm channels for specific DAI
    
    [ Upstream commit f34836a8ddf9216ff919927cddb705022bf30aab ]
    
    TDM channel updates were applied to all DAIs, causing configurations
    to overwrite for unrelated streams. The logic is modified to update
    channels only for targeted DAI. This prevents corruption of other DAI
    settings and resolves audio issues observed during system suspend and
    resume cycles.
    
    Fixes: 12229b7e50cf ("ASoC: amd: acp: Add TDM support for acp i2s stream")
    Signed-off-by: Hemalatha Pinnamreddy <[email protected]>
    Signed-off-by: Raghavendra Prasad Mallela <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ASoC: bcm: bcm63xx-pcm-whistler: Check return value of of_dma_configure() [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ASoC: codecs: nau8325: Silence uninitialized variables warnings [+ + +]
Author: Krzysztof Kozlowski <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

ASoC: fsl_xcvr: clear the channel status control memory [+ + +]
Author: Shengjiu Wang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ASoC: Intel: catpt: Fix error path in hw_params() [+ + +]
Author: Cezary Rojewski <[email protected]>
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 <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ASoC: nau8325: add missing build config [+ + +]
Author: Jaroslav Kysela <[email protected]>
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 <[email protected]>
    
    Fixes: c0a3873b9938 ("ASoC: nau8325: new driver")
    Cc: Seven Lee <[email protected]>
    Signed-off-by: Jaroslav Kysela <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ASoC: nau8325: use simple i2c probe function [+ + +]
Author: Jaroslav Kysela <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Stable-dep-of: cd41d3420ef6 ("ASoC: nau8325: add missing build config")
    Signed-off-by: Sasha Levin <[email protected]>

ASoC: SDCA: Fix missing dash in HIDE DisCo property [+ + +]
Author: Charles Keepax <[email protected]>
Date:   Thu Nov 20 15:30:11 2025 +0000

    ASoC: SDCA: Fix missing dash in HIDE DisCo property
    
    [ Upstream commit 3508311f2e1c872b645f13c6fd52840418089d41 ]
    
    The property name is "mipi-sdca-RxUMP-ownership-transition-max-delay",
    with a dash between max and delay. Add the missing dash.
    
    Fixes: 13ef21dffe76 ("ASoC: SDCA: add support for HIDE entity properties and HID descriptor/report")
    Tested-by: Bard Liao <[email protected]>
    Reviewed-by: Maciej Strozek <[email protected]>
    Reviewed-by: Peter Ujfalusi <[email protected]>
    Tested-by: Richard Fitzgerald <[email protected]>
    Signed-off-by: Charles Keepax <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Reviewed-by: Vinod Koul <[email protected]>
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ASoC: tas2781: correct the wrong period [+ + +]
Author: Shenghao Ding <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
backlight: led-bl: Add devlink to supplier LEDs [+ + +]
Author: Luca Ceresoli <[email protected]>
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 <[email protected]>
    Reviewed-by: Daniel Thompson (RISCstar) <[email protected]>
    Reviewed-by: Herve Codina <[email protected]>
    Tested-by: Alexander Sverdlin <[email protected]>
    Link: https://patch.msgid.link/20250519-led-backlight-add-devlink-to-supplier-class-device-v6-1-845224aeb2ce@bootlin.com
    Signed-off-by: Lee Jones <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

backlight: lp855x: Fix lp855x.h kernel-doc warnings [+ + +]
Author: Randy Dunlap <[email protected]>
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 <[email protected]>
    Reviewed-by: Daniel Thompson (RISCstar) <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Lee Jones <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
blk-mq: Abort suspend when wakeup events are pending [+ + +]
Author: Cong Zhang <[email protected]>
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 <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
block/blk-throttle: Fix throttle slice time for SSDs [+ + +]
Author: Guenter Roeck <[email protected]>
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 <[email protected]>
    Cc: Tejun Heo <[email protected]>
    Signed-off-by: Guenter Roeck <[email protected]>
    Signed-off-by: Khazhismel Kumykov <[email protected]>
    Reviewed-by: Yu Kuai <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
block/mq-deadline: Introduce dd_start_request() [+ + +]
Author: Bart Van Assche <[email protected]>
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 <[email protected]>
    Cc: Yu Kuai <[email protected]>
    Cc: chengkaitao <[email protected]>
    Signed-off-by: Bart Van Assche <[email protected]>
    Reviewed-by: Damien Le Moal <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Stable-dep-of: d60055cf5270 ("block/mq-deadline: Switch back to a single dispatch list")
    Signed-off-by: Sasha Levin <[email protected]>

block/mq-deadline: Switch back to a single dispatch list [+ + +]
Author: Bart Van Assche <[email protected]>
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 <[email protected]>
    Cc: Yu Kuai <[email protected]>
    Reported-by: chengkaitao <[email protected]>
    Closes: https://lore.kernel.org/linux-block/[email protected]/
    Fixes: c807ab520fc3 ("block/mq-deadline: Add I/O priority support")
    Signed-off-by: Bart Van Assche <[email protected]>
    Reviewed-by: Damien Le Moalv <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
block: fix comment for op_is_zone_mgmt() to include RESET_ALL [+ + +]
Author: shechenglong <[email protected]>
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 <[email protected]>
    Reviewed-by: Damien Le Moal <[email protected]>
    Reviewed-by: Johannes Thumshirn <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

block: fix memory leak in __blkdev_issue_zero_pages [+ + +]
Author: Shaurya Rane <[email protected]>
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: [email protected]
    Closes: https://syzkaller.appspot.com/bug?extid=527a7e48a3d3d315d862
    Signed-off-by: Shaurya Rane <[email protected]>
    Reviewed-by: Keith Busch <[email protected]>
    Tested-by: [email protected]
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

block: Use RCU in blk_mq_[un]quiesce_tagset() instead of set->tag_list_lock [+ + +]
Author: Mohamed Khalfella <[email protected]>
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 <[email protected]>
    Fixes: 98d81f0df70c ("nvme: use blk_mq_[un]quiesce_tagset")
    Reviewed-by: Ming Lei <[email protected]>
    Reviewed-by: Bart Van Assche <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
bpf: Check skb->transport_header is set in bpf_skb_check_mtu [+ + +]
Author: Martin KaFai Lau <[email protected]>
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 <[email protected]>
    Reported-by: Kaiyan Mei <[email protected]>
    Reported-by: Yinhao Hu <[email protected]>
    Signed-off-by: Martin KaFai Lau <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

bpf: Cleanup unused func args in rqspinlock implementation [+ + +]
Author: Siddharth Chintamaneni <[email protected]>
Date:   Wed Oct 1 17:27:02 2025 +0000

    bpf: Cleanup unused func args in rqspinlock implementation
    
    [ Upstream commit 56b4d162392dda2365fbc1f482184a24b489d07d ]
    
    cleanup unused function args in check_deadlock* functions.
    
    Fixes: 31158ad02ddb ("rqspinlock: Add deadlock detection and recovery")
    Signed-off-by: Siddharth Chintamaneni <[email protected]>
    Reviewed-by: Eduard Zingerman <[email protected]>
    Acked-by: Kumar Kartikeya Dwivedi <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

bpf: Fix invalid prog->stats access when update_effective_progs fails [+ + +]
Author: Pu Lehui <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

bpf: Fix stackmap overflow check in __bpf_get_stackid() [+ + +]
Author: Arnaud Lecomte <[email protected]>
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: [email protected]
    Signed-off-by: Arnaud Lecomte <[email protected]>
    Signed-off-by: Andrii Nakryiko <[email protected]>
    Acked-by: Yonghong Song <[email protected]>
    Acked-by: Song Liu <[email protected]>
    Link: https://lore.kernel.org/bpf/[email protected]
    
    Closes: https://syzkaller.appspot.com/bug?extid=c9b724fbb41cf2538b7b
    Signed-off-by: Sasha Levin <[email protected]>

bpf: Free special fields when update [lru_,]percpu_hash maps [+ + +]
Author: Leon Hwang <[email protected]>
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 <[email protected]>
    Acked-by: Yonghong Song <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

bpf: Handle return value of ftrace_set_filter_ip in register_fentry [+ + +]
Author: Menglong Dong <[email protected]>
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 <[email protected]>
    Acked-by: Song Liu <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

bpf: Prevent nesting overflow in bpf_try_get_buffers [+ + +]
Author: Sahil Chandna <[email protected]>
Date:   Fri Nov 14 12:19:22 2025 +0530

    bpf: Prevent nesting overflow in bpf_try_get_buffers
    
    [ Upstream commit c1da3df7191f1b4df9256bcd30d78f78201e1d17 ]
    
    bpf_try_get_buffers() returns one of multiple per-CPU buffers based on a
    per-CPU nesting counter. This mechanism expects that buffers are not
    endlessly acquired before being returned. migrate_disable() ensures that a
    task remains on the same CPU, but it does not prevent the task from being
    preempted by another task on that CPU.
    
    Without disabled preemption, a task may be preempted while holding a
    buffer, allowing another task to run on same CPU and acquire an
    additional buffer. Several such preemptions can cause the per-CPU
    nest counter to exceed MAX_BPRINTF_NEST_LEVEL and trigger the warning in
    bpf_try_get_buffers(). Adding preempt_disable()/preempt_enable() around
    buffer acquisition and release prevents this task preemption and
    preserves the intended bounded nesting behavior.
    
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/all/[email protected]/
    Fixes: 4223bf833c849 ("bpf: Remove preempt_disable in bpf_try_get_buffers")
    Suggested-by: Yonghong Song <[email protected]>
    Reviewed-by: Sebastian Andrzej Siewior <[email protected]>
    Signed-off-by: Sahil Chandna <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

bpf: Refactor stack map trace depth calculation into helper function [+ + +]
Author: Arnaud Lecomte <[email protected]>
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 <[email protected]>
    Signed-off-by: Andrii Nakryiko <[email protected]>
    Acked-by: Yonghong Song <[email protected]>
    Acked-by: Song Liu <[email protected]>
    Link: https://lore.kernel.org/bpf/[email protected]
    Stable-dep-of: 23f852daa4ba ("bpf: Fix stackmap overflow check in __bpf_get_stackid()")
    Signed-off-by: Sasha Levin <[email protected]>

 
btrfs: fix double free of qgroup record after failure to add delayed ref head [+ + +]
Author: Miquel Sabaté Solà <[email protected]>
Date:   Wed Oct 1 20:05:03 2025 +0200

    btrfs: fix double free of qgroup record after failure to add delayed ref head
    
    [ Upstream commit 725e46298876a2cc1f1c3fb22ba69d29102c3ddf ]
    
    In the previous code it was possible to incur into a double kfree()
    scenario when calling add_delayed_ref_head(). This could happen if the
    record was reported to already exist in the
    btrfs_qgroup_trace_extent_nolock() call, but then there was an error
    later on add_delayed_ref_head(). In this case, since
    add_delayed_ref_head() returned an error, the caller went to free the
    record. Since add_delayed_ref_head() couldn't set this kfree'd pointer
    to NULL, then kfree() would have acted on a non-NULL 'record' object
    which was pointing to memory already freed by the callee.
    
    The problem comes from the fact that the responsibility to kfree the
    object is on both the caller and the callee at the same time. Hence, the
    fix for this is to shift the ownership of the 'qrecord' object out of
    the add_delayed_ref_head(). That is, we will never attempt to kfree()
    the given object inside of this function, and will expect the caller to
    act on the 'qrecord' object on its own. The only exception where the
    'qrecord' object cannot be kfree'd is if it was inserted into the
    tracing logic, for which we already have the 'qrecord_inserted_ret'
    boolean to account for this. Hence, the caller has to kfree the object
    only if add_delayed_ref_head() reports not to have inserted it on the
    tracing logic.
    
    As a side-effect of the above, we must guarantee that
    'qrecord_inserted_ret' is properly initialized at the start of the
    function, not at the end, and then set when an actual insert
    happens. This way we avoid 'qrecord_inserted_ret' having an invalid
    value on an early exit.
    
    The documentation from the add_delayed_ref_head() has also been updated
    to reflect on the exact ownership of the 'qrecord' object.
    
    Fixes: 6ef8fbce0104 ("btrfs: fix missing error handling when adding delayed ref with qgroups enabled")
    Reviewed-by: Filipe Manana <[email protected]>
    Signed-off-by: Miquel Sabaté Solà <[email protected]>
    Signed-off-by: Filipe Manana <[email protected]>
    Signed-off-by: David Sterba <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

btrfs: fix leaf leak in an error path in btrfs_del_items() [+ + +]
Author: Filipe Manana <[email protected]>
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 <[email protected]>
    Signed-off-by: Filipe Manana <[email protected]>
    Reviewed-by: David Sterba <[email protected]>
    Signed-off-by: David Sterba <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

btrfs: fix racy bitfield write in btrfs_clear_space_info_full() [+ + +]
Author: Boris Burkov <[email protected]>
Date:   Wed Oct 1 17:20:22 2025 -0700

    btrfs: fix racy bitfield write in btrfs_clear_space_info_full()
    
    [ Upstream commit 38e818718c5e04961eea0fa8feff3f100ce40408 ]
    
    From the memory-barriers.txt document regarding memory barrier ordering
    guarantees:
    
     (*) These guarantees do not apply to bitfields, because compilers often
         generate code to modify these using non-atomic read-modify-write
         sequences.  Do not attempt to use bitfields to synchronize parallel
         algorithms.
    
     (*) Even in cases where bitfields are protected by locks, all fields
         in a given bitfield must be protected by one lock.  If two fields
         in a given bitfield are protected by different locks, the compiler's
         non-atomic read-modify-write sequences can cause an update to one
         field to corrupt the value of an adjacent field.
    
    btrfs_space_info has a bitfield sharing an underlying word consisting of
    the fields full, chunk_alloc, and flush:
    
    struct btrfs_space_info {
            struct btrfs_fs_info *     fs_info;              /*     0     8 */
            struct btrfs_space_info *  parent;               /*     8     8 */
            ...
            int                        clamp;                /*   172     4 */
            unsigned int               full:1;               /*   176: 0  4 */
            unsigned int               chunk_alloc:1;        /*   176: 1  4 */
            unsigned int               flush:1;              /*   176: 2  4 */
            ...
    
    Therefore, to be safe from parallel read-modify-writes losing a write to
    one of the bitfield members protected by a lock, all writes to all the
    bitfields must use the lock. They almost universally do, except for
    btrfs_clear_space_info_full() which iterates over the space_infos and
    writes out found->full = 0 without a lock.
    
    Imagine that we have one thread completing a transaction in which we
    finished deleting a block_group and are thus calling
    btrfs_clear_space_info_full() while simultaneously the data reclaim
    ticket infrastructure is running do_async_reclaim_data_space():
    
              T1                                             T2
    btrfs_commit_transaction
      btrfs_clear_space_info_full
      data_sinfo->full = 0
      READ: full:0, chunk_alloc:0, flush:1
                                                  do_async_reclaim_data_space(data_sinfo)
                                                  spin_lock(&space_info->lock);
                                                  if(list_empty(tickets))
                                                    space_info->flush = 0;
                                                    READ: full: 0, chunk_alloc:0, flush:1
                                                    MOD/WRITE: full: 0, chunk_alloc:0, flush:0
                                                    spin_unlock(&space_info->lock);
                                                    return;
      MOD/WRITE: full:0, chunk_alloc:0, flush:1
    
    and now data_sinfo->flush is 1 but the reclaim worker has exited. This
    breaks the invariant that flush is 0 iff there is no work queued or
    running. Once this invariant is violated, future allocations that go
    into __reserve_bytes() will add tickets to space_info->tickets but will
    see space_info->flush is set to 1 and not queue the work. After this,
    they will block forever on the resulting ticket, as it is now impossible
    to kick the worker again.
    
    I also confirmed by looking at the assembly of the affected kernel that
    it is doing RMW operations. For example, to set the flush (3rd) bit to 0,
    the assembly is:
      andb    $0xfb,0x60(%rbx)
    and similarly for setting the full (1st) bit to 0:
      andb    $0xfe,-0x20(%rax)
    
    So I think this is really a bug on practical systems.  I have observed
    a number of systems in this exact state, but am currently unable to
    reproduce it.
    
    Rather than leaving this footgun lying around for the future, take
    advantage of the fact that there is room in the struct anyway, and that
    it is already quite large and simply change the three bitfield members to
    bools. This avoids writes to space_info->full having any effect on
    writes to space_info->flush, regardless of locking.
    
    Fixes: 957780eb2788 ("Btrfs: introduce ticketed enospc infrastructure")
    Reviewed-by: Qu Wenruo <[email protected]>
    Signed-off-by: Boris Burkov <[email protected]>
    Reviewed-by: David Sterba <[email protected]>
    Signed-off-by: David Sterba <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
cifs: Fix handling of a beyond-EOF DIO/unbuffered read over SMB1 [+ + +]
Author: David Howells <[email protected]>
Date:   Tue Dec 2 16:24:53 2025 +0000

    cifs: Fix handling of a beyond-EOF DIO/unbuffered read over SMB1
    
    [ Upstream commit 9d85ac939d52e93d80efb01a299c6f0bedb30487 ]
    
    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.
    
    This can be reproduced by mounting with "cache=none,sign,vers=1.0" and
    doing a read of a file that's significantly bigger than the size of the
    file (e.g. attempting to read 64KiB from a 16KiB file).
    
    Fixes: a68c74865f51 ("cifs: Fix SMB1 readv/writev callback in the same way as SMB2/3")
    Signed-off-by: David Howells <[email protected]>
    Reviewed-by: Paulo Alcantara (Red Hat) <[email protected]>
    cc: Shyam Prasad N <[email protected]>
    cc: [email protected]
    cc: [email protected]
    cc: [email protected]
    Signed-off-by: Steve French <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

cifs: Fix handling of a beyond-EOF DIO/unbuffered read over SMB2 [+ + +]
Author: David Howells <[email protected]>
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 <[email protected]>
    Reviewed-by: Paulo Alcantara (Red Hat) <[email protected]>
    cc: Shyam Prasad N <[email protected]>
    cc: [email protected]
    cc: [email protected]
    cc: [email protected]
    Signed-off-by: Steve French <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
cleanup: fix scoped_class() [+ + +]
Author: Christian Brauner <[email protected]>
Date:   Mon Nov 3 00:12:40 2025 +0100

    cleanup: fix scoped_class()
    
    [ Upstream commit 4e97bae1b412cd6ed8053b3d8a242122952985cc ]
    
    This is a class, not a guard so why on earth is it checking for guard
    pointers or conditional lock acquisition? None of it makes any sense at
    all.
    
    I'm not sure what happened back then. Maybe I had a brief psychedelic
    period that I completely forgot about and spaced out into a zone where
    that initial macro implementation made any sense at all.
    
    Link: https://patch.msgid.link/[email protected]
    Fixes: 5c21c5f22d07 ("cleanup: add a scoped version of CLASS()")
    Reviewed-by: Jens Axboe <[email protected]>
    Signed-off-by: Christian Brauner <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
clk: keystone: fix compile testing [+ + +]
Author: Johan Hovold <[email protected]>
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 <[email protected]>
    Signed-off-by: Stephen Boyd <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: qcom: camcc-sm6350: Fix PLL config of PLL2 [+ + +]
Author: Luca Weiss <[email protected]>
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 <[email protected]>
    Signed-off-by: Luca Weiss <[email protected]>
    Reviewed-by: Abel Vesa <[email protected]>
    Reviewed-by: Taniya Das <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: qcom: camcc-sm6350: Specify Titan GDSC power domain as a parent to other [+ + +]
Author: Vladimir Zapolskiy <[email protected]>
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 <[email protected]>
    Reviewed-by: Imran Shaik <[email protected]>
    Reviewed-by: Bryan O'Donoghue <[email protected]>
    Signed-off-by: Vladimir Zapolskiy <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: qcom: camcc-sm7150: Fix PLL config of PLL2 [+ + +]
Author: Luca Weiss <[email protected]>
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 <[email protected]>
    Signed-off-by: Luca Weiss <[email protected]>
    Reviewed-by: Abel Vesa <[email protected]>
    Reviewed-by: Taniya Das <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: qcom: camcc-sm8550: Specify Titan GDSC power domain as a parent to other [+ + +]
Author: Vladimir Zapolskiy <[email protected]>
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 <[email protected]>
    Reviewed-by: Imran Shaik <[email protected]>
    Reviewed-by: Bryan O'Donoghue <[email protected]>
    Signed-off-by: Vladimir Zapolskiy <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: qcom: gcc-ipq5424: Correct the icc_first_node_id [+ + +]
Author: Luo Jie <[email protected]>
Date:   Tue Oct 14 22:35:26 2025 +0800

    clk: qcom: gcc-ipq5424: Correct the icc_first_node_id
    
    [ Upstream commit 464ce94531f5a62ce29081a9d3c70eb4d525f443 ]
    
    Update to use the expected icc_first_node_id for registering the icc
    clocks, ensuring correct association of clocks with interconnect nodes.
    
    Fixes: 170f3d2c065e ("clk: qcom: ipq5424: Use icc-clk for enabling NoC related clocks")
    Reviewed-by: Konrad Dybcio <[email protected]>
    Signed-off-by: Luo Jie <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops [+ + +]
Author: Taniya Das <[email protected]>
Date:   Wed Oct 29 15:07:54 2025 +0530

    clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops
    
    [ Upstream commit 0820c9373369c83de5202871d02682d583a91a9c ]
    
    Fix "gcc_sdcc2_apps_clk_src: rcg didn't update its configuration" during
    boot. This happens due to the floor_ops tries to update the rcg
    configuration even if the clock is not enabled.
    The shared_floor_ops ensures that the RCG is safely parked and the new
    parent configuration is cached in the parked_cfg when the clock is off.
    
    Ensure to use the ops for the other SDCC clock instances as well.
    
    Fixes: 39d6dcf67fe9 ("clk: qcom: gcc: Add support for QCS615 GCC clocks")
    Reviewed-by: Abel Vesa <[email protected]>
    Signed-off-by: Taniya Das <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: qcom: gcc-sm8750: Add a new frequency for sdcc2 clock [+ + +]
Author: Taniya Das <[email protected]>
Date:   Wed Sep 24 00:08:30 2025 +0530

    clk: qcom: gcc-sm8750: Add a new frequency for sdcc2 clock
    
    [ Upstream commit 393f7834cd2b1eaf4a9eff2701e706e73e660dd7 ]
    
    The SD card support requires a 37.5MHz clock; add it to the frequency
    list for the storage SW driver to be able to request for the frequency.
    
    Fixes: 3267c774f3ff ("clk: qcom: Add support for GCC on SM8750")
    Signed-off-by: Taniya Das <[email protected]>
    Reviewed-by: Imran Shaik <[email protected]>
    Link: https://lore.kernel.org/r/20250924-sm8750_gcc_sdcc2_frequency-v1-1-541fd321125f@oss.qualcomm.com
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: qcom: gcc-x1e80100: Add missing USB4 clocks/resets [+ + +]
Author: Konrad Dybcio <[email protected]>
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 <[email protected]>
    Signed-off-by: Konrad Dybcio <[email protected]>
    Reviewed-by: Taniya Das <[email protected]>
    Reviewed-by: Abel Vesa <[email protected]>
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: renesas: cpg-mssr: Add missing 1ms delay into reset toggle callback [+ + +]
Author: Marek Vasut <[email protected]>
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 <[email protected]>
    Reviewed-by: Geert Uytterhoeven <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: renesas: cpg-mssr: Read back reset registers to assure values latched [+ + +]
Author: Marek Vasut <[email protected]>
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 <[email protected]>
    Tested-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Marek Vasut <[email protected]>
    Reviewed-by: Geert Uytterhoeven <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: renesas: r9a06g032: Fix memory leak in error path [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Reviewed-by: Geert Uytterhoeven <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: renesas: r9a09g077: Propagate rate changes to parent clocks [+ + +]
Author: Lad Prabhakar <[email protected]>
Date:   Tue Oct 28 16:51:23 2025 +0000

    clk: renesas: r9a09g077: Propagate rate changes to parent clocks
    
    [ Upstream commit 145dfd70b9c70e5bc03494a7ce8fa3748ac01af3 ]
    
    Add the CLK_SET_RATE_PARENT flag to divider clock registration so that rate
    changes can propagate to parent clocks when needed. This allows the CPG
    divider clocks to request rate adjustments from their parent, ensuring
    correct frequency scaling and improved flexibility in clock rate selection.
    
    Fixes: 065fe720eec6e ("clk: renesas: Add support for R9A09G077 SoC")
    Signed-off-by: Lad Prabhakar <[email protected]>
    Reviewed-by: Geert Uytterhoeven <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

clk: spacemit: Set clk_hw_onecell_data::num before using flex array [+ + +]
Author: Charles Mirabile <[email protected]>
Date:   Mon Nov 17 14:03:29 2025 -0500

    clk: spacemit: Set clk_hw_onecell_data::num before using flex array
    
    [ Upstream commit 23b2d2fb136959fd0a8e309c70be83d9b8841c7e ]
    
    When booting with KASAN enabled the following splat is
    encountered during probe of the k1 clock driver:
    
    UBSAN: array-index-out-of-bounds in drivers/clk/spacemit/ccu-k1.c:1044:16
    index 0 is out of range for type 'clk_hw *[*]'
    CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.18.0-rc5+ #1 PREEMPT(lazy)
    Hardware name: Unknown Unknown Product/Unknown Product, BIOS 2022.10spacemit 10/01/2022
    Call Trace:
    [<ffffffff8002b628>] dump_backtrace+0x28/0x38
    [<ffffffff800027d2>] show_stack+0x3a/0x50
    [<ffffffff800220c2>] dump_stack_lvl+0x5a/0x80
    [<ffffffff80022100>] dump_stack+0x18/0x20
    [<ffffffff800164b8>] ubsan_epilogue+0x10/0x48
    [<ffffffff8099034e>] __ubsan_handle_out_of_bounds+0xa6/0xa8
    [<ffffffff80acbfa6>] k1_ccu_probe+0x37e/0x420
    [<ffffffff80b79e6e>] platform_probe+0x56/0x98
    [<ffffffff80b76a7e>] really_probe+0x9e/0x350
    [<ffffffff80b76db0>] __driver_probe_device+0x80/0x138
    [<ffffffff80b76f52>] driver_probe_device+0x3a/0xd0
    [<ffffffff80b771c4>] __driver_attach+0xac/0x1b8
    [<ffffffff80b742fc>] bus_for_each_dev+0x6c/0xc8
    [<ffffffff80b76296>] driver_attach+0x26/0x38
    [<ffffffff80b759ae>] bus_add_driver+0x13e/0x268
    [<ffffffff80b7836a>] driver_register+0x52/0x100
    [<ffffffff80b79a78>] __platform_driver_register+0x28/0x38
    [<ffffffff814585da>] k1_ccu_driver_init+0x22/0x38
    [<ffffffff80023a8a>] do_one_initcall+0x62/0x2a0
    [<ffffffff81401c60>] do_initcalls+0x170/0x1a8
    [<ffffffff81401e7a>] kernel_init_freeable+0x16a/0x1e0
    [<ffffffff811f7534>] kernel_init+0x2c/0x180
    [<ffffffff80025f56>] ret_from_fork_kernel+0x16/0x1d8
    [<ffffffff81205336>] ret_from_fork_kernel_asm+0x16/0x18
    ---[ end trace ]---
    
    This is bogus and is simply a result of KASAN consulting the
    `.num` member of the struct for bounds information (as it should
    due to `__counted_by`) and finding 0 set by kzalloc() because it
    has not been initialized before the loop that fills in the array.
    The easy fix is to just move the line that sets `num` to before
    the loop that fills the array so that KASAN has the information
    it needs to accurately conclude that the access is valid.
    
    Fixes: 1b72c59db0add ("clk: spacemit: Add clock support for SpacemiT K1 SoC")
    Tested-by: Yanko Kaneti <[email protected]>
    Signed-off-by: Charles Mirabile <[email protected]>
    Reviewed-by: Alex Elder <[email protected]>
    Reviewed-by: Troy Mitchell <[email protected]>
    Reviewed-by: Yixun Lan <[email protected]>
    Signed-off-by: Stephen Boyd <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
clocksource/drivers/nxp-stm: Fix section mismatches [+ + +]
Author: Johan Hovold <[email protected]>
Date:   Fri Oct 17 07:49:43 2025 +0200

    clocksource/drivers/nxp-stm: Fix section mismatches
    
    [ Upstream commit b452d2c97eeccbf9c7ac5b3d2d9e80bf6d8a23db ]
    
    Platform drivers can be probed after their init sections have been
    discarded (e.g. on probe deferral or manual rebind through sysfs) so the
    probe function must not live in init. Device managed resource actions
    similarly cannot be discarded.
    
    The "_probe" suffix of the driver structure name prevents modpost from
    warning about this so replace it to catch any similar future issues.
    
    Fixes: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms")
    Signed-off-by: Johan Hovold <[email protected]>
    Signed-off-by: Daniel Lezcano <[email protected]>
    Cc: [email protected]      # 6.16
    Cc: Daniel Lezcano <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Stable-dep-of: 6a2416892e89 ("clocksource/drivers/nxp-stm: Prevent driver unbind")
    Signed-off-by: Sasha Levin <[email protected]>

clocksource/drivers/nxp-stm: Prevent driver unbind [+ + +]
Author: Johan Hovold <[email protected]>
Date:   Tue Nov 11 16:32:26 2025 +0100

    clocksource/drivers/nxp-stm: Prevent driver unbind
    
    [ Upstream commit 6a2416892e8942f5e2bfe9b85c0164f410a53a2d ]
    
    Clockevents cannot be deregistered so suppress the bind attributes to
    prevent the driver from being unbound and releasing the underlying
    resources after registration.
    
    Even if the driver can currently only be built-in, also switch to
    builtin_platform_driver() to prevent it from being unloaded should
    modular builds ever be enabled.
    
    Fixes: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms")
    Signed-off-by: Johan Hovold <[email protected]>
    Signed-off-by: Daniel Lezcano <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
clocksource/drivers/ralink: Fix resource leaks in init error path [+ + +]
Author: Haotian Zhang <[email protected]>
Date:   Thu Oct 30 17:07:10 2025 +0800

    clocksource/drivers/ralink: Fix resource leaks in init error path
    
    [ Upstream commit 2ba8e2aae1324704565a7d4d66f199d056c9e3c6 ]
    
    The ralink_systick_init() function does not release all acquired resources
    on its error paths. If irq_of_parse_and_map() or a subsequent call fails,
    the previously created I/O memory mapping and IRQ mapping are leaked.
    
    Add goto-based error handling labels to ensure that all allocated
    resources are correctly freed.
    
    Fixes: 1f2acc5a8a0a ("MIPS: ralink: Add support for systick timer found on newer ralink SoC")
    Signed-off-by: Haotian Zhang <[email protected]>
    Signed-off-by: Daniel Lezcano <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
clocksource/drivers/stm: Fix double deregistration on probe failure [+ + +]
Author: Johan Hovold <[email protected]>
Date:   Fri Oct 17 07:50:39 2025 +0200

    clocksource/drivers/stm: Fix double deregistration on probe failure
    
    [ Upstream commit 6b38a8b31e2c5c2c3fd5f9848850788c190f216d ]
    
    The purpose of the devm_add_action_or_reset() helper is to call the
    action function in case adding an action ever fails so drop the clock
    source deregistration from the error path to avoid deregistering twice.
    
    Fixes: cec32ac75827 ("clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms")
    Signed-off-by: Johan Hovold <[email protected]>
    Signed-off-by: Daniel Lezcano <[email protected]>
    Cc: Daniel Lezcano <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
coresight: Change device mode to atomic type [+ + +]
Author: Leo Yan <[email protected]>
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 <[email protected]>
    Tested-by: James Clark <[email protected]>
    Signed-off-by: Leo Yan <[email protected]>
    Signed-off-by: Suzuki K Poulose <[email protected]>
    Link: https://lore.kernel.org/r/20251111-arm_coresight_power_management_fix-v6-1-f55553b6c8b3@arm.com
    Signed-off-by: Sasha Levin <[email protected]>

coresight: etm3x: Always set tracer's device mode on target CPU [+ + +]
Author: Leo Yan <[email protected]>
Date:   Tue Nov 11 18:58:37 2025 +0000

    coresight: etm3x: Always set tracer's device mode on target CPU
    
    [ Upstream commit ab3fde32afe6a77e5cc60f868e44e6e09424752b ]
    
    The ETMv3 driver shares the same issue as ETMv4 regarding race
    conditions when accessing the device mode.
    
    This commit applies the same fix: ensuring that the device mode is
    modified only by the target CPU to eliminate race conditions across
    CPUs.
    
    Fixes: 22fd532eaa0c ("coresight: etm3x: adding operation mode for etm_enable()")
    Reviewed-by: Mike Leach <[email protected]>
    Tested-by: James Clark <[email protected]>
    Signed-off-by: Leo Yan <[email protected]>
    Signed-off-by: Suzuki K Poulose <[email protected]>
    Link: https://lore.kernel.org/r/20251111-arm_coresight_power_management_fix-v6-3-f55553b6c8b3@arm.com
    Signed-off-by: Sasha Levin <[email protected]>

coresight: etm4x: Add context synchronization before enabling trace [+ + +]
Author: Leo Yan <[email protected]>
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 <[email protected]>
    Reviewed-by: Yeoreun Yun <[email protected]>
    Tested-by: James Clark <[email protected]>
    Signed-off-by: Leo Yan <[email protected]>
    Signed-off-by: Suzuki K Poulose <[email protected]>
    Link: https://lore.kernel.org/r/20251111-arm_coresight_power_management_fix-v6-5-f55553b6c8b3@arm.com
    Signed-off-by: Sasha Levin <[email protected]>

coresight: etm4x: Always set tracer's device mode on target CPU [+ + +]
Author: Leo Yan <[email protected]>
Date:   Tue Nov 11 18:58:36 2025 +0000

    coresight: etm4x: Always set tracer's device mode on target CPU
    
    [ Upstream commit 28eee2158575aea8fee7807adb9248ceaf9196f1 ]
    
    When enabling a tracer via SysFS interface, the device mode may be set
    by any CPU - not necessarily the target CPU. This can lead to race
    condition in SMP, and may result in incorrect mode values being read.
    
    Consider the following example, where CPU0 attempts to enable the tracer
    on CPU1 (the target CPU):
    
     CPU0                                    CPU1
     etm4_enable()
      ` coresight_take_mode(SYSFS)
      ` etm4_enable_sysfs()
         ` smp_call_function_single() ---->  etm4_enable_hw_smp_call()
                                            /
                                           /  CPU idle:
                                          /   etm4_cpu_save()
                                         /     ` coresight_get_mode()
                   Failed to enable h/w /         ^^^
      ` coresight_set_mode(DISABLED) <-'          Read the intermediate SYSFS mode
    
    In this case, CPU0 initiates the operation by taking the SYSFS mode to
    avoid conflicts with the Perf mode. It then sends an IPI to CPU1 to
    configure the tracer registers. If any error occurs during this process,
    CPU0 rolls back by setting the mode to DISABLED.
    
    However, if CPU1 enters an idle state during this time, it might read
    the intermediate SYSFS mode. As a result, the CPU PM flow could wrongly
    save and restore tracer context that is actually disabled.
    
    To resolve the issue, this commit moves the device mode setting logic on
    the target CPU. This ensures that the device mode is only modified by
    the target CPU, eliminating race condition between mode writes and reads
    across CPUs.
    
    An additional change introduces the etm4_disable_sysfs_smp_call()
    function for SMP calls, which disables the tracer and explicitly set the
    mode to DISABLED during SysFS operations. Rename
    etm4_disable_hw_smp_call() to etm4_disable_sysfs_smp_call() for naming
    consistency.
    
    The flow is updated with this change:
    
     CPU0                                    CPU1
     etm4_enable()
      ` etm4_enable_sysfs()
         ` smp_call_function_single() ---->  etm4_enable_hw_smp_call()
                                              ` coresight_take_mode(SYSFS)
                                                Failed, set back to DISABLED
                                              ` coresight_set_mode(DISABLED)
    
                                              CPU idle:
                                              etm4_cpu_save()
                                               ` coresight_get_mode()
                                                  ^^^
                                                  Read out the DISABLED mode
    
    Fixes: c38a9ec2b2c1 ("coresight: etm4x: moving etm_drvdata::enable to atomic field")
    Reviewed-by: Yeoreum Yun <[email protected]>
    Reviewed-by: mike Leach <[email protected]>
    Tested-by: James Clark <[email protected]>
    Signed-off-by: Leo Yan <[email protected]>
    Signed-off-by: Suzuki K Poulose <[email protected]>
    Link: https://lore.kernel.org/r/20251111-arm_coresight_power_management_fix-v6-2-f55553b6c8b3@arm.com
    Signed-off-by: Sasha Levin <[email protected]>

coresight: etm4x: Correct polling IDLE bit [+ + +]
Author: Leo Yan <[email protected]>
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 <[email protected]>
    Reviewed-by: Mike Leach <[email protected]>
    Tested-by: James Clark <[email protected]>
    Signed-off-by: Leo Yan <[email protected]>
    Signed-off-by: Suzuki K Poulose <[email protected]>
    Link: https://lore.kernel.org/r/20251111-arm_coresight_power_management_fix-v6-4-f55553b6c8b3@arm.com
    Signed-off-by: Sasha Levin <[email protected]>

coresight: etm4x: Properly control filter in CPU idle with FEAT_TRF [+ + +]
Author: Leo Yan <[email protected]>
Date:   Tue Nov 11 18:58:40 2025 +0000

    coresight: etm4x: Properly control filter in CPU idle with FEAT_TRF
    
    [ Upstream commit 1fdc2cd347a7bc58acacb6144404ee892cea6c2e ]
    
    If a CPU supports FEAT_TRF, as described in the section K5.5 "Context
    switching", Arm ARM (ARM DDI 0487 L.a), it defines a flow to prohibit
    program-flow trace, execute a TSB CSYNC instruction for flushing,
    followed by clearing TRCPRGCTLR.EN bit.
    
    To restore the state, the reverse sequence is required.
    
    This differs from the procedure described in the section 3.4.1 "The
    procedure when powering down the PE" of ARM IHI0064H.b, which involves
    the OS Lock to prevent external debugger accesses and implicitly
    disables trace.
    
    To be compatible with different ETM versions, explicitly control trace
    unit using etm4_disable_trace_unit() and etm4_enable_trace_unit()
    during CPU idle to comply with FEAT_TRF.
    
    As a result, the save states for TRFCR_ELx and trcprgctlr are redundant,
    remove them.
    
    Fixes: f188b5e76aae ("coresight: etm4x: Save/restore state across CPU low power states")
    Reviewed-by: Mike Leach <[email protected]>
    Tested-by: James Clark <[email protected]>
    Reviewed-by: Yeoreum Yun <[email protected]>
    Signed-off-by: Leo Yan <[email protected]>
    Signed-off-by: Suzuki K Poulose <[email protected]>
    Link: https://lore.kernel.org/r/20251111-arm_coresight_power_management_fix-v6-6-f55553b6c8b3@arm.com
    Signed-off-by: Sasha Levin <[email protected]>

coresight: ETR: Fix ETR buffer use-after-free issue [+ + +]
Author: Xiaoqi Zhuang <[email protected]>
Date:   Tue Oct 21 16:45:25 2025 +0800

    coresight: ETR: Fix ETR buffer use-after-free issue
    
    [ Upstream commit 35501ac3c7d40a7bb9568c2f89d6b56beaf9bed3 ]
    
    When ETR is enabled as CS_MODE_SYSFS, if the buffer size is changed
    and enabled again, currently sysfs_buf will point to the newly
    allocated memory(buf_new) and free the old memory(buf_old). But the
    etr_buf that is being used by the ETR remains pointed to buf_old, not
    updated to buf_new. In this case, it will result in a memory
    use-after-free issue.
    
    Fix this by checking ETR's mode before updating and releasing buf_old,
    if the mode is CS_MODE_SYSFS, then skip updating and releasing it.
    
    Fixes: bd2767ec3df2 ("coresight: Fix run time warnings while reusing ETR buffer")
    Signed-off-by: Xiaoqi Zhuang <[email protected]>
    Signed-off-by: Suzuki K Poulose <[email protected]>
    Tested-by: Leo Yan <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

coresight: tmc: add the handle of the event to the path [+ + +]
Author: Carl Worth <[email protected]>
Date:   Thu Sep 25 18:42:31 2025 +0800

    coresight: tmc: add the handle of the event to the path
    
    [ Upstream commit aaa5abcc9d44d2c8484f779ab46d242d774cabcb ]
    
    The handle is essential for retrieving the AUX_EVENT of each CPU and is
    required in perf mode. It has been added to the coresight_path so that
    dependent devices can access it from the path when needed.
    
    The existing bug can be reproduced with:
    perf record -e cs_etm//k -C 0-9 dd if=/dev/zero of=/dev/null
    
    Showing an oops as follows:
    Unable to handle kernel paging request at virtual address 000f6e84934ed19e
    
    Call trace:
     tmc_etr_get_buffer+0x30/0x80 [coresight_tmc] (P)
     catu_enable_hw+0xbc/0x3d0 [coresight_catu]
     catu_enable+0x70/0xe0 [coresight_catu]
     coresight_enable_path+0xb0/0x258 [coresight]
    
    Fixes: 080ee83cc361 ("Coresight: Change functions to accept the coresight_path")
    Signed-off-by: Carl Worth <[email protected]>
    Reviewed-by: Leo Yan <[email protected]>
    Co-developed-by: Jie Gan <[email protected]>
    Signed-off-by: Jie Gan <[email protected]>
    Signed-off-by: Suzuki K Poulose <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
cpu: Make atomic hotplug callbacks run with interrupts disabled on UP [+ + +]
Author: Sebastian Andrzej Siewior <[email protected]>
Date:   Thu Nov 27 15:47:23 2025 +0100

    cpu: Make atomic hotplug callbacks run with interrupts disabled on UP
    
    [ Upstream commit c94291914b200e10c72cef23c8e4c67eb4fdbcd9 ]
    
    On SMP systems the CPU hotplug callbacks in the "starting" range are
    invoked while the CPU is brought up and interrupts are still
    disabled. Callbacks which are added later are invoked via the
    hotplug-thread on the target CPU and interrupts are explicitly disabled.
    
    In the UP case callbacks which are added later are invoked directly without
    the thread indirection. This is in principle okay since there is just one
    CPU but those callbacks are invoked with interrupt disabled code. That's
    incorrect as those callbacks assume interrupt disabled context.
    
    Disable interrupts before invoking the callbacks on UP if the state is
    atomic and interrupts are expected to be disabled.  The "save" part is
    required because this is also invoked early in the boot process while
    interrupts are disabled and must not be enabled prematurely.
    
    Fixes: 06ddd17521bf1 ("sched/smp: Always define is_percpu_thread() and scheduler_ipi()")
    Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
cpufreq/amd-pstate: Call cppc_set_auto_sel() only for online CPUs [+ + +]
Author: Gautham R. Shenoy <[email protected]>
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) <[email protected]>
    Signed-off-by: Gautham R. Shenoy <[email protected]>
    Signed-off-by: Mario Limonciello (AMD) <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
cpuset: Treat cpusets in attaching as populated [+ + +]
Author: Chen Ridong <[email protected]>
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 <[email protected]>
    Reviewed-by: Waiman Long <[email protected]>
    Signed-off-by: Tejun Heo <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
crypto: aead - Fix reqsize handling [+ + +]
Author: T Pratham <[email protected]>
Date:   Wed Oct 8 15:03:14 2025 +0530

    crypto: aead - Fix reqsize handling
    
    [ Upstream commit 9b04d8f00569573796dd05397f5779135593eb24 ]
    
    Commit afddce13ce81d ("crypto: api - Add reqsize to crypto_alg")
    introduced cra_reqsize field in crypto_alg struct to replace type
    specific reqsize fields. It looks like this was introduced specifically
    for ahash and acomp from the commit description as subsequent commits
    add necessary changes in these alg frameworks.
    
    However, this is being recommended for use in all crypto algs
    instead of setting reqsize using crypto_*_set_reqsize(). Using
    cra_reqsize in aead algorithms, hence, causes memory corruptions and
    crashes as the underlying functions in the algorithm framework have not
    been updated to set the reqsize properly from cra_reqsize. [1]
    
    Add proper set_reqsize calls in the aead init function to properly
    initialize reqsize for these algorithms in the framework.
    
    [1]: https://gist.github.com/Pratham-T/24247446f1faf4b7843e4014d5089f6b
    
    Fixes: afddce13ce81d ("crypto: api - Add reqsize to crypto_alg")
    Signed-off-by: T Pratham <[email protected]>
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

crypto: ahash - Fix crypto_ahash_import with partial block data [+ + +]
Author: Herbert Xu <[email protected]>
Date:   Fri Nov 21 13:36:03 2025 +0800

    crypto: ahash - Fix crypto_ahash_import with partial block data
    
    [ Upstream commit b0356b75f42fde15d4be268c5891f2cee6eb65bf ]
    
    Restore the partial block buffer in crypto_ahash_import by copying
    it.  Check whether the partial block buffer exceeds the maximum
    size and return -EOVERFLOW if it does.
    
    Zero the partial block buffer in crypto_ahash_import_core.
    
    Reported-by: T Pratham <[email protected]>
    Tested-by: T Pratham <[email protected]>
    Fixes: 9d7a0ab1c753 ("crypto: ahash - Handle partial blocks in API")
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

crypto: ahash - Zero positive err value in ahash_update_finish [+ + +]
Author: Herbert Xu <[email protected]>
Date:   Fri Nov 21 13:54:20 2025 +0800

    crypto: ahash - Zero positive err value in ahash_update_finish
    
    [ Upstream commit ebbdf6466b30e3b37f3b360826efd21f0633fb9e ]
    
    The partial block length returned by a block-only driver should
    not be passed up to the caller since ahash itself deals with the
    partial block data.
    
    Set err to zero in ahash_update_finish if it was positive.
    
    Reported-by: T Pratham <[email protected]>
    Tested-by: T Pratham <[email protected]>
    Fixes: 9d7a0ab1c753 ("crypto: ahash - Handle partial blocks in API")
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

crypto: asymmetric_keys - prevent overflow in asymmetric_key_generate_id [+ + +]
Author: Thorsten Blum <[email protected]>
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 <[email protected]>
    Reviewed-by: Lukas Wunner <[email protected]>
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

crypto: authenc - Correctly pass EINPROGRESS back up to the caller [+ + +]
Author: Herbert Xu <[email protected]>
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 <[email protected]>
    Reported-by: Mikulas Patocka <[email protected]>
    Fixes: 180ce7e81030 ("crypto: authenc - Add EINPROGRESS check")
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

crypto: ccree - Correctly handle return of sg_nents_for_len [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

crypto: hisilicon/qm - restore original qos values [+ + +]
Author: nieweiqiang <[email protected]>
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 <[email protected]>
    Signed-off-by: Chenghai Huang <[email protected]>
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

crypto: iaa - Fix incorrect return value in save_iaa_wq() [+ + +]
Author: Zilin Guan <[email protected]>
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 <[email protected]>
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

crypto: starfive - Correctly handle return of sg_nents_for_len [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
dm log-writes: Add missing set_freezable() for freezable kthread [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Reviewed-by: Benjamin Marzinski <[email protected]>
    Signed-off-by: Mikulas Patocka <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
dm-raid: fix possible NULL dereference with undefined raid type [+ + +]
Author: Alexey Simakov <[email protected]>
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 <[email protected]>
    Signed-off-by: Mikulas Patocka <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
dma/pool: eliminate alloc_pages warning in atomic_pool_expand [+ + +]
Author: Dave Kleikamp <[email protected]>
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 <[email protected]>
    Reviewed-by: Robin Murphy <[email protected]>
    Fixes: d7e673ec2c8e ("dma-pool: Only allocate from CMA when in same memory zone")
    [mszyprow: fixed typo]
    Signed-off-by: Marek Szyprowski <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
docs: hwmon: fix link to g762 devicetree binding [+ + +]
Author: Kathara Sasikumar <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Fixes: 3d8e25372417 ("dt-bindings: hwmon: g762: Convert to yaml schema")
    Signed-off-by: Guenter Roeck <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/amd/display: Fix logical vs bitwise bug in get_embedded_panel_info_v2_1() [+ + +]
Author: Dan Carpenter <[email protected]>
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 <[email protected]>
    Reviewed-by: Alex Hung <[email protected]>
    Signed-off-by: Alex Deucher <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/amdgpu/userq: fix SDMA and compute validation [+ + +]
Author: Alex Deucher <[email protected]>
Date:   Fri Oct 10 15:21:02 2025 -0400

    drm/amdgpu/userq: fix SDMA and compute validation
    
    [ Upstream commit a0559012a18a5a6ad87516e982892765a403b8ab ]
    
    The CSA and EOP buffers have different alignement requirements.
    Hardcode them for now as a bug fix.  A proper query will be added in
    a subsequent patch.
    
    v2: verify gfx shadow helper callback (Prike)
    
    Fixes: 9e46b8bb0539 ("drm/amdgpu: validate userq buffer virtual address and size")
    Reviewed-by: Prike Liang <[email protected]>
    Signed-off-by: Alex Deucher <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/amdgpu: add userq object va track helpers [+ + +]
Author: Prike Liang <[email protected]>
Date:   Mon Sep 29 13:52:13 2025 +0800

    drm/amdgpu: add userq object va track helpers
    
    [ Upstream commit 5cfa33fabf01f2cc0af6b1feed6e65cb81806a37 ]
    
    Add the userq object virtual address list_add() helpers
    for tracking the userq obj va address usage.
    
    Signed-off-by: Prike Liang <[email protected]>
    Reviewed-by: Alex Deucher <[email protected]>
    Signed-off-by: Alex Deucher <[email protected]>
    Stable-dep-of: a0559012a18a ("drm/amdgpu/userq: fix SDMA and compute validation")
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/amdkfd: Use huge page size to check split svm range alignment [+ + +]
Author: Xiaogang Chen <[email protected]>
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 <[email protected]>
    Reviewed-by: Philip Yang <[email protected]>
    Signed-off-by: Alex Deucher <[email protected]>
    (cherry picked from commit 448ee45353ef9fb1a34f5f26eb3f48923c6f0898)
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/i915/fbdev: Hold runtime PM ref during fbdev BO creation [+ + +]
Author: Dibin Moolakadan Subrahmanian <[email protected]>
Date:   Tue Nov 11 19:24:03 2025 +0530

    drm/i915/fbdev: Hold runtime PM ref during fbdev BO creation
    
    [ Upstream commit 460b31720369fc77c23301708641cfa1bf2fcb8f ]
    
    During fbdev probe, the xe driver allocates and pins a framebuffer
    BO (via xe_bo_create_pin_map_novm() → xe_ggtt_insert_bo()).
    
    Without a runtime PM reference, xe_pm_runtime_get_noresume() warns about
    missing outer PM protection as below:
    
            xe 0000:03:00.0: [drm] Missing outer runtime PM protection
    
    Acquire a runtime PM reference before framebuffer allocation to ensure
    xe_ggtt_insert_bo()  executes  under active runtime PM context.
    
    Changes in v2:
     - Update commit message to add Fixes tag (Jani Nikula)
    
    Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/6350
    Fixes: 44e694958b95 ("drm/xe/display: Implement display support")
    Cc: Jani Nikula <[email protected]>
    Signed-off-by: Dibin Moolakadan Subrahmanian <[email protected]>
    Reviewed-by: Jouni Högander <[email protected]>
    Signed-off-by: Ankit Nautiyal <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    (cherry picked from commit 37fc7b7b3ab0e3bb900657199cd3770a4fda03fb)
    Signed-off-by: Jani Nikula <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm/i915/fbdev: make intel_framebuffer_create() error return handling explicit [+ + +]
Author: Jani Nikula <[email protected]>
Date:   Thu Sep 18 11:40:52 2025 +0300

    drm/i915/fbdev: make intel_framebuffer_create() error return handling explicit
    
    [ Upstream commit 6979d2c80c2a5b1f04157c4d6eb038bb32861cfa ]
    
    It's sketchy to pass error pointers via to_intel_framebuffer(). It
    probably works as long as struct intel_framebuffer embeds struct
    drm_framebuffer at offset 0, but be explicit about it.
    
    Reviewed-by: Ville Syrjälä <[email protected]>
    Link: https://lore.kernel.org/r/17631db227d527d6c67f5d6b67adec1ff8dc6f8d.1758184771.git.jani.nikula@intel.com
    Signed-off-by: Jani Nikula <[email protected]>
    Stable-dep-of: 460b31720369 ("drm/i915/fbdev: Hold runtime PM ref during fbdev BO creation")
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/imagination: Fix reference to devm_platform_get_and_ioremap_resource() [+ + +]
Author: Geert Uytterhoeven <[email protected]>
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 <[email protected]>
    Reviewed-by: Matt Coster <[email protected]>
    Link: https://patch.msgid.link/2266514318480d17f52c7e5e67578dae6827914e.1761745586.git.geert+renesas@glider.be
    Signed-off-by: Matt Coster <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/mediatek: Fix CCORR mtk_ctm_s31_32_to_s1_n function issue [+ + +]
Author: Jay Liu <[email protected]>
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 <[email protected]>
    Signed-off-by: Jay Liu <[email protected]>
    Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
    Signed-off-by: Chun-Kuang Hu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/msm/a2xx: stop over-complaining about the legacy firmware [+ + +]
Author: Dmitry Baryshkov <[email protected]>
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 <[email protected]>
    Patchwork: https://patchwork.freedesktop.org/patch/688098/
    Signed-off-by: Rob Clark <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/msm/a6xx: Fix the gemnoc workaround [+ + +]
Author: Akhil P Oommen <[email protected]>
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 <[email protected]>
    Signed-off-by: Akhil P Oommen <[email protected]>
    Patchwork: https://patchwork.freedesktop.org/patch/688997/
    Message-ID: <[email protected]>
    Signed-off-by: Rob Clark <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm/msm/a6xx: Flush LRZ cache before PT switch [+ + +]
Author: Akhil P Oommen <[email protected]>
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 <[email protected]>
    Signed-off-by: Akhil P Oommen <[email protected]>
    Patchwork: https://patchwork.freedesktop.org/patch/688995/
    Message-ID: <[email protected]>
    Signed-off-by: Rob Clark <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm/msm/a6xx: Improve MX rail fallback in RPMH vote init [+ + +]
Author: Akhil P Oommen <[email protected]>
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 <[email protected]>
    Signed-off-by: Akhil P Oommen <[email protected]>
    Patchwork: https://patchwork.freedesktop.org/patch/689014/
    Message-ID: <[email protected]>
    Signed-off-by: Rob Clark <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/msm/dpu: drop dpu_hw_dsc_destroy() prototype [+ + +]
Author: Dmitry Baryshkov <[email protected]>
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 <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Reviewed-by: Jessica Zhang <[email protected]>
    Patchwork: https://patchwork.freedesktop.org/patch/683697/
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/msm: fix missing NULL check after kcalloc in crashstate_get_bos() [+ + +]
Author: Huiwen He <[email protected]>
Date:   Thu Nov 13 01:19:47 2025 +0800

    drm/msm: fix missing NULL check after kcalloc in crashstate_get_bos()
    
    [ Upstream commit 3065e6a4d3594b42dae6176b3e2c0c3563cf94b8 ]
    
    The crashstate_get_bos() function allocates memory for `state->bos`
    using kcalloc(), but the vmbind path does not check for allocation
    failure before dereferencing it in the following drm_gpuvm_for_each_va()
    loop. This could lead to a NULL pointer dereference if memory allocation
    fails.
    
    Fix this by wrapping the drm_gpuvm_for_each_va() loop with a NULL check
    on state->bos, similar to the safety check in the non-vmbind path.
    
    Fixes: af9aa6f316b3d ("drm/msm: Crashdump support for sparse")
    Signed-off-by: Huiwen He <[email protected]>
    Patchwork: https://patchwork.freedesktop.org/patch/687556/
    Signed-off-by: Rob Clark <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm/msm: Fix NULL pointer dereference in crashstate_get_vm_logs() [+ + +]
Author: Huiwen He <[email protected]>
Date:   Thu Nov 13 01:04:11 2025 +0800

    drm/msm: Fix NULL pointer dereference in crashstate_get_vm_logs()
    
    [ Upstream commit 3099e0247e3217e1b39c1c61766e06ec3d13835f ]
    
    crashstate_get_vm_logs() did not check the return value of
    kmalloc_array(). In low-memory situations, kmalloc_array() may return
    NULL, leading to a NULL pointer dereference when the function later
    accesses state->vm_logs.
    
    Fix this by checking the return value of kmalloc_array() and setting
    state->nr_vm_logs to 0 if allocation fails.
    
    Fixes: 9edc52967cc7 ("drm/msm: Add VM logging for VM_BIND updates")
    Signed-off-by: Huiwen He <[email protected]>
    Patchwork: https://patchwork.freedesktop.org/patch/687555/
    Signed-off-by: Rob Clark <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/nouveau: fix circular dep oops from vendored i2c encoder [+ + +]
Author: René Rebe <[email protected]>
Date:   Tue Dec 2 16:49:52 2025 +0100

    drm/nouveau: fix circular dep oops from vendored i2c encoder
    
    [ Upstream commit d84e47edf156a953ed340ba6a202dcd3ea39ba0a ]
    
    Since commit a73583107af9 ("drm/nouveau: vendor in drm_encoder_slave API")
    nouveau appears to be broken for all dispnv04 GPUs (before NV50). Depending
    on the kernel version, either having no display output and hanging in
    kernel for a long time, or even oopsing in the cleanup path like:
    
    Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac
    ...
    nouveau 0000:0a:00.0: drm: 0x14C5: Parsing digital output script table
    BUG: Unable to handle kernel data access on read at 0x00041520
    Faulting instruction address: 0xc0003d0001be0844
    Oops: Kernel access of bad area, sig: 11 [#1]
    BE PAGE_SIZE=4K MMU=Hash  SMP NR_CPUS=8 NUMA PowerMac
    Modules linked in: windfarm_cpufreq_clamp windfarm_smu_sensors windfarm_smu_controls windfarm_pm112 snd_aoa_codec_onyx snd_aoa_fabric_layout snd_aoa windfarm_pid jo
     apple_mfi_fastcharge rndis_host cdc_ether usbnet mii snd_aoa_i2sbus snd_aoa_soundbus snd_pcm snd_timer snd soundcore rack_meter windfarm_smu_sat windfarm_max6690_s
    m75_sensor windfarm_core gpu_sched drm_gpuvm drm_exec drm_client_lib drm_ttm_helper ttm drm_display_helper drm_kms_helper drm drm_panel_orientation_quirks syscopyar
    _sys_fops i2c_algo_bit backlight uio_pdrv_genirq uio uninorth_agp agpgart zram dm_mod dax ipv6 nfsv4 dns_resolver nfs lockd grace sunrpc offb cfbfillrect cfbimgblt
    ont input_leds sr_mod cdrom sd_mod uas ata_generic hid_apple hid_generic usbhid hid usb_storage pata_macio sata_svw libata firewire_ohci scsi_mod firewire_core ohci
    ehci_pci ehci_hcd tg3 ohci_hcd libphy usbcore usb_common nls_base
     led_class
    CPU: 0 UID: 0 PID: 245 Comm: (udev-worker) Not tainted 6.14.0-09584-g7d06015d936c #7 PREEMPTLAZY
    Hardware name: PowerMac11,2 PPC970MP 0x440101 PowerMac
    NIP:  c0003d0001be0844 LR: c0003d0001be0830 CTR: 0000000000000000
    REGS: c0000000053f70e0 TRAP: 0300   Not tainted  (6.14.0-09584-g7d06015d936c)
    MSR:  9000000000009032 <SF,HV,EE,ME,IR,DR,RI>  CR: 24222220  XER: 00000000
    DAR: 0000000000041520 DSISR: 40000000 IRQMASK: 0 \x0aGPR00: c0003d0001be0830 c0000000053f7380 c0003d0000911900 c000000007bc6800 \x0aGPR04: 0000000000000000 0000000000000000 c000000007bc6e70 0000000000000001 \x0aGPR08: 01f3040000000000 0000000000041520 0000000000000000 c0003d0000813958 \x0aGPR12: c000000000071a48 c000000000e28000 0000000000000020 0000000000000000 \x0aGPR16: 0000000000000000 0000000000f52630 0000000000000000 0000000000000000 \x0aGPR20: 0000000000000000 0000000000000000 0000000000000001 c0003d0000928528 \x0aGPR24: c0003d0000928598 0000000000000000 c000000007025480 c000000007025480 \x0aGPR28: c0000000010b4000 0000000000000000 c000000007bc1800 c000000007bc6800
    NIP [c0003d0001be0844] nv_crtc_destroy+0x44/0xd4 [nouveau]
    LR [c0003d0001be0830] nv_crtc_destroy+0x30/0xd4 [nouveau]
    Call Trace:
    [c0000000053f7380] [c0003d0001be0830] nv_crtc_destroy+0x30/0xd4 [nouveau] (unreliable)
    [c0000000053f73c0] [c0003d00007f7bf4] drm_mode_config_cleanup+0x27c/0x30c [drm]
    [c0000000053f7490] [c0003d0001bdea50] nouveau_display_create+0x1cc/0x550 [nouveau]
    [c0000000053f7500] [c0003d0001bcc29c] nouveau_drm_device_init+0x1c8/0x844 [nouveau]
    [c0000000053f75e0] [c0003d0001bcc9ec] nouveau_drm_probe+0xd4/0x1e0 [nouveau]
    [c0000000053f7670] [c000000000557d24] local_pci_probe+0x50/0xa8
    [c0000000053f76f0] [c000000000557fa8] pci_device_probe+0x22c/0x240
    [c0000000053f7760] [c0000000005fff3c] really_probe+0x188/0x31c
    [c0000000053f77e0] [c000000000600204] __driver_probe_device+0x134/0x13c
    [c0000000053f7860] [c0000000006002c0] driver_probe_device+0x3c/0xb4
    [c0000000053f78a0] [c000000000600534] __driver_attach+0x118/0x128
    [c0000000053f78e0] [c0000000005fe038] bus_for_each_dev+0xa8/0xf4
    [c0000000053f7950] [c0000000005ff460] driver_attach+0x2c/0x40
    [c0000000053f7970] [c0000000005fea68] bus_add_driver+0x130/0x278
    [c0000000053f7a00] [c00000000060117c] driver_register+0x9c/0x1a0
    [c0000000053f7a80] [c00000000055623c] __pci_register_driver+0x5c/0x70
    [c0000000053f7aa0] [c0003d0001c058a0] nouveau_drm_init+0x254/0x278 [nouveau]
    [c0000000053f7b10] [c00000000000e9bc] do_one_initcall+0x84/0x268
    [c0000000053f7bf0] [c0000000001a0ba0] do_init_module+0x70/0x2d8
    [c0000000053f7c70] [c0000000001a42bc] init_module_from_file+0xb4/0x108
    [c0000000053f7d50] [c0000000001a4504] sys_finit_module+0x1ac/0x478
    [c0000000053f7e10] [c000000000023230] system_call_exception+0x1a4/0x20c
    [c0000000053f7e50] [c00000000000c554] system_call_common+0xf4/0x258
     --- interrupt: c00 at 0xfd5f988
    NIP:  000000000fd5f988 LR: 000000000ff9b148 CTR: 0000000000000000
    REGS: c0000000053f7e80 TRAP: 0c00   Not tainted  (6.14.0-09584-g7d06015d936c)
    MSR:  100000000000d032 <HV,EE,PR,ME,IR,DR,RI>  CR: 28222244  XER: 00000000
    IRQMASK: 0 \x0aGPR00: 0000000000000161 00000000ffcdc2d0 00000000405db160 0000000000000020 \x0aGPR04: 000000000ffa2c9c 0000000000000000 000000000000001f 0000000000000045 \x0aGPR08: 0000000011a13770 0000000000000000 0000000000000000 0000000000000000 \x0aGPR12: 0000000000000000 0000000010249d8c 0000000000000020 0000000000000000 \x0aGPR16: 0000000000000000 0000000000f52630 0000000000000000 0000000000000000 \x0aGPR20: 0000000000000000 0000000000000000 0000000000000000 0000000011a11a70 \x0aGPR24: 0000000011a13580 0000000011a11950 0000000011a11a70 0000000000020000 \x0aGPR28: 000000000ffa2c9c 0000000000000000 000000000ffafc40 0000000011a11a70
    NIP [000000000fd5f988] 0xfd5f988
    LR [000000000ff9b148] 0xff9b148
     --- interrupt: c00
    Code: f821ffc1 418200ac e93f0000 e9290038 e9291468 eba90000 48026c0d e8410018 e93f06aa 3d290001 392982a4 79291f24 <7fdd482a> 2c3e0000 41820030 7fc3f378
     ---[ end trace 0000000000000000 ]---
    
    This is caused by the i2c encoder modules vendored into nouveau/ now
    depending on the equally vendored nouveau_i2c_encoder_destroy
    function. Trying to auto-load this modules hangs on nouveau
    initialization until timeout, and nouveau continues without i2c video
    encoders.
    
    Fix by avoiding nouveau dependency by __always_inlining that helper
    functions into those i2c video encoder modules.
    
    Fixes: a73583107af9 ("drm/nouveau: vendor in drm_encoder_slave API")
    Signed-off-by: René Rebe <[email protected]>
    Reviewed-by: Lyude Paul <[email protected]>
    [Lyude: fixed commit reference in description]
    Signed-off-by: Lyude Paul <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

drm/nouveau: refactor deprecated strcpy [+ + +]
Author: Madhur Kumar <[email protected]>
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 <[email protected]>
    Reviewed-by: Lyude Paul <[email protected]>
    Fixes: 15a996bbb697 ("drm/nouveau: assign fence_chan->name correctly")
    Signed-off-by: Lyude Paul <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

drm/nouveau: restrict the flush page to a 32-bit address [+ + +]
Author: Timur Tabi <[email protected]>
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 <[email protected]>
    Reviewed-by: Lyude Paul <[email protected]>
    Signed-off-by: Lyude Paul <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/panel: visionox-rm69299: Don't clear all mode flags [+ + +]
Author: Guido Günther <[email protected]>
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 <[email protected]>
    Signed-off-by: Guido Günther <[email protected]>
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Signed-off-by: Neil Armstrong <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

drm/panel: visionox-rm69299: Fix clock frequency for SHIFT6mq [+ + +]
Author: Guido Günther <[email protected]>
Date:   Wed Sep 10 18:39:56 2025 +0200

    drm/panel: visionox-rm69299: Fix clock frequency for SHIFT6mq
    
    [ Upstream commit d298062312724606855294503acebc7ee55ffbca ]
    
    Make the clock frequency match what the sdm845 downstream kernel
    uses. Otherwise the panel stays black.
    
    Fixes: 783334f366b18 ("drm/panel: visionox-rm69299: support the variant found in the SHIFT6mq")
    Signed-off-by: Guido Günther <[email protected]>
    Reviewed-by: Neil Armstrong <[email protected]>
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Signed-off-by: Neil Armstrong <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/panthor: Avoid adding of kernel BOs to extobj list [+ + +]
Author: Akash Goel <[email protected]>
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 <[email protected]>
    Reviewed-by: Boris Brezillon <[email protected]>
    Reviewed-by: Steven Price <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Boris Brezillon <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm/panthor: Fix group_free_queue() for partially initialized queues [+ + +]
Author: Boris Brezillon <[email protected]>
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 <[email protected]>
    Reviewed-by: Liviu Dudau <[email protected]>
    Signed-off-by: Boris Brezillon <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Liviu Dudau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm/panthor: Fix potential memleak of vma structure [+ + +]
Author: Akash Goel <[email protected]>
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 <[email protected]>
    Reviewed-by: Boris Brezillon <[email protected]>
    Reviewed-by: Steven Price <[email protected]>
    Signed-off-by: Steven Price <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

drm/panthor: Fix race with suspend during unplug [+ + +]
Author: Ketil Johnsen <[email protected]>
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 <[email protected]>
    Fixes: 5fe909cae118a ("drm/panthor: Add the device logical block")
    Reviewed-by: Boris Brezillon <[email protected]>
    Reviewed-by: Liviu Dudau <[email protected]>
    Reviewed-by: Steven Price <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Liviu Dudau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm/panthor: Fix UAF on kernel BO VA nodes [+ + +]
Author: Boris Brezillon <[email protected]>
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 <[email protected]>
    Closes: https://gitlab.freedesktop.org/panfrost/linux/-/issues/57
    Fixes: 8a1cc07578bf ("drm/panthor: Add GEM logical block")
    Signed-off-by: Boris Brezillon <[email protected]>
    Reviewed-by: Liviu Dudau <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Liviu Dudau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm/panthor: Fix UAF race between device unplug and FW event processing [+ + +]
Author: Ketil Johnsen <[email protected]>
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 <[email protected]>
    Fixes: de85488138247 ("drm/panthor: Add the scheduler logical block")
    Reviewed-by: Liviu Dudau <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Liviu Dudau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm/panthor: Handle errors returned by drm_sched_entity_init() [+ + +]
Author: Boris Brezillon <[email protected]>
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 <[email protected]>
    Signed-off-by: Boris Brezillon <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Liviu Dudau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm/panthor: Prevent potential UAF in group creation [+ + +]
Author: Akash Goel <[email protected]>
Date:   Thu Nov 27 16:49:12 2025 +0000

    drm/panthor: Prevent potential UAF in group creation
    
    [ Upstream commit eec7e23d848d2194dd8791fcd0f4a54d4378eecd ]
    
    This commit prevents the possibility of a use after free issue in the
    GROUP_CREATE ioctl function, which arose as pointer to the group is
    accessed in that ioctl function after storing it in the Xarray.
    A malicious userspace can second guess the handle of a group and try
    to call GROUP_DESTROY ioctl from another thread around the same time
    as GROUP_CREATE ioctl.
    
    To prevent the use after free exploit, this commit uses a mark on an
    entry of group pool Xarray which is added just before returning from
    the GROUP_CREATE ioctl function. The mark is checked for all ioctls
    that specify the group handle and so userspace won't be abe to delete
    a group that isn't marked yet.
    
    v2: Add R-bs and fixes tags
    
    Fixes: de85488138247 ("drm/panthor: Add the scheduler logical block")
    Co-developed-by: Boris Brezillon <[email protected]>
    Signed-off-by: Boris Brezillon <[email protected]>
    Signed-off-by: Akash Goel <[email protected]>
    Reviewed-by: Boris Brezillon <[email protected]>
    Reviewed-by: Steven Price <[email protected]>
    Reviewed-by: Chia-I Wu <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/plane: Fix IS_ERR() vs NULL check in drm_plane_create_hotspot_properties() [+ + +]
Author: Dan Carpenter <[email protected]>
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 <[email protected]>
    Reviewed-by: Javier Martinez Canillas <[email protected]>
    Reviewed-by: Zack Rusin <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Maxime Ripard <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/tidss: Move OLDI mode validation to OLDI bridge mode_valid hook [+ + +]
Author: Jayesh Choudhary <[email protected]>
Date:   Tue Nov 4 20:44:22 2025 +0530

    drm/tidss: Move OLDI mode validation to OLDI bridge mode_valid hook
    
    [ Upstream commit 86db652fc22f5674ffe3b1f7c91c397c69d26d94 ]
    
    After integrating OLDI support[0], it is necessary to identify which VP
    instances use OLDI, since the OLDI driver owns the video port clock
    (as a serial clock). Clock operations on these VPs must be delegated to
    the OLDI driver, not handled by the TIDSS driver. This issue also
    emerged in upstream discussions when DSI-related clock management was
    attempted in the TIDSS driver[1].
    
    To address this, add an 'is_ext_vp_clk' array to the 'tidss_device'
    structure, marking a VP as 'true' during 'tidss_oldi_init()' and as
    'false' during 'tidss_oldi_deinit()'. TIDSS then uses 'is_ext_vp_clk'
    to skip clock validation checks in 'dispc_vp_mode_valid()' for VPs
    under OLDI control.
    
    Since OLDI uses the DSS VP clock directly as a serial interface and
    manages its own rate, mode validation should be implemented in the OLDI
    bridge's 'mode_valid' hook. This patch adds that logic, ensuring proper
    delegation and avoiding spurious clock handling in the TIDSS driver.
    
    [0]: https://lore.kernel.org/all/[email protected]/
    [1]: https://lore.kernel.org/all/[email protected]/
    
    Fixes: 7246e0929945 ("drm/tidss: Add OLDI bridge support")
    Tested-by: Michael Walle <[email protected]>
    Reviewed-by: Devarsh Thakkar <[email protected]>
    Reviewed-by: Tomi Valkeinen <[email protected]>
    Signed-off-by: Jayesh Choudhary <[email protected]>
    Signed-off-by: Swamil Jain <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Tomi Valkeinen <[email protected]>
    Link: https://patch.msgid.link/ffd5ebe03391b3c01e616c0c844a4b8ddecede36.1762513240.git.jani.nikula@intel.com
    Signed-off-by: Sasha Levin <[email protected]>

drm/tidss: Remove max_pclk_khz and min_pclk_khz from tidss display features [+ + +]
Author: Jayesh Choudhary <[email protected]>
Date:   Tue Nov 4 20:44:21 2025 +0530

    drm/tidss: Remove max_pclk_khz and min_pclk_khz from tidss display features
    
    [ Upstream commit 527e132573dfa793818a536b18eec49598a6f6f5 ]
    
    The TIDSS hardware does not have independent maximum or minimum pixel
    clock limits for each video port. Instead, these limits are determined
    by the SoC's clock architecture. Previously, this constraint was
    modeled using the 'max_pclk_khz' and 'min_pclk_khz' fields in
    'dispc_features', but this approach is static and does not account for
    the dynamic behavior of PLLs.
    
    This patch removes the 'max_pclk_khz' and 'min_pclk_khz' fields from
    'dispc_features'. The correct way to check if a requested mode's pixel
    clock is supported is by using 'clk_round_rate()' in the 'mode_valid()'
    hook. If the best frequency match for the mode clock falls within the
    supported tolerance, it is approved. TIDSS supports a 5% pixel clock
    tolerance, which is now reflected in the validation logic.
    
    This change allows existing DSS-compatible drivers to be reused across
    SoCs that only differ in their pixel clock characteristics. The
    validation uses 'clk_round_rate()' for each mode, which may introduce
    additional delay (about 3.5 ms for 30 modes), but this is generally
    negligible. Users desiring faster validation may bypass these calls
    selectively, for example, checking only the highest resolution mode,
    as shown here[1].
    
    [1]: https://lore.kernel.org/all/[email protected]/
    
    Tested-by: Michael Walle <[email protected]>
    Reviewed-by: Devarsh Thakkar <[email protected]>
    Reviewed-by: Tomi Valkeinen <[email protected]>
    Signed-off-by: Jayesh Choudhary <[email protected]>
    Signed-off-by: Swamil Jain <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    [Tomi: dropped 'inline' from check_pixel_clock]
    Signed-off-by: Tomi Valkeinen <[email protected]>
    Stable-dep-of: 86db652fc22f ("drm/tidss: Move OLDI mode validation to OLDI bridge mode_valid hook")
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/vgem-fence: Fix potential deadlock on release [+ + +]
Author: Janusz Krzysztofik <[email protected]>
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 <[email protected]>
    Reviewed-by: Christian König <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Maarten Lankhorst <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/xe/fbdev: use the same 64-byte stride alignment as i915 [+ + +]
Author: Jani Nikula <[email protected]>
Date:   Thu Sep 18 11:40:51 2025 +0300

    drm/xe/fbdev: use the same 64-byte stride alignment as i915
    
    [ Upstream commit 4a36b339a14ae6f2a366125e3d64f0c165193293 ]
    
    For reasons unknown, xe uses XE_PAGE_SIZE alignment for
    stride. Presumably it's just a confusion between stride alignment and bo
    allocation size alignment. Switch to 64 byte alignment to, uh, align
    with i915.
    
    This will also be helpful in deduplicating and unifying the xe and i915
    framebuffer allocation.
    
    Link: https://lore.kernel.org/r/[email protected]
    Suggested-by: Ville Syrjälä <[email protected]>
    Reviewed-by: Ville Syrjälä <[email protected]>
    Link: https://lore.kernel.org/r/7f4972104de8b179d5724ae83892ee294d3f3fd3.1758184771.git.jani.nikula@intel.com
    Signed-off-by: Jani Nikula <[email protected]>
    Stable-dep-of: 460b31720369 ("drm/i915/fbdev: Hold runtime PM ref during fbdev BO creation")
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/{i915, xe}/fbdev: deduplicate struct drm_mode_fb_cmd2 init [+ + +]
Author: Jani Nikula <[email protected]>
Date:   Thu Sep 18 11:40:54 2025 +0300

    drm/{i915, xe}/fbdev: deduplicate struct drm_mode_fb_cmd2 init
    
    [ Upstream commit f9ff39f940f5ddd1d4ffcff602de7206aa1ff05d ]
    
    Pull struct drm_mode_fb_cmd2 initialization out of the driver dependent
    code into shared display code.
    
    v2: Rebase on xe stride alignment change
    
    Reviewed-by: Ville Syrjälä <[email protected]>
    Link: https://lore.kernel.org/r/e922e47bfd39f9c5777f869ff23c23309ebbb380.1758184771.git.jani.nikula@intel.com
    Signed-off-by: Jani Nikula <[email protected]>
    Stable-dep-of: 460b31720369 ("drm/i915/fbdev: Hold runtime PM ref during fbdev BO creation")
    Signed-off-by: Sasha Levin <[email protected]>

drm/{i915, xe}/fbdev: pass struct drm_device to intel_fbdev_fb_alloc() [+ + +]
Author: Jani Nikula <[email protected]>
Date:   Thu Sep 18 11:40:53 2025 +0300

    drm/{i915, xe}/fbdev: pass struct drm_device to intel_fbdev_fb_alloc()
    
    [ Upstream commit 9e5cf822a207ee8c9856024c047abaccb4d185e5 ]
    
    The function doesn't actually need struct drm_fb_helper for anything,
    just pass struct drm_device.
    
    Reviewed-by: Ville Syrjälä <[email protected]>
    Link: https://lore.kernel.org/r/16360584f80cdc5ee35fd94cfd92fd3955588dfd.1758184771.git.jani.nikula@intel.com
    Signed-off-by: Jani Nikula <[email protected]>
    Stable-dep-of: 460b31720369 ("drm/i915/fbdev: Hold runtime PM ref during fbdev BO creation")
    Signed-off-by: Sasha Levin <[email protected]>

 
drm: atmel-hlcdc: fix atmel_xlcdc_plane_setup_scaler() [+ + +]
Author: Cyrille Pitchen <[email protected]>
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 <[email protected]>
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Acked-by: Nicolas Ferre <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Manikandan Muralidharan <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm: nova: select NOVA_CORE [+ + +]
Author: Danilo Krummrich <[email protected]>
Date:   Tue Oct 28 12:00:53 2025 +0100

    drm: nova: select NOVA_CORE
    
    [ Upstream commit 97ad568cd6a58804129ba071f3258b5c4782fb0d ]
    
    The nova-drm driver does not provide any value without nova-core being
    selected as well, hence select NOVA_CORE.
    
    Fixes: cdeaeb9dd762 ("drm: nova-drm: add initial driver skeleton")
    Reviewed-by: Alexandre Courbot <[email protected]>
    Reviewed-by: John Hubbard <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Danilo Krummrich <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
dt-bindings: clock: qcom,x1e80100-gcc: Add missing USB4 clocks/resets [+ + +]
Author: Konrad Dybcio <[email protected]>
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) <[email protected]>
    Reviewed-by: Bryan O'Donoghue <[email protected]>
    Signed-off-by: Konrad Dybcio <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Stable-dep-of: 8abe970efea5 ("clk: qcom: gcc-x1e80100: Add missing USB4 clocks/resets")
    Signed-off-by: Sasha Levin <[email protected]>

dt-bindings: PCI: amlogic: Fix the register name of the DBI region [+ + +]
Author: Manivannan Sadhasivam <[email protected]>
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 <[email protected]>
    Signed-off-by: Manivannan Sadhasivam <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
efi/cper: Add a new helper function to print bitmasks [+ + +]
Author: Mauro Carvalho Chehab <[email protected]>
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 <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Acked-by: Borislav Petkov (AMD) <[email protected]>
    Signed-off-by: Ard Biesheuvel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

efi/cper: Adjust infopfx size to accept an extra space [+ + +]
Author: Mauro Carvalho Chehab <[email protected]>
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 <[email protected]>
    Reviewed-by: Jonathan Cameron <[email protected]>
    Acked-by: Borislav Petkov (AMD) <[email protected]>
    Signed-off-by: Ard Biesheuvel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

efi/cper: align ARM CPER type with UEFI 2.9A/2.10 specs [+ + +]
Author: Mauro Carvalho Chehab <[email protected]>
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 <[email protected]>
    Reviewed-by: Jonathan Cameron <[email protected]>
    Acked-by: Borislav Petkov (AMD) <[email protected]>
    Signed-off-by: Ard Biesheuvel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
efi/libstub: Fix page table access in 5-level to 4-level paging transition [+ + +]
Author: Usama Arif <[email protected]>
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 <[email protected]>
    Reported-by: Tobias Fleig <[email protected]>
    Co-developed-by: Kiryl Shutsemau <[email protected]>
    Signed-off-by: Kiryl Shutsemau <[email protected]>
    Signed-off-by: Usama Arif <[email protected]>
    Signed-off-by: Borislav Petkov (AMD) <[email protected]>
    Reviewed-by: Ard Biesheuvel <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
entry,unwind/deferred: Fix unwind_reset_info() placement [+ + +]
Author: Peter Zijlstra <[email protected]>
Date:   Wed Nov 5 11:00:14 2025 +0100

    entry,unwind/deferred: Fix unwind_reset_info() placement
    
    [ Upstream commit cf76553aaa363620f58a6b6409bf544f4bcfa8de ]
    
    Stephen reported that on KASAN builds he's seeing:
    
    vmlinux.o: warning: objtool: user_exc_vmm_communication+0x15a: call to __kasan_check_read() leaves .noinstr.text section
    vmlinux.o: warning: objtool: exc_debug_user+0x182: call to __kasan_check_read() leaves .noinstr.text section
    vmlinux.o: warning: objtool: exc_int3+0x123: call to __kasan_check_read() leaves .noinstr.text section
    vmlinux.o: warning: objtool: noist_exc_machine_check+0x17a: call to __kasan_check_read() leaves .noinstr.text section
    vmlinux.o: warning: objtool: fred_exc_machine_check+0x17e: call to __kasan_check_read() leaves .noinstr.text section
    
    This turns out to be atomic ops from unwind_reset_info() that have
    explicit instrumentation. Place unwind_reset_info() in the preceding
    instrumentation_begin() section.
    
    Fixes: c6439bfaabf2 ("Merge tag 'trace-deferred-unwind-v6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace")
    Reported-by: Stephen Rothwell <[email protected]>
    Reported-by: Ingo Molnar <[email protected]>
    Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
erofs: correct FSDAX detection [+ + +]
Author: Gao Xiang <[email protected]>
Date:   Mon Nov 17 19:57:29 2025 +0800

    erofs: correct FSDAX detection
    
    [ Upstream commit ebe4f3f6eb0c10f87c58e52a8912694c14fdeda6 ]
    
    The detection of the primary device is skipped incorrectly
    if the multiple or flattened feature is enabled.
    
    It also fixes the FSDAX misdetection for non-block extra blobs.
    
    Fixes: c6993c4cb918 ("erofs: Fallback to normal access if DAX is not supported on extra device")
    Reported-and-tested-by: [email protected]
    Closes: https://lore.kernel.org/r/[email protected]
    Cc: Yuezhang Mo <[email protected]>
    Reviewed-by: Chao Yu <[email protected]>
    Signed-off-by: Gao Xiang <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

erofs: limit the level of fs stacking for file-backed mounts [+ + +]
Author: Gao Xiang <[email protected]>
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 <[email protected]>
    Fixes: fb176750266a ("erofs: add file-backed mount support")
    Reviewed-by: Chao Yu <[email protected]>
    Reviewed-by: Hongbo Li <[email protected]>
    Signed-off-by: Gao Xiang <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
ext4: correct the checking of quota files before moving extents [+ + +]
Author: Zhang Yi <[email protected]>
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 <[email protected]>
    Reviewed-by: Jan Kara <[email protected]>
    Message-ID: <[email protected]>
    Signed-off-by: Theodore Ts'o <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ext4: improve integrity checking in __mb_check_buddy by enhancing order-0 validation [+ + +]
Author: Yongjian Sun <[email protected]>
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 <[email protected]>
    Signed-off-by: Yongjian Sun <[email protected]>
    Reviewed-by: Baokun Li <[email protected]>
    Reviewed-by: Jan Kara <[email protected]>
    Message-ID: <[email protected]>
    Signed-off-by: Theodore Ts'o <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
f2fs: maintain one time GC mode is enabled during whole zoned GC cycle [+ + +]
Author: Daeho Jeong <[email protected]>
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 <[email protected]>
    Reviewed-by: Chao Yu <[email protected]>
    Signed-off-by: Jaegeuk Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

f2fs: revert summary entry count from 2048 to 512 in 16kb block support [+ + +]
Author: Daeho Jeong <[email protected]>
Date:   Tue Nov 11 09:52:46 2025 -0800

    f2fs: revert summary entry count from 2048 to 512 in 16kb block support
    
    [ Upstream commit 7ee8bc3942f20964ad730871b885688ea3a2961a ]
    
    The recent increase in the number of Segment Summary Area (SSA) entries
    from 512 to 2048 was an unintentional change in logic of 16kb block
    support. This commit corrects the issue.
    
    To better utilize the space available from the erroneous 2048-entry
    calculation, we are implementing a solution to share the currently
    unused SSA space with neighboring segments. This enhances overall
    SSA utilization without impacting the established 8MB segment size.
    
    Fixes: d7e9a9037de2 ("f2fs: Support Block Size == Page Size")
    Signed-off-by: Daeho Jeong <[email protected]>
    Reviewed-by: Chao Yu <[email protected]>
    Signed-off-by: Jaegeuk Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
fbdev: ssd1307fb: fix potential page leak in ssd1307fb_probe() [+ + +]
Author: Abdun Nihaal <[email protected]>
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 <[email protected]>
    Signed-off-by: Helge Deller <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
firmware: imx: scu-irq: fix OF node leak in [+ + +]
Author: Peng Fan <[email protected]>
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 <[email protected]>
    Signed-off-by: Peng Fan <[email protected]>
    Signed-off-by: Shawn Guo <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

firmware: qcom: tzmem: fix qcom_tzmem_policy kernel-doc [+ + +]
Author: Randy Dunlap <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

firmware: stratix10-svc: fix make htmldocs warning for stratix10_svc [+ + +]
Author: Dinh Nguyen <[email protected]>
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 <[email protected]>
    Closes: https://lore.kernel.org/linux-next/[email protected]/
    Signed-off-by: Dinh Nguyen <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

firmware: ti_sci: Set IO Isolation only if the firmware is capable [+ + +]
Author: Thomas Richard (TI.com) <[email protected]>
Date:   Fri Oct 31 13:44:56 2025 +0100

    firmware: ti_sci: Set IO Isolation only if the firmware is capable
    
    [ Upstream commit 999e9bc953e321651d69556fdd5dfd178f96f128 ]
    
    Prevent calling ti_sci_cmd_set_io_isolation() on firmware
    that does not support the IO_ISOLATION capability. Add the
    MSG_FLAG_CAPS_IO_ISOLATION capability flag and check it before
    attempting to set IO isolation during suspend/resume operations.
    
    Without this check, systems with older firmware may experience
    undefined behavior or errors when entering/exiting suspend states.
    
    Fixes: ec24643bdd62 ("firmware: ti_sci: Add system suspend and resume call")
    Signed-off-by: Thomas Richard (TI.com) <[email protected]>
    Reviewed-by: Kevin Hilman <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Nishanth Menon <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
firmware_loader: make RUST_FW_LOADER_ABSTRACTIONS select FW_LOADER [+ + +]
Author: Alexandre Courbot <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
fs/9p: Don't open remote file with APPEND mode when writeback cache is used [+ + +]
Author: Tingmao Wang <[email protected]>
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 <[email protected]>
    Fixes: 4eb3117888a9 ("fs/9p: Rework cache modes and add new options to Documentation")
    Message-ID: <[email protected]>
    Signed-off-by: Dominique Martinet <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
fs/nls: Fix inconsistency between utf8_to_utf32() and utf32_to_utf8() [+ + +]
Author: Armin Wolf <[email protected]>
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 <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    Signed-off-by: Armin Wolf <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Reviewed-by: Ilpo Järvinen <[email protected]>
    Signed-off-by: Ilpo Järvinen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

fs/nls: Fix utf16 to utf8 conversion [+ + +]
Author: Armin Wolf <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Reviewed-by: Ilpo Järvinen <[email protected]>
    Signed-off-by: Ilpo Järvinen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
fs/ntfs3: out1 also needs to put mi [+ + +]
Author: Edward Adam Davis <[email protected]>
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 <[email protected]>
    Signed-off-by: Konstantin Komarov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

fs/ntfs3: Prevent memory leaks in add sub record [+ + +]
Author: Edward Adam Davis <[email protected]>
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: [email protected]
    Signed-off-by: Edward Adam Davis <[email protected]>
    Signed-off-by: Konstantin Komarov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
fuse_ctl_add_conn(): fix nlink breakage in case of early failure [+ + +]
Author: Al Viro <[email protected]>
Date:   Sun Oct 26 02:38:43 2025 -0400

    fuse_ctl_add_conn(): fix nlink breakage in case of early failure
    
    [ Upstream commit c460192aae197df1b4db1dca493c35ad529f1b64 ]
    
    fuse_ctl_remove_conn() used to decrement the link count of root
    manually; that got subsumed by simple_recursive_removal(), but
    in case when subdirectory creation has failed the latter won't
    get called.
    
    Just move the modification of parent's link count into
    fuse_ctl_add_dentry() to keep the things simple.  Allows to
    get rid of the nlink argument as well...
    
    Fixes: fcaac5b42768 "fuse_ctl: use simple_recursive_removal()"
    Acked-by: Miklos Szeredi <[email protected]>
    Signed-off-by: Al Viro <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
gfs2: Prevent recursive memory reclaim [+ + +]
Author: Andreas Gruenbacher <[email protected]>
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 <[email protected]>
    Signed-off-by: Andreas Gruenbacher <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
gpu: host1x: Fix race in syncpt alloc/free [+ + +]
Author: Mainak Sen <[email protected]>
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 <[email protected]>
    Fixes: f5ba33fb9690 ("gpu: host1x: Reserve VBLANK syncpoints at initialization")
    Signed-off-by: Mikko Perttunen <[email protected]>
    Signed-off-by: Thierry Reding <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
greybus: gb-beagleplay: Fix timeout handling in bootloader functions [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
HID: logitech-hidpp: Do not assume FAP in hidpp_send_message_sync() [+ + +]
Author: Mavroudis Chatzilazaridis <[email protected]>
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 <[email protected]>
    Tested-by: Stuart Hayhurst <[email protected]>
    Signed-off-by: Jiri Kosina <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
hwmon: sy7636a: Fix regulator_enable resource leak on error path [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Signed-off-by: Haotian Zhang <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Guenter Roeck <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
i2c: spacemit: fix detect issue [+ + +]
Author: Troy Mitchell <[email protected]>
Date:   Thu Nov 13 21:21:50 2025 +0800

    i2c: spacemit: fix detect issue
    
    [ Upstream commit 25faa5364638b86ec0d0edb4486daa9d40a0be8f ]
    
    This commit addresses two issues causing i2c detect to fail.
    
    The identified issues are:
    
    1. Incorrect error handling for BED (Bus Error No ACK/NAK):
       Before this commit, Both ALD (Arbitration Loss Detected) and
       BED returned -EAGAIN.
    2. Missing interrupt status clear after initialization in xfer():
       On the K1 SoC, simply fixing the first issue changed the error
       from -EAGAIN to -ETIMEOUT. Through tracing, it was determined that
       this is likely due to MSD (Master Stop Detected) latency issues.
    
       That means the MSD bit in the ISR may still be set on the next transfer.
       As a result, the controller won't work — we can see from the scope that
       it doesn't issue any signal.
       (This only occurs during rapid consecutive I2C transfers.
       That explains why the issue only shows up with i2cdetect.)
    
    With these two fixes, i2c device detection now functions correctly on the K1 SoC.
    
    Fixes: 5ea558473fa31 ("i2c: spacemit: add support for SpacemiT K1 SoC")
    Tested-by: Aurelien Jarno <[email protected]>
    Signed-off-by: Troy Mitchell <[email protected]>
    Reviewed-by: Aurelien Jarno <[email protected]>
    Tested-by: Michael Opdenacker <[email protected]>
    Signed-off-by: Andi Shyti <[email protected]>
    Link: https://lore.kernel.org/r/20251113-fix-k1-detect-failure-v2-1-b02a9a74f65a@linux.spacemit.com
    Signed-off-by: Sasha Levin <[email protected]>

 
i3c: fix refcount inconsistency in i3c_master_register [+ + +]
Author: Frank Li <[email protected]>
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 <[email protected]>
    Closes: https://lore.kernel.org/linux-i3c/[email protected]/T/#m2c05a982beeb14e7bf039c1d8db856734bf234c7
    Fixes: 3a379bbcea0a ("i3c: Add core I3C infrastructure")
    Signed-off-by: Frank Li <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Alexandre Belloni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

i3c: master: svc: Prevent incomplete IBI transaction [+ + +]
Author: Stanley Chu <[email protected]>
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 <[email protected]>
    Reviewed-by: Frank Li <[email protected]>
    Reviewed-by: Miquel Raynal <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Alexandre Belloni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
iavf: Implement settime64 with -EOPNOTSUPP [+ + +]
Author: Michal Schmidt <[email protected]>
Date:   Wed Nov 26 10:48:49 2025 +0100

    iavf: Implement settime64 with -EOPNOTSUPP
    
    [ Upstream commit 1e43ebcd5152b3e681a334cc6542fb21770c3a2e ]
    
    ptp_clock_settime() assumes every ptp_clock has implemented settime64().
    Stub it with -EOPNOTSUPP to prevent a NULL dereference.
    
    The fix is similar to commit 329d050bbe63 ("gve: Implement settime64
    with -EOPNOTSUPP").
    
    Fixes: d734223b2f0d ("iavf: add initial framework for registering PTP clock")
    Signed-off-by: Michal Schmidt <[email protected]>
    Reviewed-by: Aleksandr Loktionov <[email protected]>
    Reviewed-by: Tim Hostetler <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
iio: imu: bmi270: fix dev_err_probe error msg [+ + +]
Author: Rodrigo Gobbi <[email protected]>
Date:   Sun Nov 2 19:30:18 2025 -0300

    iio: imu: bmi270: fix dev_err_probe error msg
    
    [ Upstream commit 02f86101e430cce9a99a044b483c4ed5b91bb3b8 ]
    
    The bmi270 can be connected to I2C or a SPI interface. If it is a SPI,
    during probe, if devm_regmap_init() fails, it should print the "spi"
    term rather "i2c".
    
    Fixes: 92cc50a00574 ("iio: imu: bmi270: Add spi driver for bmi270 imu")
    Signed-off-by: Rodrigo Gobbi <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

iio: imu: st_lsm6dsx: Fix measurement unit for odr struct member [+ + +]
Author: Francesco Lavra <[email protected]>
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 <[email protected]>
    Acked-by: Lorenzo Bianconi <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
ima: Attach CREDS_CHECK IMA hook to bprm_creds_from_file LSM hook [+ + +]
Author: Roberto Sassu <[email protected]>
Date:   Wed Oct 8 13:35:03 2025 +0200

    ima: Attach CREDS_CHECK IMA hook to bprm_creds_from_file LSM hook
    
    [ Upstream commit 8f3fc4f3f8aa6e99266c69cc78bdaa58379e65fc ]
    
    Since commit 56305aa9b6fa ("exec: Compute file based creds only once"), the
    credentials to be applied to the process after execution are not calculated
    anymore for each step of finding intermediate interpreters (including the
    final binary), but only after the final binary to be executed without
    interpreter has been found.
    
    In particular, that means that the bprm_check_security LSM hook will not
    see the updated cred->e[ug]id for the intermediate and for the final binary
    to be executed, since the function doing this task has been moved from
    prepare_binprm(), which calls the bprm_check_security hook, to
    bprm_creds_from_file().
    
    This breaks the IMA expectation for the CREDS_CHECK hook, introduced with
    commit d906c10d8a31 ("IMA: Support using new creds in appraisal policy"),
    which expects to evaluate "the credentials that will be committed when the
    new process is started". This is clearly not the case for the CREDS_CHECK
    IMA hook, which is attached to bprm_check_security.
    
    This issue does not affect systems which load a policy with the BPRM_CHECK
    hook with no other criteria, as is the case with the built-in "tcb" and/or
    "appraise_tcb" IMA policies. The "tcb" built-in policy measures all
    executions regardless of the new credentials, and the "appraise_tcb" policy
    is written in terms of the file owner, rather than IMA hooks.
    
    However, it does affect systems without a BPRM_CHECK policy rule or with a
    BPRM_CHECK policy rule that does not include what CREDS_CHECK evaluates. As
    an extreme example, taking a standalone rule like:
    
    measure func=CREDS_CHECK euid=0
    
    This will not measure for example sudo (because CREDS_CHECK still sees the
    bprm->cred->euid set to the regular user UID), but only the subsequent
    commands after the euid was applied to the children.
    
    Make set[ug]id programs measured/appraised again by splitting
    ima_bprm_check() in two separate hook implementations (CREDS_CHECK now
    being implemented by ima_creds_check()), and by attaching CREDS_CHECK to
    the bprm_creds_from_file LSM hook.
    
    The limitation of this approach is that CREDS_CHECK will not be invoked
    anymore for the intermediate interpreters, like it was before, but only for
    the final binary. This limitation can be removed only by reverting commit
    56305aa9b6fa ("exec: Compute file based creds only once").
    
    Link: https://github.com/linux-integrity/linux/issues/3
    Fixes: 56305aa9b6fa ("exec: Compute file based creds only once")
    Cc: Serge E. Hallyn <[email protected]>
    Cc: Matthew Garrett <[email protected]>
    Cc: Eric W. Biederman <[email protected]>
    Cc: Jann Horn <[email protected]>
    Cc: Christian Brauner <[email protected]>
    Cc: Kees Cook <[email protected]>
    Signed-off-by: Roberto Sassu <[email protected]>
    Signed-off-by: Mimi Zohar <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ima: Handle error code returned by ima_filter_rule_match() [+ + +]
Author: Zhao Yipeng <[email protected]>
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 <[email protected]>
    Reviewed-by: Roberto Sassu <[email protected]>
    Signed-off-by: Mimi Zohar <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
inet: Avoid ehash lookup race in inet_ehash_insert() [+ + +]
Author: Xuanqiang Luo <[email protected]>
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 <[email protected]>
    Reviewed-by: Jiayuan Chen <[email protected]>
    Signed-off-by: Xuanqiang Luo <[email protected]>
    Reviewed-by: Eric Dumazet <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

inet: Avoid ehash lookup race in inet_twsk_hashdance_schedule() [+ + +]
Author: Xuanqiang Luo <[email protected]>
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 <[email protected]>
    Reviewed-by: Jiayuan Chen <[email protected]>
    Signed-off-by: Xuanqiang Luo <[email protected]>
    Reviewed-by: Eric Dumazet <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
interconnect: debugfs: Fix incorrect error handling for NULL path [+ + +]
Author: Kuan-Wei Chiu <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Georgi Djakov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

interconnect: qcom: msm8996: add missing link to SLAVE_USB_HS [+ + +]
Author: Dmitry Baryshkov <[email protected]>
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 <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Georgi Djakov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
io_uring: use WRITE_ONCE for user shared memory [+ + +]
Author: Pavel Begunkov <[email protected]>
Date:   Thu Nov 6 12:58:19 2025 +0000

    io_uring: use WRITE_ONCE for user shared memory
    
    [ Upstream commit 93e197e524b14d185d011813b72773a1a49d932d ]
    
    IORING_SETUP_NO_MMAP rings remain user accessible even before the ctx
    setup is finalised, so use WRITE_ONCE consistently when initialising
    rings.
    
    Fixes: 03d89a2de25bb ("io_uring: support for user allocated memory for rings/sqes")
    Signed-off-by: Pavel Begunkov <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
iomap: always run error completions in user context [+ + +]
Author: Christoph Hellwig <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Reviewed-by: Jan Kara <[email protected]>
    Reviewed-by: Chaitanya Kulkarni <[email protected]>
    Signed-off-by: Christian Brauner <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
iommu/amd: Fix potential out-of-bounds read in iommu_mmio_show [+ + +]
Author: Songtang Liu <[email protected]>
Date:   Thu Oct 30 22:55:25 2025 -0700

    iommu/amd: Fix potential out-of-bounds read in iommu_mmio_show
    
    [ Upstream commit a0c7005333f9a968abb058b1d77bbcd7fb7fd1e7 ]
    
    In iommu_mmio_write(), it validates the user-provided offset with the
    check: `iommu->dbg_mmio_offset > iommu->mmio_phys_end - 4`.
    This assumes a 4-byte access. However, the corresponding
    show handler, iommu_mmio_show(), uses readq() to perform an 8-byte
    (64-bit) read.
    
    If a user provides an offset equal to `mmio_phys_end - 4`, the check
    passes, and will lead to a 4-byte out-of-bounds read.
    
    Fix this by adjusting the boundary check to use sizeof(u64), which
    corresponds to the size of the readq() operation.
    
    Fixes: 7a4ee419e8c1 ("iommu/amd: Add debugfs support to dump IOMMU MMIO registers")
    Signed-off-by: Songtang Liu <[email protected]>
    Reviewed-by: Dheeraj Kumar Srivastava <[email protected]>
    Tested-by: Dheeraj Kumar Srivastava <[email protected]>
    Signed-off-by: Joerg Roedel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
iommu/arm-smmu-qcom: Enable use of all SMR groups when running bare-metal [+ + +]
Author: Stephan Gerhold <[email protected]>
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 <[email protected]>
    Signed-off-by: Will Deacon <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
iommu/arm-smmu-v3: Fix error check in arm_smmu_alloc_cd_tables [+ + +]
Author: Ryan Huang <[email protected]>
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 <[email protected]>
    Signed-off-by: Ryan Huang <[email protected]>
    Reviewed-by: Nicolin Chen <[email protected]>
    Reviewed-by: Pranjal Shrivastava <[email protected]>
    Reviewed-by: Jason Gunthorpe <[email protected]>
    Signed-off-by: Will Deacon <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
iommu/vt-d: Fix unused invalidation hint in qi_desc_iotlb [+ + +]
Author: Aashish Sharma <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Lu Baolu <[email protected]>
    Signed-off-by: Joerg Roedel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
ipv6: clear RA flags when adding a static route [+ + +]
Author: Fernando Fernandez Mancera <[email protected]>
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 <[email protected]>
    Closes: https://lore.kernel.org/netdev/[email protected]/
    Signed-off-by: Fernando Fernandez Mancera <[email protected]>
    Reviewed-by: David Ahern <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
irqchip/bcm2712-mip: Fix OF node reference imbalance [+ + +]
Author: Johan Hovold <[email protected]>
Date:   Mon Oct 13 11:46:01 2025 +0200

    irqchip/bcm2712-mip: Fix OF node reference imbalance
    
    [ Upstream commit 0435bcc4e5858c632c1b6d5afa637580d9779890 ]
    
    The init callback must not decrement the reference count of the provided
    irqchip OF node.
    
    This should not cause any trouble currently, but if the driver ever
    starts probe deferring it could lead to warnings about reference
    underflow and saturation.
    
    Fixes: 32c6c054661a ("irqchip: Add Broadcom BCM2712 MSI-X interrupt controller")
    Signed-off-by: Johan Hovold <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

irqchip/bcm2712-mip: Fix section mismatch [+ + +]
Author: Johan Hovold <[email protected]>
Date:   Mon Oct 13 11:46:02 2025 +0200

    irqchip/bcm2712-mip: Fix section mismatch
    
    [ Upstream commit a8452d1d59d46066051e676d5daa472cd08cb304 ]
    
    Platform drivers can be probed after their init sections have been
    discarded so the irqchip init callback must not live in init.
    
    Fixes: 32c6c054661a ("irqchip: Add Broadcom BCM2712 MSI-X interrupt controller")
    Signed-off-by: Johan Hovold <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
irqchip/imx-mu-msi: Fix section mismatch [+ + +]
Author: Johan Hovold <[email protected]>
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 <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
irqchip/irq-bcm7038-l1: Fix section mismatch [+ + +]
Author: Johan Hovold <[email protected]>
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 <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
irqchip/irq-bcm7120-l2: Fix section mismatch [+ + +]
Author: Johan Hovold <[email protected]>
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 <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
irqchip/irq-brcmstb-l2: Fix section mismatch [+ + +]
Author: Johan Hovold <[email protected]>
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 <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
irqchip/mchp-eic: Fix error code in mchp_eic_domain_alloc() [+ + +]
Author: Dan Carpenter <[email protected]>
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 <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Reviewed-by: Claudiu Beznea <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
irqchip/qcom-irq-combiner: Fix section mismatch [+ + +]
Author: Johan Hovold <[email protected]>
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 <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
irqchip/renesas-rzg2l: Fix section mismatch [+ + +]
Author: Johan Hovold <[email protected]>
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 <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Reviewed-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
irqchip/starfive-jh8100: Fix section mismatch [+ + +]
Author: Johan Hovold <[email protected]>
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 <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Reviewed-by: Changhuang Liang <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
kbuild: install-extmod-build: Fix when given dir outside the build dir [+ + +]
Author: James Le Cuirot <[email protected]>
Date:   Thu Oct 16 10:14:17 2025 +0100

    kbuild: install-extmod-build: Fix when given dir outside the build dir
    
    [ Upstream commit 5ff90d427ef841fa48608d0c19a81c48d6126d46 ]
    
    Commit b5e395653546 ("kbuild: install-extmod-build: Fix build when
    specifying KBUILD_OUTPUT") tried to address the "build" variable
    expecting a relative path by using `realpath --relative-base=.`, but
    this only works when the given directory is below the current directory.
    `realpath --relative-to=.` will return a relative path in all cases.
    
    Fixes: b5e395653546 ("kbuild: install-extmod-build: Fix build when specifying KBUILD_OUTPUT")
    Signed-off-by: James Le Cuirot <[email protected]>
    Reviewed-by: Nicolas Schier <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Nathan Chancellor <[email protected]>
    Stable-dep-of: 4ab2ee307983 ("kbuild: install-extmod-build: Properly fix CC expansion when ccache is used")
    Signed-off-by: Sasha Levin <[email protected]>

kbuild: install-extmod-build: Properly fix CC expansion when ccache is used [+ + +]
Author: Abel Vesa <[email protected]>
Date:   Tue Nov 11 08:43:51 2025 +0200

    kbuild: install-extmod-build: Properly fix CC expansion when ccache is used
    
    [ Upstream commit 4ab2ee307983548b29ddaab0ecaef82d526cf4c9 ]
    
    Currently, when cross-compiling and ccache is used, the expanding of CC
    turns out to be without any quotes, leading to the following error:
    
    make[4]: *** No rule to make target 'aarch64-linux-gnu-gcc'.  Stop.
    make[3]: *** [Makefile:2164: run-command] Error 2
    
    And it makes sense, because after expansion it ends up like this:
    
    make run-command KBUILD_RUN_COMMAND=+$(MAKE) \
    HOSTCC=ccache aarch64-linux-gnu-gcc VPATH= srcroot=. $(build)= ...
    
    So add another set of double quotes to surround whatever CC expands to
    to make sure the aarch64-linux-gnu-gcc isn't expanded to something that
    looks like an entirely separate target.
    
    Fixes: 140332b6ed72 ("kbuild: fix linux-headers package build when $(CC) cannot link userspace")
    Signed-off-by: Abel Vesa <[email protected]>
    Reviewed-by: Nicolas Schier <[email protected]>
    Link: https://patch.msgid.link/20251111-kbuild-install-extmod-build-fix-cc-expand-third-try-v2-1-15ba1b37e71a@linaro.org
    Signed-off-by: Nathan Chancellor <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
leds: netxbig: Fix GPIO descriptor leak in error paths [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Signed-off-by: Haotian Zhang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Lee Jones <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

leds: rgb: leds-qcom-lpg: Don't enable TRILED when configuring PWM [+ + +]
Author: Fenglin Wu <[email protected]>
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 <[email protected]>
    Reviewed-by: Bjorn Andersson <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Lee Jones <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

leds: upboard: Fix module alias [+ + +]
Author: Thomas Richard <[email protected]>
Date:   Mon Oct 20 17:36:25 2025 +0200

    leds: upboard: Fix module alias
    
    [ Upstream commit c06a017439110debd335b6864bc2d69835624235 ]
    
    The module alias does not match the cell name defined in the MFD driver,
    preventing automatic loading when the driver is built as a module. So fix
    the module alias to ensure proper module auto-loading.
    
    Fixes: 0ef2929a0181 ("leds: Add AAEON UP board LED driver")
    Signed-off-by: Thomas Richard <[email protected]>
    Reviewed-by: Krzysztof Kozlowski <[email protected]>
    Link: https://patch.msgid.link/20251020-leds-upboard-fix-module-alias-v2-1-84ac5c3a1a81@bootlin.com
    Signed-off-by: Lee Jones <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
lib/vsprintf: Check pointer before dereferencing in time_and_date() [+ + +]
Author: Andy Shevchenko <[email protected]>
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 <[email protected]>
    Reviewed-by: Petr Mladek <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Petr Mladek <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
libbpf: Fix parsing of multi-split BTF [+ + +]
Author: Alan Maguire <[email protected]>
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 <[email protected]>
    Signed-off-by: Andrii Nakryiko <[email protected]>
    Link: https://lore.kernel.org/bpf/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
Linux: Linux 6.17.13 [+ + +]
Author: Greg Kroah-Hartman <[email protected]>
Date:   Thu Dec 18 14:00:17 2025 +0100

    Linux 6.17.13
    
    Link: https://lore.kernel.org/r/[email protected]
    Link: https://lore.kernel.org/r/[email protected]
    Tested-by: Brett A C Sheffield <[email protected]>
    Tested-by: Dileep Malepu <[email protected]>
    Tested-by: Salvatore Bonaccorso <[email protected]>
    Tested-by: Florian Fainelli <[email protected]>
    Tested-by: Pavel Machek (CIP) <[email protected]>
    Tested-by: Ron Economos <[email protected]>
    Tested-by: Jeffrin Jose T <[email protected]>
    Tested-by: Jon Hunter <[email protected]>
    Tested-by: Peter Schneider <[email protected]>
    Tested-by: Mark Brown <[email protected]>
    Tested-by: Miguel Ojeda <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
locktorture: Fix memory leak in param_set_cpumask() [+ + +]
Author: Wang Liang <[email protected]>
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 <[email protected]>
    Signed-off-by: Wang Liang <[email protected]>
    Signed-off-by: Paul E. McKenney <[email protected]>
    Signed-off-by: Frederic Weisbecker <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
macintosh/mac_hid: fix race condition in mac_hid_toggle_emumouse [+ + +]
Author: Long Li <[email protected]>
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 <[email protected]>
    Signed-off-by: Madhavan Srinivasan <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
md/raid5: fix IO hang when array is broken with IO inflight [+ + +]
Author: Yu Kuai <[email protected]>
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/[email protected]
    Fixes: d87f064f5874 ("md: never update metadata when array is read-only.")
    Signed-off-by: Yu Kuai <[email protected]>
    Reviewed-by: Li Nan <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
md: avoid repeated calls to del_gendisk [+ + +]
Author: Xiao Ni <[email protected]>
Date:   Wed Oct 29 14:34:19 2025 +0800

    md: avoid repeated calls to del_gendisk
    
    [ Upstream commit 90e3bb44c0a86e245d8e5c6520206fa113acb1ee ]
    
    There is a uaf problem which is found by case 23rdev-lifetime:
    
    Oops: general protection fault, probably for non-canonical address 0xdead000000000122
    RIP: 0010:bdi_unregister+0x4b/0x170
    Call Trace:
     <TASK>
     __del_gendisk+0x356/0x3e0
     mddev_unlock+0x351/0x360
     rdev_attr_store+0x217/0x280
     kernfs_fop_write_iter+0x14a/0x210
     vfs_write+0x29e/0x550
     ksys_write+0x74/0xf0
     do_syscall_64+0xbb/0x380
     entry_SYSCALL_64_after_hwframe+0x77/0x7f
    RIP: 0033:0x7ff5250a177e
    
    The sequence is:
    1. rdev remove path gets reconfig_mutex
    2. rdev remove path release reconfig_mutex in mddev_unlock
    3. md stop calls do_md_stop and sets MD_DELETED
    4. rdev remove path calls del_gendisk because MD_DELETED is set
    5. md stop path release reconfig_mutex and calls del_gendisk again
    
    So there is a race condition we should resolve. This patch adds a
    flag MD_DO_DELETE to avoid the race condition.
    
    Link: https://lore.kernel.org/linux-raid/[email protected]
    Fixes: 9e59d609763f ("md: call del_gendisk in control path")
    Signed-off-by: Xiao Ni <[email protected]>
    Suggested-by: Yu Kuai <[email protected]>
    Reviewed-by: Li Nan <[email protected]>
    Signed-off-by: Yu Kuai <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

md: delete md_redundancy_group when array is becoming inactive [+ + +]
Author: Li Nan <[email protected]>
Date:   Mon Nov 3 20:57:53 2025 +0800

    md: delete md_redundancy_group when array is becoming inactive
    
    [ Upstream commit 0ce112d9171ad766d4c6716951e73f91a0bfc184 ]
    
    'md_redundancy_group' are created in md_run() and deleted in del_gendisk(),
    but these are not paired. Writing inactive/active to sysfs array_state can
    trigger md_run() multiple times without del_gendisk(), leading to
    duplicate creation as below:
    
     sysfs: cannot create duplicate filename '/devices/virtual/block/md0/md/sync_action'
     Call Trace:
      dump_stack_lvl+0x9f/0x120
      dump_stack+0x14/0x20
      sysfs_warn_dup+0x96/0xc0
      sysfs_add_file_mode_ns+0x19c/0x1b0
      internal_create_group+0x213/0x830
      sysfs_create_group+0x17/0x20
      md_run+0x856/0xe60
      ? __x64_sys_openat+0x23/0x30
      do_md_run+0x26/0x1d0
      array_state_store+0x559/0x760
      md_attr_store+0xc9/0x1e0
      sysfs_kf_write+0x6f/0xa0
      kernfs_fop_write_iter+0x141/0x2a0
      vfs_write+0x1fc/0x5a0
      ksys_write+0x79/0x180
      __x64_sys_write+0x1d/0x30
      x64_sys_call+0x2818/0x2880
      do_syscall_64+0xa9/0x580
      entry_SYSCALL_64_after_hwframe+0x4b/0x53
     md: cannot register extra attributes for md0
    
    Creation of it depends on 'pers', its lifecycle cannot be aligned with
    gendisk. So fix this issue by triggering 'md_redundancy_group' deletion
    when the array is becoming inactive.
    
    Link: https://lore.kernel.org/linux-raid/[email protected]
    Fixes: 790abe4d77af ("md: remove/add redundancy group only in level change")
    Signed-off-by: Li Nan <[email protected]>
    Reviewed-by: Xiao Ni <[email protected]>
    Signed-off-by: Yu Kuai <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

md: delete mddev kobj before deleting gendisk kobj [+ + +]
Author: Xiao Ni <[email protected]>
Date:   Sun Sep 28 09:24:24 2025 +0800

    md: delete mddev kobj before deleting gendisk kobj
    
    [ Upstream commit cc394b94dc40b661efc9895665abf03640ffff2d ]
    
    In sync del gendisk path, it deletes gendisk first and the directory
    /sys/block/md is removed. Then it releases mddev kobj in a delayed work.
    If we enable debug log in sysfs_remove_group, we can see the debug log
    'sysfs group bitmap not found for kobject md'. It's the reason that the
    parent kobj has been deleted, so it can't find parent directory.
    
    In creating path, it allocs gendisk first, then adds mddev kobj. So it
    should delete mddev kobj before deleting gendisk.
    
    Before commit 9e59d609763f ("md: call del_gendisk in control path"), it
    releases mddev kobj first. If the kobj hasn't been deleted, it does clean
    job and deletes the kobj. Then it calls del_gendisk and releases gendisk
    kobj. So it doesn't need to call kobject_del to delete mddev kobj. After
    this patch, in sync del gendisk path, the sequence changes. So it needs
    to call kobject_del to delete mddev kobj.
    
    After this patch, the sequence is:
    1. kobject del mddev kobj
    2. del_gendisk deletes gendisk kobj
    3. mddev_delayed_delete releases mddev kobj
    4. md_kobj_release releases gendisk kobj
    
    Link: https://lore.kernel.org/linux-raid/[email protected]
    Fixes: 9e59d609763f ("md: call del_gendisk in control path")
    Signed-off-by: Xiao Ni <[email protected]>
    Reviewed-by: Li Nan <[email protected]>
    Signed-off-by: Yu Kuai <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

md: fix rcu protection in md_wakeup_thread [+ + +]
Author: Yun Zhou <[email protected]>
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/[email protected]
    Fixes: 446931543982 ("md: protect md_thread with rcu")
    Signed-off-by: Yun Zhou <[email protected]>
    Reviewed-by: Li Nan <[email protected]>
    Reviewed-by: Yu Kuai <[email protected]>
    Signed-off-by: Yu Kuai <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
mfd: da9055: Fix missing regmap_del_irq_chip() in error path [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Lee Jones <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

mfd: mt6358-irq: Fix missing irq_domain_remove() in error path [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Lee Jones <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

mfd: mt6397-irq: Fix missing irq_domain_remove() in error path [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Lee Jones <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
misc: rp1: Fix an error handling path in rp1_probe() [+ + +]
Author: Christophe JAILLET <[email protected]>
Date:   Sat Nov 8 08:14:04 2025 +0100

    misc: rp1: Fix an error handling path in rp1_probe()
    
    [ Upstream commit 43cd4b634ef90c4e2ff75eaeb361786fa04c8874 ]
    
    When DT is used to get the reference of 'rp1_node', it should be released
    when not needed anymore, otherwise it is leaking.
    
    In such a case, add the missing of_node_put() call at the end of the probe,
    as already done in the error handling path.
    
    Fixes: 49d63971f963 ("misc: rp1: RaspberryPi RP1 misc driver")
    Signed-off-by: Christophe JAILLET <[email protected]>
    Reviewed-by: Andrea della Porta <[email protected]>
    Link: https://patch.msgid.link/9bc1206de787fa86384f3e5ba0a8027947bc00ff.1762585959.git.christophe.jaillet@wanadoo.fr
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
mshv: Fix create memory region overlap check [+ + +]
Author: Nuno Das Neves <[email protected]>
Date:   Thu Nov 6 14:13:30 2025 -0800

    mshv: Fix create memory region overlap check
    
    [ Upstream commit ba9eb9b86d232854e983203dc2fb1ba18e316681 ]
    
    The current check is incorrect; it only checks if the beginning or end
    of a region is within an existing region. This doesn't account for
    userspace specifying a region that begins before and ends after an
    existing region.
    
    Change the logic to a range intersection check against gfns and uaddrs
    for each region.
    
    Remove mshv_partition_region_by_uaddr() as it is no longer used.
    
    Fixes: 621191d709b1 ("Drivers: hv: Introduce mshv_root module to expose /dev/mshv to VMMs")
    Reported-by: Michael Kelley <[email protected]>
    Closes: https://lore.kernel.org/linux-hyperv/SN6PR02MB41575BE0406D3AB22E1D7DB5D4C2A@SN6PR02MB4157.namprd02.prod.outlook.com/
    Signed-off-by: Nuno Das Neves <[email protected]>
    Reviewed-by: Michael Kelley <[email protected]>
    Signed-off-by: Wei Liu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

mshv: Fix deposit memory in MSHV_ROOT_HVCALL [+ + +]
Author: Nuno Das Neves <[email protected]>
Date:   Fri Oct 17 11:58:17 2025 -0700

    mshv: Fix deposit memory in MSHV_ROOT_HVCALL
    
    [ Upstream commit 4cc1aa469cd6b714adc958547a4866247bfd60a9 ]
    
    When the MSHV_ROOT_HVCALL ioctl is executing a hypercall, and gets
    HV_STATUS_INSUFFICIENT_MEMORY, it deposits memory and then returns
    -EAGAIN to userspace. The expectation is that the VMM will retry.
    
    However, some VMM code in the wild doesn't do this and simply fails.
    Rather than force the VMM to retry, change the ioctl to deposit
    memory on demand and immediately retry the hypercall as is done with
    all the other hypercall helper functions.
    
    In addition to making the ioctl easier to use, removing the need for
    multiple syscalls improves performance.
    
    There is a complication: unlike the other hypercall helper functions,
    in MSHV_ROOT_HVCALL the input is opaque to the kernel. This is
    problematic for rep hypercalls, because the next part of the input
    list can't be copied on each loop after depositing pages (this was
    the original reason for returning -EAGAIN in this case).
    
    Introduce hv_do_rep_hypercall_ex(), which adds a 'rep_start'
    parameter. This solves the issue, allowing the deposit loop in
    MSHV_ROOT_HVCALL to restart a rep hypercall after depositing pages
    partway through.
    
    Fixes: 621191d709b1 ("Drivers: hv: Introduce mshv_root module to expose /dev/mshv to VMMs")
    Signed-off-by: Nuno Das Neves <[email protected]>
    Reviewed-by: Michael Kelley <[email protected]>
    Signed-off-by: Wei Liu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
mt76: mt7615: Fix memory leak in mt7615_mcu_wtbl_sta_add() [+ + +]
Author: Zilin Guan <[email protected]>
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 <[email protected]>
    Acked-by: Lorenzo Bianconi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
mtd: lpddr_cmds: fix signed shifts in lpddr_cmds [+ + +]
Author: Ivan Stepchenko <[email protected]>
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 <[email protected]>
    Signed-off-by: Miquel Raynal <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

mtd: nand: relax ECC parameter validation check [+ + +]
Author: Aryan Srivastava <[email protected]>
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 <[email protected]>
    Signed-off-by: Miquel Raynal <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

mtd: rawnand: lpc32xx_slc: fix GPIO descriptor leak on probe error and remove [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Signed-off-by: Miquel Raynal <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

mtd: rawnand: renesas: Handle devm_pm_runtime_enable() errors [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Reviewed-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Miquel Raynal <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
nbd: defer config put in recv_work [+ + +]
Author: Zheng Qixing <[email protected]>
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: [email protected]
    Closes: https://lore.kernel.org/all/[email protected]/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 <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

nbd: defer config unlock in nbd_genl_connect [+ + +]
Author: Zheng Qixing <[email protected]>
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 <[email protected]>
    Reviewed-by: Yu Kuai <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
net/sched: sch_cake: Fix incorrect qlen reduction in cake_drop [+ + +]
Author: Xiang Mei <[email protected]>
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 <[email protected]>
    Reviewed-by: Toke Høiland-Jørgensen <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Paolo Abeni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
net: dsa: b53: add support for 5389/5397/5398 ARL entry format [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 7 09:07:48 2025 +0100

    net: dsa: b53: add support for 5389/5397/5398 ARL entry format
    
    [ Upstream commit 300f78e8b6b7be17c2c78afeded75be68acb1aa7 ]
    
    BCM5389, BCM5397 and BCM5398 use a different ARL entry format with just
    a 16 bit fwdentry register, as well as different search control and data
    offsets.
    
    So add appropriate ops for them and switch those chips to use them.
    
    Signed-off-by: Jonas Gorski <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Stable-dep-of: 8e46aacea426 ("net: dsa: b53: use same ARL search result offset for BCM5325/65")
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: add support for bcm63xx ARL entry format [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 7 09:07:49 2025 +0100

    net: dsa: b53: add support for bcm63xx ARL entry format
    
    [ Upstream commit 2b3013ac03028a2364d8779719bb6bfbc0212435 ]
    
    The ARL registers of BCM63XX embedded switches are somewhat unique. The
    normal ARL table access registers have the same format as BCM5389, but
    the ARL search registers differ:
    
    * SRCH_CTL is at the same offset of BCM5389, but 16 bits wide. It does
      not have more fields, just needs to be accessed by a 16 bit read.
    * SRCH_RSLT_MACVID and SRCH_RSLT are aligned to 32 bit, and have shifted
      offsets.
    * SRCH_RSLT has a different format than the normal ARL data entry
      register.
    * There is only one set of ENTRY_N registers, implying a 1 bin layout.
    
    So add appropriate ops for bcm63xx and let it use it.
    
    Signed-off-by: Jonas Gorski <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Stable-dep-of: 3b08863469aa ("net: dsa: b53: fix BCM5325/65 ARL entry multicast port masks")
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: b53_arl_read{,25}(): use the entry for comparision [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 7 09:07:42 2025 +0100

    net: dsa: b53: b53_arl_read{,25}(): use the entry for comparision
    
    [ Upstream commit a6e4fd38bf2f2e2363b61c27f4e6c49b14e4bb07 ]
    
    Align the b53_arl_read{,25}() functions by consistently using the
    parsed arl entry instead of parsing the raw registers again.
    
    Signed-off-by: Jonas Gorski <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Stable-dep-of: 8e46aacea426 ("net: dsa: b53: use same ARL search result offset for BCM5325/65")
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: fix BCM5325/65 ARL entry multicast port masks [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 28 09:06:23 2025 +0100

    net: dsa: b53: fix BCM5325/65 ARL entry multicast port masks
    
    [ Upstream commit 3b08863469aa6028ac7c3120966f4e2f6051cf6b ]
    
    We currently use the mask 0xf for writing and reading b53_entry::port,
    but this is only correct for unicast ARL entries. Multicast ARL entries
    use a bitmask, and 0xf is not enough space for ports > 3, which includes
    the CPU port.
    
    So extend the mask accordingly to also fit port 4 (bit 4) and MII (bit
    5). According to the datasheet the multicast port mask is [60:48],
    making it 12 bit wide, but bits 60-55 are reserved anyway, and collide
    with the priority field at [60:59], so I am not sure if this is valid.
    Therefore leave it at the actual used range, [53:48].
    
    The ARL search result register differs a bit, and there the mask is only
    [52:48], so only spanning the user ports. The MII port bit is
    contained in the Search Result Extension register. So create a separate
    search result parse function that properly handles this.
    
    Fixes: c45655386e53 ("net: dsa: b53: add support for FDB operations on 5325/5365")
    Reviewed-by: Florian Fainelli <[email protected]>
    Signed-off-by: Jonas Gorski <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: fix BCM5325/65 ARL entry VIDs [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 28 09:06:24 2025 +0100

    net: dsa: b53: fix BCM5325/65 ARL entry VIDs
    
    [ Upstream commit d39514e6a2d14f57830d649e2bf03b49612c2f73 ]
    
    BCM5325/65's ARL entry registers do not contain the VID, only the search
    result register does. ARL entries have a separate VID entry register for
    the index into the VLAN table.
    
    So make ARL entry accessors use the VID entry registers instead, and
    move the VLAN ID field definition to the search register definition.
    
    Fixes: c45655386e53 ("net: dsa: b53: add support for FDB operations on 5325/5365")
    Signed-off-by: Jonas Gorski <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: fix CPU port unicast ARL entries for BCM5325/65 [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 28 09:06:22 2025 +0100

    net: dsa: b53: fix CPU port unicast ARL entries for BCM5325/65
    
    [ Upstream commit 85132103f700b1340fc17df8a981509d17bf4872 ]
    
    On BCM5325 and BCM5365, unicast ARL entries use 8 as the value for the
    CPU port, so we need to translate it to/from 5 as used for the CPU port
    at most other places.
    
    Fixes: c45655386e53 ("net: dsa: b53: add support for FDB operations on 5325/5365")
    Signed-off-by: Jonas Gorski <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: fix extracting VID from entry for BCM5325/65 [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 28 09:06:20 2025 +0100

    net: dsa: b53: fix extracting VID from entry for BCM5325/65
    
    [ Upstream commit 9316012dd01952f75e37035360138ccc786ef727 ]
    
    BCM5325/65's Entry register uses the highest three bits for
    VALID/STATIC/AGE, so shifting by 53 only will add these to
    b53_arl_entry::vid.
    
    So make sure to mask the vid value as well, to not get invalid VIDs.
    
    Fixes: c45655386e53 ("net: dsa: b53: add support for FDB operations on 5325/5365")
    Reviewed-by: Florian Fainelli <[email protected]>
    Tested-by: Álvaro Fernández Rojas <[email protected]>
    Signed-off-by: Jonas Gorski <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: fix VLAN_ID_IDX write size for BCM5325/65 [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 28 09:06:19 2025 +0100

    net: dsa: b53: fix VLAN_ID_IDX write size for BCM5325/65
    
    [ Upstream commit 6f268e275c74dae0536e0b61982a8db25bcf4f16 ]
    
    Since BCM5325 and BCM5365 only support up to 256 VLANs, the VLAN_ID_IDX
    register is only 8 bit wide, not 16 bit, so use an appropriate accessor.
    
    Fixes: c45655386e53 ("net: dsa: b53: add support for FDB operations on 5325/5365")
    Reviewed-by: Florian Fainelli <[email protected]>
    Tested-by: Álvaro Fernández Rojas <[email protected]>
    Signed-off-by: Jonas Gorski <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: move ARL entry functions into ops struct [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 7 09:07:47 2025 +0100

    net: dsa: b53: move ARL entry functions into ops struct
    
    [ Upstream commit a7e73339ad46ade76d29fb6cc7d7854222608c26 ]
    
    Now that the differences in ARL entry formats are neatly contained into
    functions per chip family, wrap them into an ops struct and add wrapper
    functions to access them.
    
    Signed-off-by: Jonas Gorski <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Stable-dep-of: 8e46aacea426 ("net: dsa: b53: use same ARL search result offset for BCM5325/65")
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: move reading ARL entries into their own function [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 7 09:07:43 2025 +0100

    net: dsa: b53: move reading ARL entries into their own function
    
    [ Upstream commit 4a291fe7226736a465ddb3fa93c21fcef7162ec7 ]
    
    Instead of duplicating the whole code iterating over all bins for
    BCM5325, factor out reading and parsing the entry into its own
    functions, and name it the modern one after the first chip with that ARL
    format, (BCM53)95.
    
    Signed-off-by: Jonas Gorski <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Stable-dep-of: 8e46aacea426 ("net: dsa: b53: use same ARL search result offset for BCM5325/65")
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: move writing ARL entries into their own functions [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 7 09:07:44 2025 +0100

    net: dsa: b53: move writing ARL entries into their own functions
    
    [ Upstream commit bf6e9d2ae1dbafee53ec4ccd126595172e1e5278 ]
    
    Move writing ARL entries into individual functions for each format.
    
    Signed-off-by: Jonas Gorski <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Stable-dep-of: 8e46aacea426 ("net: dsa: b53: use same ARL search result offset for BCM5325/65")
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: provide accessors for accessing ARL_SRCH_CTL [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 7 09:07:45 2025 +0100

    net: dsa: b53: provide accessors for accessing ARL_SRCH_CTL
    
    [ Upstream commit 1716be6db04af53bac9b869f01156a460595cf41 ]
    
    In order to more easily support more formats, move accessing
    ARL_SRCH_CTL into helper functions to contain the differences.
    
    Signed-off-by: Jonas Gorski <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Stable-dep-of: 8e46aacea426 ("net: dsa: b53: use same ARL search result offset for BCM5325/65")
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: split reading search entry into their own functions [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 7 09:07:46 2025 +0100

    net: dsa: b53: split reading search entry into their own functions
    
    [ Upstream commit e0c476f325a8c9b961a3d446c24d3c8ecae7d186 ]
    
    Split reading search entries into a function for each format.
    
    Signed-off-by: Jonas Gorski <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Stable-dep-of: 8e46aacea426 ("net: dsa: b53: use same ARL search result offset for BCM5325/65")
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: b53: use same ARL search result offset for BCM5325/65 [+ + +]
Author: Jonas Gorski <[email protected]>
Date:   Fri Nov 28 09:06:21 2025 +0100

    net: dsa: b53: use same ARL search result offset for BCM5325/65
    
    [ Upstream commit 8e46aacea4264bcb8d4265fb07577afff58ae78d ]
    
    BCM5365's search result is at the same offset as BCM5325's search
    result, and they (mostly) share the same format, so switch BCM5365 to
    BCM5325's arl ops.
    
    Fixes: c45655386e53 ("net: dsa: b53: add support for FDB operations on 5325/5365")
    Reviewed-by: Florian Fainelli <[email protected]>
    Tested-by: Álvaro Fernández Rojas <[email protected]>
    Signed-off-by: Jonas Gorski <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: dsa: xrs700x: reject unsupported HSR configurations [+ + +]
Author: Vladimir Oltean <[email protected]>
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 <[email protected]>
    Signed-off-by: Vladimir Oltean <[email protected]>
    Reviewed-by: George McCollister <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: hsr: create an API to get hsr port type [+ + +]
Author: Xiaoliang Yang <[email protected]>
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 <[email protected]>
    Cc: Lukasz Majewski <[email protected]>
    Signed-off-by: Xiaoliang Yang <[email protected]>
    Signed-off-by: Vladimir Oltean <[email protected]>
    Reviewed-by: Łukasz Majewski <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Stable-dep-of: 30296ac76426 ("net: dsa: xrs700x: reject unsupported HSR configurations")
    Signed-off-by: Sasha Levin <[email protected]>

net: netpoll: initialize work queue before error checks [+ + +]
Author: Breno Leitao <[email protected]>
Date:   Thu Nov 27 07:30:15 2025 -0800

    net: netpoll: initialize work queue before error checks
    
    [ Upstream commit e5235eb6cfe02a51256013a78f7b28779a7740d5 ]
    
    Prevent a kernel warning when netconsole setup fails on devices with
    IFF_DISABLE_NETPOLL flag. The warning (at kernel/workqueue.c:4242 in
    __flush_work) occurs because the cleanup path tries to cancel an
    uninitialized work queue.
    
    When __netpoll_setup() encounters a device with IFF_DISABLE_NETPOLL,
    it fails early and calls skb_pool_flush() for cleanup. This function
    calls cancel_work_sync(&np->refill_wq), but refill_wq hasn't been
    initialized yet, triggering the warning.
    
    Move INIT_WORK() to the beginning of __netpoll_setup(), ensuring the
    work queue is properly initialized before any potential failure points.
    This allows the cleanup path to safely cancel the work queue regardless
    of where the setup fails.
    
    Fixes: 248f6571fd4c5 ("netpoll: Optimize skb refilling on critical path")
    Signed-off-by: Breno Leitao <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: phy: Add helper for fixing RGMII PHY mode based on internal mac delay [+ + +]
Author: Inochi Amaoto <[email protected]>
Date:   Fri Nov 14 08:38:04 2025 +0800

    net: phy: Add helper for fixing RGMII PHY mode based on internal mac delay
    
    [ Upstream commit 24afd7827efb7c69adfc41835390470e3eec4740 ]
    
    The "phy-mode" property of devicetree indicates whether the PCB has
    delay now, which means the mac needs to modify the PHY mode based
    on whether there is an internal delay in the mac.
    
    This modification is similar for many ethernet drivers. To simplify
    code, define the helper phy_fix_phy_mode_for_mac_delays(speed, mac_txid,
    mac_rxid) to fix PHY mode based on whether mac adds internal delay.
    
    Suggested-by: Russell King (Oracle) <[email protected]>
    Signed-off-by: Inochi Amaoto <[email protected]>
    Reviewed-by: Maxime Chevallier <[email protected]>
    Reviewed-by: Simon Horman <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Stable-dep-of: db37c6e510de ("net: stmmac: dwmac-sophgo: Add phy interface filter")
    Signed-off-by: Sasha Levin <[email protected]>

net: phy: adin1100: Fix software power-down ready condition [+ + +]
Author: Alexander Dahl <[email protected]>
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 <[email protected]>
    Reviewed-by: Russell King (Oracle) <[email protected]>
    Acked-by: Nuno Sá <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: phy: aquantia: check for NVMEM deferral [+ + +]
Author: Robert Marko <[email protected]>
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 <[email protected]>
    Reviewed-by: Russell King (Oracle) <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: phy: realtek: create rtl8211f_config_rgmii_delay() [+ + +]
Author: Vladimir Oltean <[email protected]>
Date:   Tue Nov 18 01:40:28 2025 +0200

    net: phy: realtek: create rtl8211f_config_rgmii_delay()
    
    [ Upstream commit 8e982441ba601d982dd0739972115d85ae01d99b ]
    
    The control flow in rtl8211f_config_init() has some pitfalls which were
    probably unintended. Specifically it has an early return:
    
            switch (phydev->interface) {
            ...
            default: /* the rest of the modes imply leaving delay as is. */
                    return 0;
            }
    
    which exits the entire config_init() function. This means it also skips
    doing things such as disabling CLKOUT or disabling PHY-mode EEE.
    
    For the RTL8211FS, which uses PHY_INTERFACE_MODE_SGMII, this might be a
    problem. However, I don't know that it is, so there is no Fixes: tag.
    The issue was observed through code inspection.
    
    Signed-off-by: Vladimir Oltean <[email protected]>
    Reviewed-by: Andrew Lunn <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: stmmac: dwmac-sophgo: Add phy interface filter [+ + +]
Author: Inochi Amaoto <[email protected]>
Date:   Fri Nov 14 08:38:05 2025 +0800

    net: stmmac: dwmac-sophgo: Add phy interface filter
    
    [ Upstream commit db37c6e510deabc9b0ee27c08f1c5aaa19f2e8ef ]
    
    As the SG2042 has an internal rx delay, the delay should be removed
    when initializing the mac, otherwise the phy will be misconfigurated.
    
    Fixes: 543009e2d4cd ("net: stmmac: dwmac-sophgo: Add support for Sophgo SG2042 SoC")
    Signed-off-by: Inochi Amaoto <[email protected]>
    Tested-by: Han Gao <[email protected]>
    Reviewed-by: Andrew Lunn <[email protected]>
    Reviewed-by: Simon Horman <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: stmmac: fix rx limit check in stmmac_rx_zc() [+ + +]
Author: Alexey Kodanev <[email protected]>
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 <[email protected]>
    Reviewed-by: Russell King (Oracle) <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: stmmac: Fix VLAN 0 deletion in vlan_del_hw_rx_fltr() [+ + +]
Author: Ovidiu Panait <[email protected]>
Date:   Thu Nov 13 11:27:20 2025 +0000

    net: stmmac: Fix VLAN 0 deletion in vlan_del_hw_rx_fltr()
    
    [ Upstream commit d9db25723677c3741a0cf3643f7f7429fc983921 ]
    
    When the "rx-vlan-filter" feature is enabled on a network device, the 8021q
    module automatically adds a VLAN 0 hardware filter when the device is
    brought administratively up.
    
    For stmmac, this causes vlan_add_hw_rx_fltr() to create a new entry for
    VID 0 in the mac_device_info->vlan_filter array, in the following format:
    
        VLAN_TAG_DATA_ETV | VLAN_TAG_DATA_VEN | vid
    
    Here, VLAN_TAG_DATA_VEN indicates that the hardware filter is enabled for
    that VID.
    
    However, on the delete path, vlan_del_hw_rx_fltr() searches the vlan_filter
    array by VID only, without verifying whether a VLAN entry is enabled. As a
    result, when the 8021q module attempts to remove VLAN 0, the function may
    mistakenly match a zero-initialized slot rather than the actual VLAN 0
    entry, causing incorrect deletions and leaving stale entries in the
    hardware table.
    
    Fix this by verifying that the VLAN entry's enable bit (VLAN_TAG_DATA_VEN)
    is set before matching and deleting by VID. This ensures only active VLAN
    entries are removed and avoids leaving stale entries in the VLAN filter
    table, particularly for VLAN ID 0.
    
    Fixes: ed64639bc1e08 ("net: stmmac: Add support for VLAN Rx filtering")
    Signed-off-by: Ovidiu Panait <[email protected]>
    Reviewed-by: Maxime Chevallier <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Paolo Abeni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
netfilter: flowtable: check for maximum number of encapsulations in bridge vlan [+ + +]
Author: Pablo Neira Ayuso <[email protected]>
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 <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

netfilter: nf_conncount: rework API to use sk_buff directly [+ + +]
Author: Fernando Fernandez Mancera <[email protected]>
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 <[email protected]>
    Signed-off-by: Pablo Neira Ayuso <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

netfilter: nft_connlimit: update the count if add was skipped [+ + +]
Author: Fernando Fernandez Mancera <[email protected]>
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 <[email protected]>
    Signed-off-by: Pablo Neira Ayuso <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
NFS: Automounted filesystems should inherit ro,noexec,nodev,sync flags [+ + +]
Author: Trond Myklebust <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/all/[email protected]/
    Fixes: f2aedb713c28 ("NFS: Add fs_context support.")
    Signed-off-by: Trond Myklebust <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

NFS: Avoid changing nlink when file removes and attribute updates race [+ + +]
Author: Trond Myklebust <[email protected]>
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 <[email protected]>
    Fixes: 59a707b0d42e ("NFS: Ensure we revalidate the inode correctly after remove or rename")
    Signed-off-by: Trond Myklebust <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

NFS: Fix inheritance of the block sizes when automounting [+ + +]
Author: Trond Myklebust <[email protected]>
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 <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

NFS: Initialise verifiers for visible dentries in _nfs4_open_and_get_state [+ + +]
Author: Trond Myklebust <[email protected]>
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 <[email protected]>
    Fixes: cf5b4059ba71 ("NFSv4: Fix races between open and dentry revalidation")
    Signed-off-by: Trond Myklebust <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

NFS: Initialise verifiers for visible dentries in nfs_atomic_open() [+ + +]
Author: Trond Myklebust <[email protected]>
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 <[email protected]>
    Fixes: 809fd143de88 ("NFSv4: Ensure nfs_atomic_open set the dentry verifier on ENOENT")
    Signed-off-by: Trond Myklebust <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

NFS: Initialise verifiers for visible dentries in readdir and lookup [+ + +]
Author: Trond Myklebust <[email protected]>
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 <[email protected]>
    Fixes: a1147b8281bd ("NFS: Fix up directory verifier races")
    Signed-off-by: Trond Myklebust <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
NFSD/blocklayout: Fix minlength check in proc_layoutget [+ + +]
Author: Sergey Bashirov <[email protected]>
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 <[email protected]>
    Reviewed-by: Christoph Hellwig <[email protected]>
    Signed-off-by: Chuck Lever <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid [+ + +]
Author: Jonathan Curley <[email protected]>
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 <[email protected]>
    Signed-off-by: Trond Myklebust <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
ntfs3: Fix uninit buffer allocated by __getname() [+ + +]
Author: Sidharth Seela <[email protected]>
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: [email protected]
    Fixes: 78ab59fee07f2 ("fs/ntfs3: Rework file operations")
    Signed-off-by: Sidharth Seela <[email protected]>
    Signed-off-by: Konstantin Komarov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ntfs3: fix uninit memory after failed mi_read in mi_format_new [+ + +]
Author: Raphael Pinsonneault-Thibeault <[email protected]>
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: [email protected]
    Closes: https://syzkaller.appspot.com/bug?extid=7a2ba6b7b66340cff225
    Tested-by: [email protected]
    Fixes: 4342306f0f0d5 ("fs/ntfs3: Add file operations and implementation")
    Signed-off-by: Raphael Pinsonneault-Thibeault <[email protected]>
    Signed-off-by: Konstantin Komarov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ntfs3: init run lock for extend inode [+ + +]
Author: Edward Adam Davis <[email protected]>
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: [email protected]
    Closes: https://syzkaller.appspot.com/bug?extid=bdeb22a4b9a09ab9aa45
    Tested-by: [email protected]
    Signed-off-by: Edward Adam Davis <[email protected]>
    Signed-off-by: Konstantin Komarov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
nvme-auth: use kvfree() for memory allocated with kvcalloc() [+ + +]
Author: Israel Rukshin <[email protected]>
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 <[email protected]>
    Reviewed-by: Max Gurtovoy <[email protected]>
    Reviewed-by: Christoph Hellwig <[email protected]>
    Signed-off-by: Keith Busch <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
objtool: Fix standalone --hacks=jump_label [+ + +]
Author: Dylan Hatch <[email protected]>
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 <[email protected]>
    Signed-off-by: Josh Poimboeuf <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

objtool: Fix weak symbol detection [+ + +]
Author: Josh Poimboeuf <[email protected]>
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 <[email protected]>
    Tested-by: Joe Lawrence <[email protected]>
    Signed-off-by: Josh Poimboeuf <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
ocfs2: fix memory leak in ocfs2_merge_rec_left() [+ + +]
Author: Dmitry Antipov <[email protected]>
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/[email protected]
    Fixes: 677b975282e4 ("ocfs2: Add support for cross extent block")
    Signed-off-by: Dmitry Antipov <[email protected]>
    Reported-by: [email protected]
    Closes: https://syzkaller.appspot.com/bug?extid=cfc7cab3bb6eaa7c4de2
    Reviewed-by: Heming Zhao <[email protected]>
    Acked-by: Joseph Qi <[email protected]>
    Cc: Mark Fasheh <[email protected]>
    Cc: Joel Becker <[email protected]>
    Cc: Junxiao Bi <[email protected]>
    Cc: Changwei Ge <[email protected]>
    Cc: Jun Piao <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ocfs2: relax BUG() to ocfs2_error() in __ocfs2_move_extent() [+ + +]
Author: Dmitry Antipov <[email protected]>
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/[email protected]
    Signed-off-by: Dmitry Antipov <[email protected]>
    Closes: https://syzkaller.appspot.com/bug?extid=727d161855d11d81e411
    Reported-by: [email protected]
    Reviewed-by: Joseph Qi <[email protected]>
    Cc: Mark Fasheh <[email protected]>
    Cc: Joel Becker <[email protected]>
    Cc: Junxiao Bi <[email protected]>
    Cc: Changwei Ge <[email protected]>
    Cc: Jun Piao <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ocfs2: use correct endian in ocfs2_dinode_has_extents [+ + +]
Author: Joseph Qi <[email protected]>
Date:   Sat Oct 25 20:32:17 2025 +0800

    ocfs2: use correct endian in ocfs2_dinode_has_extents
    
    [ Upstream commit c9dff86eb78a4b6b02b1e407993c946ccaf9bfb4 ]
    
    Fields in ocfs2_dinode is little endian, covert to host endian when
    checking those contents.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Fixes: fdbb6cd96ed5 ("ocfs2: correct l_next_free_rec in online check")
    Signed-off-by: Joseph Qi <[email protected]>
    Reviewed-by: Heming Zhao <[email protected]>
    Cc: Mark Fasheh <[email protected]>
    Cc: Joel Becker <[email protected]>
    Cc: Junxiao Bi <[email protected]>
    Cc: Changwei Ge <[email protected]>
    Cc: Jun Piao <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
of/fdt: Consolidate duplicate code into helper functions [+ + +]
Author: Yuntao Wang <[email protected]>
Date:   Sat Nov 15 21:47:46 2025 +0800

    of/fdt: Consolidate duplicate code into helper functions
    
    [ Upstream commit 8278cb72c60399f6dc6300c409879fb4c7291513 ]
    
    Currently, there are many pieces of nearly identical code scattered across
    different places. Consolidate the duplicate code into helper functions to
    improve maintainability and reduce the likelihood of errors.
    
    Signed-off-by: Yuntao Wang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Rob Herring (Arm) <[email protected]>
    Stable-dep-of: c85da64ce2c3 ("of/fdt: Fix incorrect use of dt_root_addr_cells in early_init_dt_check_kho()")
    Signed-off-by: Sasha Levin <[email protected]>

of/fdt: Fix incorrect use of dt_root_addr_cells in early_init_dt_check_kho() [+ + +]
Author: Yuntao Wang <[email protected]>
Date:   Sat Nov 15 21:47:49 2025 +0800

    of/fdt: Fix incorrect use of dt_root_addr_cells in early_init_dt_check_kho()
    
    [ Upstream commit c85da64ce2c36bba469f6feede9ca768f0361741 ]
    
    When reading the fdt_size value, the argument passed to dt_mem_next_cell()
    is dt_root_addr_cells, but it should be dt_root_size_cells.
    
    The same issue occurs when reading the scratch_size value.
    
    Use a helper function to simplify the code and fix these issues.
    
    Fixes: 274cdcb1c004 ("arm64: add KHO support")
    Signed-off-by: Yuntao Wang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Rob Herring (Arm) <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
of: Skip devicetree kunit tests when RISCV+ACPI doesn't populate root node [+ + +]
Author: Guenter Roeck <[email protected]>
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 <[email protected]>
    Cc: Paul Walmsley <[email protected]>
    Signed-off-by: Guenter Roeck <[email protected]>
    Reviewed-by: Paul Walmsley <[email protected]>  # arch/riscv
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Rob Herring (Arm) <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
panthor: save task pid and comm in panthor_group [+ + +]
Author: Chia-I Wu <[email protected]>
Date:   Thu Jul 17 23:38:15 2025 -0700

    panthor: save task pid and comm in panthor_group
    
    [ Upstream commit 33b9cb6dcda2520600ac4fec725946af32c2e586 ]
    
    We would like to report them on gpu errors.
    
    We choose to save the info on panthor_group_create rather than on
    panthor_open because, when the two differ, we are more interested in the
    task that created the group.
    
    Signed-off-by: Chia-I Wu <[email protected]>
    Reviewed-by: Steven Price <[email protected]>
    Signed-off-by: Steven Price <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Stable-dep-of: eec7e23d848d ("drm/panthor: Prevent potential UAF in group creation")
    Signed-off-by: Sasha Levin <[email protected]>

 
PCI: dwc: Fix wrong PORT_LOGIC_LTSSM_STATE_MASK definition [+ + +]
Author: Shawn Lin <[email protected]>
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 <[email protected]>
    [mani: reworded description]
    Signed-off-by: Manivannan Sadhasivam <[email protected]>
    Signed-off-by: Bjorn Helgaas <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

PCI: endpoint: pci-epf-test: Fix sleeping function being called from atomic context [+ + +]
Author: Bhanu Seshu Kumar Valluri <[email protected]>
Date:   Tue Oct 14 08:11:09 2025 +0530

    PCI: endpoint: pci-epf-test: Fix sleeping function being called from atomic context
    
    [ Upstream commit 25423cda145f9ed6ee4a72d9f2603ac2a4685e74 ]
    
    When Root Complex (RC) triggers a Doorbell interrupt to Endpoint (EP), it
    triggers the below warning in the EP:
    
     BUG: sleeping function called from invalid context at kernel/locking/mutex.c:271
     Call trace:
      __might_resched+0x130/0x158
      __might_sleep+0x70/0x88
      mutex_lock+0x2c/0x80
      pci_epc_get_msi+0x78/0xd8
      pci_epf_test_raise_irq.isra.0+0x74/0x138
      pci_epf_test_doorbell_handler+0x34/0x50
    
    The BUG arises because the EP's pci_epf_test_doorbell_handler() which is
    running in the hard IRQ context is making an indirect call to
    pci_epc_get_msi(), which uses mutex inside.
    
    To fix the issue, convert the hard IRQ handler to a threaded IRQ handler to
    allow it to call functions that can sleep during bottom half execution.
    Also, register the threaded IRQ handler with IRQF_ONESHOT to keep the
    interrupt line disabled until the threaded IRQ handler completes execution.
    
    Fixes: eff0c286aa91 ("PCI: endpoint: pci-epf-test: Add doorbell test support")
    Signed-off-by: Bhanu Seshu Kumar Valluri <[email protected]>
    [mani: reworded description a bit]
    Signed-off-by: Manivannan Sadhasivam <[email protected]>
    Reviewed-by: Niklas Cassel <[email protected]>
    Reviewed-by: Frank Li <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

PCI: keystone: Exit ks_pcie_probe() for invalid mode [+ + +]
Author: Siddharth Vadapalli <[email protected]>
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 <[email protected]>
    Signed-off-by: Manivannan Sadhasivam <[email protected]>
    Signed-off-by: Bjorn Helgaas <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

PCI: Prevent resource tree corruption when BAR resize fails [+ + +]
Author: Ilpo Järvinen <[email protected]>
Date:   Thu Nov 13 18:26:18 2025 +0200

    PCI: Prevent resource tree corruption when BAR resize fails
    
    [ Upstream commit 91c4c89db41499eea1b29c56655f79c3bae66e93 ]
    
    pbus_reassign_bridge_resources() saves bridge windows into the saved
    list before attempting to adjust resource assignments to perform a BAR
    resize operation. If resource adjustments cannot be completed fully,
    rollback is attempted by restoring the resource from the saved list.
    
    The rollback, however, does not check whether the resources it restores were
    assigned by the partial resize attempt. If restore changes addresses of the
    resource, it can result in corrupting the resource tree.
    
    An example of a corrupted resource tree with overlapping addresses:
    
      6200000000000-6203fbfffffff : pciex@620c3c0000000
        6200000000000-6203fbff0ffff : PCI Bus 0030:01
          6200020000000-62000207fffff : 0030:01:00.0
          6200000000000-6203fbff0ffff : PCI Bus 0030:02
    
    A resource that are assigned into the resource tree must remain
    unchanged. Thus, release such a resource before attempting to restore
    and claim it back.
    
    For simplicity, always do the release and claim back for the resource
    even in the cases where it is restored to the same address range.
    
    Note: this fix may "break" some cases where devices "worked" because
    the resource tree corruption allowed address space double counting to
    fit more resource than what can now be assigned without double
    counting. The upcoming changes to BAR resizing should address those
    scenarios (to the extent possible).
    
    Fixes: 8bb705e3e79d ("PCI: Add pci_resize_resource() for resizing BARs")
    Reported-by: Simon Richter <[email protected]>
    Link: https://lore.kernel.org/linux-pci/[email protected]/
    Reported-by: Alex Bennée <[email protected]>
    Link: https://lore.kernel.org/linux-pci/[email protected]/
    Signed-off-by: Ilpo Järvinen <[email protected]>
    Signed-off-by: Bjorn Helgaas <[email protected]>
    Tested-by: Alex Bennée <[email protected]> # AVA, AMD GPU
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

PCI: rcar-gen2: Drop ARM dependency from PCI_RCAR_GEN2 [+ + +]
Author: Geert Uytterhoeven <[email protected]>
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 <[email protected]>
    Signed-off-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Manivannan Sadhasivam <[email protected]>
    [bhelgaas: add rcar-gen2 to subject]
    Signed-off-by: Bjorn Helgaas <[email protected]>
    Reviewed-by: Ilpo Järvinen <[email protected]>
    Link: https://patch.msgid.link/00f75d6732eacce93f04ffaeedc415d2db714cd6.1759480426.git.geert+renesas@glider.be
    Signed-off-by: Sasha Levin <[email protected]>

 
perf annotate: Check return value of evsel__get_arch() properly [+ + +]
Author: Tianyou Li <[email protected]>
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 <[email protected]>
    Acked-by: Namhyung Kim <[email protected]>
    Signed-off-by: Tianyou Li <[email protected]>
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
perf arm_spe: Fix memset subclass in operation [+ + +]
Author: Leo Yan <[email protected]>
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 <[email protected]>
    Reviewed-by: Ian Rogers <[email protected]>
    Reviewed-by: James Clark <[email protected]>
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
perf bpf_counter: Fix opening of "any"(-1) CPU events [+ + +]
Author: Ian Rogers <[email protected]>
Date:   Thu Oct 9 06:29:11 2025 -0700

    perf bpf_counter: Fix opening of "any"(-1) CPU events
    
    [ Upstream commit 2a67955de13624ec17d1c2504d2c9eeb37933b77 ]
    
    The bperf BPF counter code doesn't handle "any"(-1) CPU events, always
    wanting to aggregate a count against a CPU, which avoids the need for
    atomics so let's not change that. Force evsels used for BPF counters
    to require a CPU when not in system-wide mode so that the "any"(-1)
    value isn't used during map propagation and evsel's CPU map matches
    that of the PMU.
    
    Fixes: b91917c0c6fa ("perf bpf_counter: Fix handling of cpumap fixing hybrid")
    Signed-off-by: Ian Rogers <[email protected]>
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
perf hist: In init, ensure mem_info is put on error paths [+ + +]
Author: Ian Rogers <[email protected]>
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 <[email protected]>
    Reviewed-by: Arnaldo Carvalho de Melo <[email protected]>
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
perf hwmon_pmu: Fix uninitialized variable warning [+ + +]
Author: Michal Suchanek <[email protected]>
Date:   Wed Oct 22 12:38:35 2025 +0200

    perf hwmon_pmu: Fix uninitialized variable warning
    
    [ Upstream commit 2fee899c068c159e486e62623afe9e2a4975bd79 ]
    
    The line_len is only set on success. Check the return value instead.
    
     util/hwmon_pmu.c: In function ‘perf_pmus__read_hwmon_pmus’:
     util/hwmon_pmu.c:742:20: warning: ‘line_len’ may be used uninitialized [-Wmaybe-uninitialized]
       742 |                 if (line_len > 0 && line[line_len - 1] == '\n')
           |                    ^
     util/hwmon_pmu.c:719:24: note: ‘line_len’ was declared here
       719 |                 size_t line_len;
    
    Fixes: 53cc0b351ec9 ("perf hwmon_pmu: Add a tool PMU exposing events from hwmon in sysfs")
    Signed-off-by: Michal Suchanek <[email protected]>
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
perf jitdump: Add sym/str-tables to build-ID generation [+ + +]
Author: Namhyung Kim <[email protected]>
Date:   Tue Nov 25 00:07:46 2025 -0800

    perf jitdump: Add sym/str-tables to build-ID generation
    
    [ Upstream commit 25d498e636d1f8d138d65246cfb5b1fc3069ca56 ]
    
    It was reported that python backtrace with JIT dump was broken after the
    change to built-in SHA-1 implementation.  It seems python generates the
    same JIT code for each function.  They will become separate DSOs but the
    contents are the same.  Only difference is in the symbol name.
    
    But this caused a problem that every JIT'ed DSOs will have the same
    build-ID which makes perf confused.  And it resulted in no python
    symbols (from JIT) in the output.
    
    Looking back at the original code before the conversion, it used the
    load_addr as well as the code section to distinguish each DSO.  But it'd
    be better to use contents of symtab and strtab instead as it aligns with
    some linker behaviors.
    
    This patch adds a buffer to save all the contents in a single place for
    SHA-1 calculation.  Probably we need to add sha1_update() or similar to
    update the existing hash value with different contents and use it here.
    But it's out of scope for this change and I'd like something that can be
    backported to the stable trees easily.
    
    Reviewed-by: Ian Rogers <[email protected]>
    Cc: Eric Biggers <[email protected]>
    Cc: Pablo Galindo <[email protected]>
    Cc: Fangrui Song <[email protected]>
    Link: https://github.com/python/cpython/issues/139544
    Fixes: e3f612c1d8f3945b ("perf genelf: Remove libcrypto dependency and use built-in sha1()")
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
perf lock contention: Load kernel map before lookup [+ + +]
Author: Namhyung Kim <[email protected]>
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 <[email protected]>
    Fixes: 688d2e8de231c54e ("perf lock contention: Add -l/--lock-addr option")
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
perf parse-events: Fix legacy cache events if event is duplicated in a PMU [+ + +]
Author: Ian Rogers <[email protected]>
Date:   Sun Oct 5 11:24:04 2025 -0700

    perf parse-events: Fix legacy cache events if event is duplicated in a PMU
    
    [ Upstream commit b7b76f607a15f16031001687e733046b5f6f5d86 ]
    
    The term list when adding an event to a PMU is expected to have the
    event name for the alias lookup. Also, set found_supported so that
    -EINVAL isn't returned.
    
    Fixes: 62593394f66a ("perf parse-events: Legacy cache names on all
    PMUs and lower priority")
    
    Tested-by: Thomas Richter <[email protected]>
    Signed-off-by: Ian Rogers <[email protected]>
    Tested-by: James Clark <[email protected]>
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
perf record: skip synthesize event when open evsel failed [+ + +]
Author: Shuai Xue <[email protected]>
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 <[email protected]>
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
perf tools: Fix missing feature check for inherit + SAMPLE_READ [+ + +]
Author: Namhyung Kim <[email protected]>
Date:   Mon Nov 10 23:59:44 2025 -0800

    perf tools: Fix missing feature check for inherit + SAMPLE_READ
    
    [ Upstream commit 367377f45c0b568882567f797b7b18b263505be7 ]
    
    It should also have PERF_SAMPLE_TID to enable inherit and PERF_SAMPLE_READ
    on recent kernels.  Not having _TID makes the feature check wrongly detect
    the inherit and _READ support.
    
    It was reported that the following command failed due to the error in
    the missing feature check on Intel SPR machines.
    
      $ perf record -e '{cpu/mem-loads-aux/S,cpu/mem-loads,ldlat=3/PS}' -- ls
      Error:
      Failure to open event 'cpu/mem-loads,ldlat=3/PS' on PMU 'cpu' which will be removed.
      Invalid event (cpu/mem-loads,ldlat=3/PS) in per-thread mode, enable system wide with '-a'.
    
    Reviewed-by: Ian Rogers <[email protected]>
    Fixes: 3b193a57baf15c468 ("perf tools: Detect missing kernel features properly")
    Reported-and-tested-by: Chen, Zide <[email protected]>
    Closes: https://lore.kernel.org/lkml/[email protected]/
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

perf tools: Fix split kallsyms DSO counting [+ + +]
Author: Namhyung Kim <[email protected]>
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 <[email protected]>
    Fixes: 2e538c4a1847291cf ("perf tools: Improve kernel/modules symbol lookup")
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

perf tools: Mark split kallsyms DSOs as loaded [+ + +]
Author: Namhyung Kim <[email protected]>
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 <[email protected]>
    Fixes: 2e538c4a1847291cf ("perf tools: Improve kernel/modules symbol lookup")
    Signed-off-by: Namhyung Kim <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
perf/core: Fix missing read event generation on task exit [+ + +]
Author: Thaumy Cheng <[email protected]>
Date:   Tue Dec 9 12:16:00 2025 +0800

    perf/core: Fix missing read event generation on task exit
    
    [ Upstream commit c418d8b4d7a43a86b82ee39cb52ece3034383530 ]
    
    For events with inherit_stat enabled, a "read" event will be generated
    to collect per task event counts on task exit.
    
    The call chain is as follows:
    
    do_exit
      -> perf_event_exit_task
        -> perf_event_exit_task_context
          -> perf_event_exit_event
            -> perf_remove_from_context
              -> perf_child_detach
                -> sync_child_event
                  -> perf_event_read_event
    
    However, the child event context detaches the task too early in
    perf_event_exit_task_context, which causes sync_child_event to never
    generate the read event in this case, since child_event->ctx->task is
    always set to TASK_TOMBSTONE. Fix that by moving context lock section
    backward to ensure ctx->task is not set to TASK_TOMBSTONE before
    generating the read event.
    
    Because perf_event_free_task calls perf_event_exit_task_context with
    exit = false to tear down all child events from the context, and the
    task never lived, accessing the task PID can lead to a use-after-free.
    
    To fix that, let sync_child_event read task from argument and move the
    call to the only place it should be triggered to avoid the effect of
    setting ctx->task to TASK_TOMESTONE, and add a task parameter to
    perf_event_exit_event to trigger the sync_child_event properly when
    needed.
    
    This bug can be reproduced by running "perf record -s" and attaching to
    any program that generates perf events in its child tasks. If we check
    the result with "perf report -T", the last line of the report will leave
    an empty table like "# PID  TID", which is expected to contain the
    per-task event counts by design.
    
    Fixes: ef54c1a476ae ("perf: Rework perf_event_exit_event()")
    Signed-off-by: Thaumy Cheng <[email protected]>
    Signed-off-by: Ingo Molnar <[email protected]>
    Acked-by: Peter Zijlstra <[email protected]>
    Cc: Adrian Hunter <[email protected]>
    Cc: Alexander Shishkin <[email protected]>
    Cc: Arnaldo Carvalho de Melo <[email protected]>
    Cc: Ian Rogers <[email protected]>
    Cc: James Clark <[email protected]>
    Cc: Jiri Olsa <[email protected]>
    Cc: Mark Rutland <[email protected]>
    Cc: Namhyung Kim <[email protected]>
    Cc: [email protected]
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
perf/x86/intel/cstate: Remove PC3 support from LunarLake [+ + +]
Author: Zhang Rui <[email protected]>
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 <[email protected]>
    Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
    Reviewed-by: Kan Liang <[email protected]>
    Reviewed-by: Dapeng Mi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
perf/x86/intel: Correct large PEBS flag check [+ + +]
Author: Dapeng Mi <[email protected]>
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 <[email protected]>
    Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

perf/x86/intel: Fix NULL event dereference crash in handle_pmi_common() [+ + +]
Author: Evan Li <[email protected]>
Date:   Fri Dec 12 16:49:43 2025 +0800

    perf/x86/intel: Fix NULL event dereference crash in handle_pmi_common()
    
    [ Upstream commit 9415f749d34b926b9e4853da1462f4d941f89a0d ]
    
    handle_pmi_common() may observe an active bit set in cpuc->active_mask
    while the corresponding cpuc->events[] entry has already been cleared,
    which leads to a NULL pointer dereference.
    
    This can happen when interrupt throttling stops all events in a group
    while PEBS processing is still in progress. perf_event_overflow() can
    trigger perf_event_throttle_group(), which stops the group and clears
    the cpuc->events[] entry, but the active bit may still be set when
    handle_pmi_common() iterates over the events.
    
    The following recent fix:
    
      7e772a93eb61 ("perf/x86: Fix NULL event access and potential PEBS record loss")
    
    moved the cpuc->events[] clearing from x86_pmu_stop() to x86_pmu_del() and
    relied on cpuc->active_mask/pebs_enabled checks. However,
    handle_pmi_common() can still encounter a NULL cpuc->events[] entry
    despite the active bit being set.
    
    Add an explicit NULL check on the event pointer before using it,
    to cover this legitimate scenario and avoid the NULL dereference crash.
    
    Fixes: 7e772a93eb61 ("perf/x86: Fix NULL event access and potential PEBS record loss")
    Reported-by: kitta <[email protected]>
    Co-developed-by: kitta <[email protected]>
    Signed-off-by: Evan Li <[email protected]>
    Signed-off-by: Ingo Molnar <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220855
    Signed-off-by: Sasha Levin <[email protected]>

 
perf/x86: Fix NULL event access and potential PEBS record loss [+ + +]
Author: Dapeng Mi <[email protected]>
Date:   Wed Oct 29 18:21:26 2025 +0800

    perf/x86: Fix NULL event access and potential PEBS record loss
    
    [ Upstream commit 7e772a93eb61cb6265bdd1c5bde17d0f2718b452 ]
    
    When intel_pmu_drain_pebs_icl() is called to drain PEBS records, the
    perf_event_overflow() could be called to process the last PEBS record.
    
    While perf_event_overflow() could trigger the interrupt throttle and
    stop all events of the group, like what the below call-chain shows.
    
    perf_event_overflow()
      -> __perf_event_overflow()
        ->__perf_event_account_interrupt()
          -> perf_event_throttle_group()
            -> perf_event_throttle()
              -> event->pmu->stop()
                -> x86_pmu_stop()
    
    The side effect of stopping the events is that all corresponding event
    pointers in cpuc->events[] array are cleared to NULL.
    
    Assume there are two PEBS events (event a and event b) in a group. When
    intel_pmu_drain_pebs_icl() calls perf_event_overflow() to process the
    last PEBS record of PEBS event a, interrupt throttle is triggered and
    all pointers of event a and event b are cleared to NULL. Then
    intel_pmu_drain_pebs_icl() tries to process the last PEBS record of
    event b and encounters NULL pointer access.
    
    To avoid this issue, move cpuc->events[] clearing from x86_pmu_stop()
    to x86_pmu_del(). It's safe since cpuc->active_mask or
    cpuc->pebs_enabled is always checked before access the event pointer
    from cpuc->events[].
    
    Closes: https://lore.kernel.org/oe-lkp/[email protected]
    Fixes: 9734e25fbf5a ("perf: Fix the throttle logic for a group")
    Reported-by: kernel test robot <[email protected]>
    Suggested-by: Peter Zijlstra <[email protected]>
    Signed-off-by: Dapeng Mi <[email protected]>
    Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
perf: Remove get_perf_callchain() init_nr argument [+ + +]
Author: Josh Poimboeuf <[email protected]>
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 <[email protected]>
    Signed-off-by: Steven Rostedt (Google) <[email protected]>
    Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
    Acked-by: Namhyung Kim <[email protected]>
    Acked-by: Alexei Starovoitov <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Stable-dep-of: 23f852daa4ba ("bpf: Fix stackmap overflow check in __bpf_get_stackid()")
    Signed-off-by: Sasha Levin <[email protected]>

 
phy: freescale: Initialize priv->lock [+ + +]
Author: Xiaolei Wang <[email protected]>
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 <[email protected]>
    Reviewed-by: Frank Li <[email protected]>
    Reviewed-by: Neil Armstrong <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Vinod Koul <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

phy: mscc: Fix PTP for VSC8574 and VSC8572 [+ + +]
Author: Horatiu Vultur <[email protected]>
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 <[email protected]>
    Signed-off-by: Horatiu Vultur <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

phy: renesas: rcar-gen3-usb2: Fix an error handling path in rcar_gen3_phy_usb2_probe() [+ + +]
Author: Christophe JAILLET <[email protected]>
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 <[email protected]>
    Reviewed-by: Biju Das <[email protected]>
    Reviewed-by: Geert Uytterhoeven <[email protected]>
    Tested-by: Wolfram Sang <[email protected]>
    Signed-off-by: Claudiu Beznea <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Vinod Koul <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

phy: rockchip: naneng-combphy: Add SoC prefix to register definitions [+ + +]
Author: Yao Zi <[email protected]>
Date:   Mon Jul 28 10:29:46 2025 +0000

    phy: rockchip: naneng-combphy: Add SoC prefix to register definitions
    
    [ Upstream commit b3bbc6afcff50e2fd4d51dd64929e62d66fdc814 ]
    
    All supported variants of naneng-combphy follow a register layout
    similar to the RK3568 variant with some exceptions of SoC-specific
    registers.
    
    Add RK3568 prefix for the common set of registers and the corresponding
    SoC prefix for SoC-specific registers, making usage of definitions clear
    and preparing for future COMBPHY variants with a different register
    layout.
    
    Signed-off-by: Yao Zi <[email protected]>
    Reviewed-by: Heiko Stuebner <[email protected]>
    Reviewed-by: Neil Armstrong <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Vinod Koul <[email protected]>
    Stable-dep-of: be866e68966d ("phy: rockchip: naneng-combphy: Fix PCIe L1ss support RK3562")
    Signed-off-by: Sasha Levin <[email protected]>

phy: rockchip: naneng-combphy: Fix PCIe L1ss support RK3562 [+ + +]
Author: Shawn Lin <[email protected]>
Date:   Tue Nov 18 17:52:06 2025 +0800

    phy: rockchip: naneng-combphy: Fix PCIe L1ss support RK3562
    
    [ Upstream commit be866e68966d20bcc4a73708093d577176f99c0c ]
    
    When PCIe link enters L1 PM substates, the PHY will turn off its
    PLL for power-saving. However, it turns off the PLL too fast which
    leads the PHY to be broken. According to the PHY document, we need
    to delay PLL turnoff time.
    
    Fixes: f13bff25161b ("phy: rockchip-naneng-combo: Support rk3562")
    Signed-off-by: Shawn Lin <[email protected]>
    Reviewed-by: Neil Armstrong <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Vinod Koul <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

phy: rockchip: samsung-hdptx: Fix reported clock rate in high bpc mode [+ + +]
Author: Cristian Ciocaltea <[email protected]>
Date:   Tue Oct 28 10:00:54 2025 +0200

    phy: rockchip: samsung-hdptx: Fix reported clock rate in high bpc mode
    
    [ Upstream commit 72126e9623e1696ea83c77ef6d0306a6263bdd6b ]
    
    When making use of the clock provider functionality, the output clock
    does normally match the TMDS character rate, which is what the PHY PLL
    gets configured to.
    
    However, this is only applicable for default color depth of 8 bpc.  For
    higher depths, the output clock is further divided by the hardware
    according to the formula:
    
      output_clock_rate = tmds_char_rate * 8 / bpc
    
    Since the existence of the clock divider wasn't taken into account when
    support for high bpc has been introduced, make the necessary adjustments
    to report the correct clock rate.
    
    Fixes: 9d0ec51d7c22 ("phy: rockchip: samsung-hdptx: Add high color depth management")
    Reported-by: Andy Yan <[email protected]>
    Signed-off-by: Cristian Ciocaltea <[email protected]>
    Reviewed-by: Neil Armstrong <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Vinod Koul <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

phy: rockchip: samsung-hdptx: Prevent Inter-Pair Skew from exceeding the limits [+ + +]
Author: Cristian Ciocaltea <[email protected]>
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 <[email protected]>
    Signed-off-by: Algea Cao <[email protected]>
    Signed-off-by: Cristian Ciocaltea <[email protected]>
    Reviewed-by: Neil Armstrong <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Vinod Koul <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

phy: rockchip: samsung-hdptx: Reduce ROPLL loop bandwidth [+ + +]
Author: Cristian Ciocaltea <[email protected]>
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 <[email protected]>
    Signed-off-by: Algea Cao <[email protected]>
    Signed-off-by: Cristian Ciocaltea <[email protected]>
    Reviewed-by: Neil Armstrong <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Vinod Koul <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
pidfs: add missing BUILD_BUG_ON() assert on struct pidfd_info [+ + +]
Author: Christian Brauner <[email protected]>
Date:   Tue Oct 28 09:45:49 2025 +0100

    pidfs: add missing BUILD_BUG_ON() assert on struct pidfd_info
    
    [ Upstream commit d8fc51d8fa3b9894713e7eebcf574bee488fa3e1 ]
    
    Validate that the size of struct pidfd_info is correctly updated.
    
    Link: https://patch.msgid.link/[email protected]
    Fixes: 1d8db6fd698d ("pidfs, coredump: add PIDFD_INFO_COREDUMP")
    Reviewed-by: Alexander Mikhalitsyn <[email protected]>
    Reviewed-by: Oleg Nesterov <[email protected]>
    Signed-off-by: Christian Brauner <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

pidfs: add missing PIDFD_INFO_SIZE_VER1 [+ + +]
Author: Christian Brauner <[email protected]>
Date:   Tue Oct 28 09:45:48 2025 +0100

    pidfs: add missing PIDFD_INFO_SIZE_VER1
    
    [ Upstream commit 4061c43a99772c66c378cfacaa71550ab3b35909 ]
    
    We grew struct pidfd_info not too long ago.
    
    Link: https://patch.msgid.link/[email protected]
    Fixes: 1d8db6fd698d ("pidfs, coredump: add PIDFD_INFO_COREDUMP")
    Reviewed-by: Alexander Mikhalitsyn <[email protected]>
    Reviewed-by: Oleg Nesterov <[email protected]>
    Signed-off-by: Christian Brauner <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
pinctrl: renesas: rzg2l: Fix PMC restore [+ + +]
Author: Biju Das <[email protected]>
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 <[email protected]>
    Reviewed-by: Geert Uytterhoeven <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Geert Uytterhoeven <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

pinctrl: single: Fix incorrect type for error return variable [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Signed-off-by: Linus Walleij <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

pinctrl: stm32: fix hwspinlock resource leak in probe function [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Reviewed-by: Antonio Borneo <[email protected]>
    Signed-off-by: Linus Walleij <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
platform/x86: asus-wmi: use brightness_set_blocking() for kbd led [+ + +]
Author: Anton Khirnov <[email protected]>
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 <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    Reviewed-by: Denis Benato <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Reviewed-by: Ilpo Järvinen <[email protected]>
    Signed-off-by: Ilpo Järvinen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
Linux: platform/x86:intel/pmc: Update Arrow Lake telemetry GUID [+ + +]
Author: Xi Pardee <[email protected]>
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 <[email protected]>
    Signed-off-by: Xi Pardee <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Reviewed-by: Ilpo Järvinen <[email protected]>
    Signed-off-by: Ilpo Järvinen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
PM / devfreq: hisi: Fix potential UAF in OPP handling [+ + +]
Author: Pengjie Zhang <[email protected]>
Date:   Mon Sep 15 14:21:35 2025 +0800

    PM / devfreq: hisi: Fix potential UAF in OPP handling
    
    [ Upstream commit 26dd44a40096468396b6438985d8e44e0743f64c ]
    
    Ensure all required data is acquired before calling dev_pm_opp_put(opp)
    to maintain correct resource acquisition and release order.
    
    Fixes: 7da2fdaaa1e6 ("PM / devfreq: Add HiSilicon uncore frequency scaling driver")
    Signed-off-by: Pengjie Zhang <[email protected]>
    Reviewed-by: Jie Zhan <[email protected]>
    Acked-by: Chanwoo Choi <[email protected]>
    Signed-off-by: Chanwoo Choi <[email protected]>
    Link: https://patchwork.kernel.org/project/linux-pm/patch/[email protected]/
    Signed-off-by: Sasha Levin <[email protected]>

 
power: supply: apm_power: only unset own apm_get_power_status [+ + +]
Author: Ahelenia Ziemiańska <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/xczpgox57hxbunkcbdl5fxhc4gnsajsipldfidi7355afezk64@tarta.nabijaczleweli.xyz
    Signed-off-by: Sebastian Reichel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

power: supply: cw2015: Check devm_delayed_work_autocancel() return code [+ + +]
Author: Ivan Abramov <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sebastian Reichel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

power: supply: max17040: Check iio_read_channel_processed() return code [+ + +]
Author: Ivan Abramov <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sebastian Reichel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

power: supply: rt5033_charger: Fix device node reference leaks [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sebastian Reichel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

power: supply: rt9467: Prevent using uninitialized local variable in rt9467_set_value_from_ranges() [+ + +]
Author: Murad Masimov <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sebastian Reichel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

power: supply: rt9467: Return error on failure in rt9467_set_value_from_ranges() [+ + +]
Author: Ivan Abramov <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sebastian Reichel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

power: supply: wm831x: Check wm831x_set_bits() return value [+ + +]
Author: Ivan Abramov <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sebastian Reichel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
powerpc/32: Fix unpaired stwcx. on interrupt exit [+ + +]
Author: Christophe Leroy <[email protected]>
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 <[email protected]>
    Signed-off-by: Madhavan Srinivasan <[email protected]>
    Link: https://patch.msgid.link/6040b5dbcf5cdaa1cd919fcf0790f12974ea6e5a.1757666244.git.christophe.leroy@csgroup.eu
    Signed-off-by: Sasha Levin <[email protected]>

 
powerpc/64s/hash: Restrict stress_hpt_struct memblock region to within RMA limit [+ + +]
Author: Ritesh Harjani (IBM) <[email protected]>
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/[email protected]/
    [2]: https://lore.kernel.org/all/[email protected]/
    
    Fixes: 6b34a099faa12 ("powerpc/64s/hash: add stress_hpt kernel boot option to increase hash faults")
    Signed-off-by: Ritesh Harjani (IBM) <[email protected]>
    Signed-off-by: Madhavan Srinivasan <[email protected]>
    Link: https://patch.msgid.link/ada1173933ea7617a994d6ee3e54ced8797339fc.1761834163.git.ritesh.list@gmail.com
    Signed-off-by: Sasha Levin <[email protected]>

 
powerpc/64s/ptdump: Fix kernel_hash_pagetable dump for ISA v3.00 HPTE format [+ + +]
Author: Ritesh Harjani (IBM) <[email protected]>
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) <[email protected]>
    Signed-off-by: Madhavan Srinivasan <[email protected]>
    Link: https://patch.msgid.link/4c2bb9e5b3cfbc0dd80b61b67cdd3ccfc632684c.1761834163.git.ritesh.list@gmail.com
    Signed-off-by: Sasha Levin <[email protected]>

 
powerpc/kdump: Fix size calculation for hot-removed memory ranges [+ + +]
Author: Sourabh Jain <[email protected]>
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 <[email protected]>
    Signed-off-by: Sourabh Jain <[email protected]>
    Signed-off-by: Madhavan Srinivasan <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
ps3disk: use memcpy_{from,to}_bvec index [+ + +]
Author: Rene Rebe <[email protected]>
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 <[email protected]>
    Reviewed-by: Christoph Hellwig <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
pwm: bcm2835: Make sure the channel is enabled after pwm_request() [+ + +]
Author: Uwe Kleine-König <[email protected]>
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 <[email protected]>
    Reviewed-by: Florian Fainelli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Uwe Kleine-König <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
random: use offstack cpumask when necessary [+ + +]
Author: Arnd Bergmann <[email protected]>
Date:   Tue Jun 10 11:27:08 2025 +0200

    random: use offstack cpumask when necessary
    
    [ Upstream commit 5d49f1a5bd358d24e5f88b23b46da833de1dbec8 ]
    
    The entropy generation function keeps a local cpu mask on the stack,
    which can trigger warnings in configurations with a large number of
    CPUs:
    
        drivers/char/random.c:1292:20: error: stack frame size (1288)
        exceeds limit (1280) in 'try_to_generate_entropy' [-Werror,-Wframe-larger-than]
    
    Use the cpumask interface to dynamically allocate it in those
    configurations.
    
    Fixes: 1c21fe00eda7 ("random: spread out jitter callback to different CPUs")
    Signed-off-by: Arnd Bergmann <[email protected]>
    Signed-off-by: Jason A. Donenfeld <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
RAS: Report all ARM processor CPER information to userspace [+ + +]
Author: Jason Tian <[email protected]>
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 <[email protected]>
    Co-developed-by: Shengwei Luo <[email protected]>
    Signed-off-by: Shengwei Luo <[email protected]>
    Signed-off-by: Mauro Carvalho Chehab <[email protected]>
    Signed-off-by: Daniel Ferguson <[email protected]> # rebased
    Reviewed-by: Jonathan Cameron <[email protected]>
    Tested-by: Shiju Jose <[email protected]>
    Acked-by: Borislav Petkov (AMD) <[email protected]>
    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 <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
rculist: Add hlist_nulls_replace_rcu() and hlist_nulls_replace_init_rcu() [+ + +]
Author: Xuanqiang Luo <[email protected]>
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 <[email protected]>
    Reviewed-by: Frederic Weisbecker <[email protected]>
    Reviewed-by: Eric Dumazet <[email protected]>
    Signed-off-by: Xuanqiang Luo <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Stable-dep-of: 1532ed0d0753 ("inet: Avoid ehash lookup race in inet_ehash_insert()")
    Signed-off-by: Sasha Levin <[email protected]>

 
RDMA/bnxt_re: Fix the inline size for GenP7 devices [+ + +]
Author: Selvin Xavier <[email protected]>
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 <[email protected]>
    Signed-off-by: Kalesh AP <[email protected]>
    Signed-off-by: Selvin Xavier <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Leon Romanovsky <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

RDMA/bnxt_re: Pass correct flag for dma mr creation [+ + +]
Author: Selvin Xavier <[email protected]>
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 <[email protected]>
    Signed-off-by: Selvin Xavier <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Leon Romanovsky <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
RDMA/irdma: Do not directly rely on IB_PD_UNSAFE_GLOBAL_RKEY [+ + +]
Author: Jacob Moroni <[email protected]>
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 <[email protected]>
    Signed-off-by: Tatyana Nikolova <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Leon Romanovsky <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

RDMA/irdma: Fix data race in irdma_free_pble [+ + +]
Author: Krzysztof Czurylo <[email protected]>
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 <[email protected]>
    Signed-off-by: Tatyana Nikolova <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Leon Romanovsky <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

RDMA/irdma: Fix data race in irdma_sc_ccq_arm [+ + +]
Author: Krzysztof Czurylo <[email protected]>
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 <[email protected]>
    Signed-off-by: Tatyana Nikolova <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Leon Romanovsky <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
RDMA/rtrs: server: Fix error handling in get_or_create_srv [+ + +]
Author: Ma Ke <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Acked-by: Jack Wang <[email protected]>
    Signed-off-by: Leon Romanovsky <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
RDMA/rxe: Fix null deref on srq->rq.queue after resize failure [+ + +]
Author: Zhu Yanjun <[email protected]>
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 <[email protected]>
    Signed-off-by: Zhu Yanjun <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Leon Romanovsky <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
regulator: core: disable supply if enabling main regulator fails [+ + +]
Author: Gabor Juhos <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

regulator: core: Protect regulator_supply_alias_list with regulator_list_mutex [+ + +]
Author: sparkhuang <[email protected]>
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 <[email protected]>
    Reviewed-by: Charles Keepax <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

regulator: fixed: Rely on the core freeing the enable GPIO [+ + +]
Author: Mark Brown <[email protected]>
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 <[email protected]>
    Closes: https://lore.kernel.org/r/[email protected]
    Tested-by: Diederik de Haas <[email protected]>
    Signed-off-by: Mark Brown <[email protected]>
    Link: https://patch.msgid.link/20251204-regulator-fixed-fix-gpiod-leak-v1-1-48efea5b82c2@kernel.org
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

regulator: pca9450: Fix error code in probe() [+ + +]
Author: Dan Carpenter <[email protected]>
Date:   Fri Nov 21 16:35:24 2025 +0300

    regulator: pca9450: Fix error code in probe()
    
    [ Upstream commit 670500b41e543c5cb09eb9f7f0e4e26c5b5fdf7e ]
    
    Return "PTR_ERR(pca9450->sd_vsel_gpio)" instead of "ret".  The "ret"
    variable is success at this point.
    
    Fixes: 3ce6f4f943dd ("regulator: pca9450: Fix control register for LDO5")
    Signed-off-by: Dan Carpenter <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
Reinstate "resource: avoid unnecessary lookups in find_next_iomem_res()" [+ + +]
Author: Ilias Stamatis <[email protected]>
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/[email protected]/T/#u
    Fixes: 97523a4edb7b ("kernel/resource: remove first_lvl / siblings_only logic")
    Signed-off-by: Ilias Stamatis <[email protected]>
    Acked-by: David Hildenbrand (Red Hat) <[email protected]>
    Cc: Andriy Shevchenko <[email protected]>
    Cc: Baoquan He <[email protected]>
    Cc: "Huang, Ying" <[email protected]>
    Cc: Nadav Amit <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
remoteproc: imx_rproc: Fix runtime PM cleanup and improve remove path [+ + +]
Author: Peng Fan <[email protected]>
Date:   Fri Sep 26 20:33:15 2025 +0800

    remoteproc: imx_rproc: Fix runtime PM cleanup and improve remove path
    
    [ Upstream commit 80405a34e1f8975cdb2d7d8679bca7f768861035 ]
    
    Proper cleanup should be done when rproc_add() fails by invoking both
    pm_runtime_disable() and pm_runtime_put_noidle() to avoid leaving the
    device in an inconsistent power state.
    
    Fix it by adding pm_runtime_put_noidle() and pm_runtime_disable()
    in the error path.
    
    Also Update the remove() callback to use pm_runtime_put_noidle() instead of
    pm_runtime_put(), to clearly indicate that only need to restore the usage
    count.
    
    Fixes: a876a3aacc43 ("remoteproc: imx_rproc: detect and attach to pre-booted remote cores")
    Cc: Ulf Hansson <[email protected]>
    Cc: Hiago De Franco <[email protected]>
    Suggested-by: Ulf Hansson <[email protected]>
    Signed-off-by: Peng Fan <[email protected]>
    Reviewed-by: Ulf Hansson <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Mathieu Poirier <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

remoteproc: qcom_q6v5_wcss: fix parsing of qcom,halt-regs [+ + +]
Author: Alexandru Gagniuc <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
Revert "mtd: rawnand: marvell: fix layouts" [+ + +]
Author: Aryan Srivastava <[email protected]>
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 <[email protected]>
    Signed-off-by: Miquel Raynal <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
Revert "nfs: clear SB_RDONLY before getting superblock" [+ + +]
Author: Trond Myklebust <[email protected]>
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<[email protected]>
    Cc: Li Lingfeng <[email protected]>
    Fixes: 8cd9b785943c ("nfs: clear SB_RDONLY before getting superblock")
    Signed-off-by: Trond Myklebust <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

Revert "nfs: ignore SB_RDONLY when mounting nfs" [+ + +]
Author: Trond Myklebust <[email protected]>
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<[email protected]>
    Cc: Li Lingfeng <[email protected]>
    Fixes: 52cb7f8f1778 ("nfs: ignore SB_RDONLY when mounting nfs")
    Signed-off-by: Trond Myklebust <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

Revert "nfs: ignore SB_RDONLY when remounting nfs" [+ + +]
Author: Trond Myklebust <[email protected]>
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<[email protected]>
    Cc: Li Lingfeng <[email protected]>
    Fixes: 80c4de6ab44c ("nfs: ignore SB_RDONLY when remounting nfs")
    Signed-off-by: Trond Myklebust <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
Revert "wifi: mt76: mt792x: improve monitor interface handling" [+ + +]
Author: Fedor Pchelkin <[email protected]>
Date:   Mon Oct 27 14:18:39 2025 +0300

    Revert "wifi: mt76: mt792x: improve monitor interface handling"
    
    [ Upstream commit cdb2941a516cf06929293604e2e0f4c1d6f3541e ]
    
    This reverts commit 55e95ce469d0c61041bae48b2ebb7fcbf6d1ba7f.
    
    mt792x drivers don't seem to support multi-radio devices yet.  At least
    they don't mess with `struct wiphy_radio` at the moment.
    
    Packet capturing on monitor interface doesn't work after the blamed patch:
    
      tcpdump -i wls6mon -n -vvv
    
    Revert the NO_VIRTUAL_MONITOR feature for now to resolve the issue.
    
    Found by Linux Verification Center (linuxtesting.org).
    
    Fixes: 55e95ce469d0 ("wifi: mt76: mt792x: improve monitor interface handling")
    Signed-off-by: Fedor Pchelkin <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
RISC-V: KVM: Fix guest page fault within HLV* instructions [+ + +]
Author: Fangyu Yu <[email protected]>
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 <[email protected]>
    Reviewed-by: Anup Patel <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Anup Patel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
rqspinlock: Enclose lock/unlock within lock entry acquisitions [+ + +]
Author: Kumar Kartikeya Dwivedi <[email protected]>
Date:   Fri Nov 28 23:27:57 2025 +0000

    rqspinlock: Enclose lock/unlock within lock entry acquisitions
    
    [ Upstream commit beb7021a6003d9c6a463fffca0d6311efb8e0e66 ]
    
    Ritesh reported that timeouts occurred frequently for rqspinlock despite
    reentrancy on the same lock on the same CPU in [0]. This patch closes
    one of the races leading to this behavior, and reduces the frequency of
    timeouts.
    
    We currently have a tiny window between the fast-path cmpxchg and the
    grabbing of the lock entry where an NMI could land, attempt the same
    lock that was just acquired, and end up timing out. This is not ideal.
    Instead, move the lock entry acquisition from the fast path to before
    the cmpxchg, and remove the grabbing of the lock entry in the slow path,
    assuming it was already taken by the fast path. The TAS fallback is
    invoked directly without being preceded by the typical fast path,
    therefore we must continue to grab the deadlock detection entry in that
    case.
    
    Case on lock leading to missed AA:
    
    cmpxchg lock A
    <NMI>
    ... rqspinlock acquisition of A
    ... timeout
    </NMI>
    grab_held_lock_entry(A)
    
    There is a similar case when unlocking the lock. If the NMI lands
    between the WRITE_ONCE and smp_store_release, it is possible that we end
    up in a situation where the NMI fails to diagnose the AA condition,
    leading to a timeout.
    
    Case on unlock leading to missed AA:
    
    WRITE_ONCE(rqh->locks[rqh->cnt - 1], NULL)
    <NMI>
    ... rqspinlock acquisition of A
    ... timeout
    </NMI>
    smp_store_release(A->locked, 0)
    
    The patch changes the order on unlock to smp_store_release() succeeded
    by WRITE_ONCE() of NULL. This avoids the missed AA detection described
    above, but may lead to a false positive if the NMI lands between these
    two statements, which is acceptable (and preferred over a timeout).
    
    The original intention of the reverse order on unlock was to prevent the
    following possible misdiagnosis of an ABBA scenario:
    
    grab entry A
    lock A
    grab entry B
    lock B
    unlock B
       smp_store_release(B->locked, 0)
                                                            grab entry B
                                                            lock B
                                                            grab entry A
                                                            lock A
                                                            ! <detect ABBA>
       WRITE_ONCE(rqh->locks[rqh->cnt - 1], NULL)
    
    If the store release were is after the WRITE_ONCE, the other CPU would
    not observe B in the table of the CPU unlocking the lock B.  However,
    since the threads are obviously participating in an ABBA deadlock, it
    is no longer appealing to use the order above since it may lead to a
    250 ms timeout due to missed AA detection.
    
      [0]: https://lore.kernel.org/bpf/CAH6OuBTjG+N=+GGwcpOUbeDN563oz4iVcU3rbse68egp9wj9_A@mail.gmail.com
    
    Fixes: 0d80e7f951be ("rqspinlock: Choose trylock fallback for NMI waiters")
    Reported-by: Ritesh Oedayrajsingh Varma <[email protected]>
    Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

rqspinlock: Use trylock fallback when per-CPU rqnode is busy [+ + +]
Author: Kumar Kartikeya Dwivedi <[email protected]>
Date:   Fri Nov 28 23:27:59 2025 +0000

    rqspinlock: Use trylock fallback when per-CPU rqnode is busy
    
    [ Upstream commit 81d5a6a438595e46be191d602e5c2d6d73992fdc ]
    
    In addition to deferring to the trylock fallback in NMIs, only do so
    when an rqspinlock waiter is queued on the current CPU. This is detected
    by noticing a non-zero node index. This allows NMI waiters to join the
    waiter queue if it isn't interrupting an existing rqspinlock waiter, and
    increase the chances of fairly obtaining the lock, performing deadlock
    detection as the head, and not being starved while attempting the
    trylock.
    
    The trylock path in particular is unlikely to succeed under contention,
    as it relies on the lock word becoming 0, which indicates no contention.
    This means that the most likely result for NMIs attempting a trylock is
    a timeout under contention if they don't hit an AA or ABBA case.
    
    The core problem being addressed through the fixed commit was removing
    the dependency edge between an NMI queue waiter and the queue waiter it
    is interrupting. Whenever a circular dependency forms, and with no way
    to break it (as non-head waiters don't poll for deadlocks or timeouts),
    we would enter into a deadlock. A trylock either breaks such an edge by
    probing for deadlocks, and finally terminating the waiting loop using a
    timeout.
    
    By excluding queueing on CPUs where the node index is non-zero for NMIs,
    this sort of dependency is broken. The CPU enters the trylock path for
    those cases, and falls back to deadlock checks and timeouts. However, in
    other case where it doesn't interrupt the CPU in the slow path while its
    queued on the lock, it can join the queue as a normal waiter, and avoid
    trylock associated starvation and subsequent timeouts.
    
    There are a few remaining cases here that matter: the NMI can still
    preempt the owner in its critical section, and if it queues as a
    non-head waiter, it can end up impeding the progress of the owner. While
    this won't deadlock, since the head waiter will eventually signal the
    NMI waiter to either stop (due to a timeout), it can still lead to long
    timeouts. These gaps will be addressed in subsequent commits.
    
    Note that while the node count detection approach is less conservative
    than simply deferring NMIs to trylock, it is going to return errors
    where attempts to lock B in NMI happen while waiters for lock A are in a
    lower context on the same CPU. However, this only occurs when the lower
    context is queued in the slow path, and the NMI attempt can proceed
    without failure in all other cases. To continue to prevent AA deadlocks
    (or ABBA in a similar NMI interrupting lower context pattern), we'd need
    a more fleshed out algorithm to unlink NMI waiters after they queue and
    detect such cases. However, all that complexity isn't appealing yet to
    reduce the failure rate in the small window inside the slow path.
    
    It is important to note that reentrancy in the slow path can also happen
    through trace_contention_{begin,end}, but in those cases, unlike an NMI,
    the forward progress of the head waiter (or the predecessor in general)
    is not being blocked.
    
    Fixes: 0d80e7f951be ("rqspinlock: Choose trylock fallback for NMI waiters")
    Reported-by: Ritesh Oedayrajsingh Varma <[email protected]>
    Suggested-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
rtc: amlogic-a4: fix double free caused by devm [+ + +]
Author: Haotian Zhang <[email protected]>
Date:   Tue Oct 21 18:35:59 2025 +0800

    rtc: amlogic-a4: fix double free caused by devm
    
    [ Upstream commit 384150d7a5b60c1086790a8ee07b0629f906cca2 ]
    
    The clock obtained via devm_clk_get_enabled() is automatically managed
    by devres and will be disabled and freed on driver detach. Manually
    calling clk_disable_unprepare() in error path and remove function
    causes double free.
    
    Remove the redundant clk_disable_unprepare() calls from the probe
    error path and aml_rtc_remove(), allowing the devm framework to
    automatically manage the clock lifecycle.
    
    Fixes: c89ac9182ee2 ("rtc: support for the Amlogic on-chip RTC")
    Signed-off-by: Haotian Zhang <[email protected]>
    Reviewed-by: Xianwei Zhao <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Alexandre Belloni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

rtc: gamecube: Check the return value of ioremap() [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Reviewed-by: Link Mauve <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Alexandre Belloni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

rtc: max31335: Fix ignored return value in set_alarm [+ + +]
Author: Nuno Sá <[email protected]>
Date:   Fri Nov 28 16:36:38 2025 +0000

    rtc: max31335: Fix ignored return value in set_alarm
    
    [ Upstream commit f07640f9fb8df2158199da1da1f8282948385a84 ]
    
    Return the result from regmap_update_bits() instead of ignoring it
    and always returning 0.
    
    Fixes: dedaf03b99d6 ("rtc: max31335: add driver support")
    Signed-off-by: Nuno Sá <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Alexandre Belloni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
s390/ap: Don't leak debug feature files if AP instructions are not available [+ + +]
Author: Heiko Carstens <[email protected]>
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 <[email protected]>
    Signed-off-by: Heiko Carstens <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
s390/fpu: Fix false-positive kmsan report in fpu_vstl() [+ + +]
Author: Aleksei Nikiforov <[email protected]>
Date:   Fri Nov 7 16:59:16 2025 +0100

    s390/fpu: Fix false-positive kmsan report in fpu_vstl()
    
    [ Upstream commit 14e4e4175b64dd9216b522f6ece8af6997d063b2 ]
    
    A false-positive kmsan report is detected when running ping command.
    
    An inline assembly instruction 'vstl' can write varied amount of bytes
    depending on value of 'index' argument. If 'index' > 0, 'vstl' writes
    at least 2 bytes.
    
    clang generates kmsan write helper call depending on inline assembly
    constraints. Constraints are evaluated compile-time, but value of
    'index' argument is known only at runtime.
    
    clang currently generates call to __msan_instrument_asm_store with 1 byte
    as size. Manually call kmsan function to indicate correct amount of bytes
    written and fix false-positive report.
    
    This change fixes following kmsan reports:
    
    [   36.563119] =====================================================
    [   36.563594] BUG: KMSAN: uninit-value in virtqueue_add+0x35c6/0x7c70
    [   36.563852]  virtqueue_add+0x35c6/0x7c70
    [   36.564016]  virtqueue_add_outbuf+0xa0/0xb0
    [   36.564266]  start_xmit+0x288c/0x4a20
    [   36.564460]  dev_hard_start_xmit+0x302/0x900
    [   36.564649]  sch_direct_xmit+0x340/0xea0
    [   36.564894]  __dev_queue_xmit+0x2e94/0x59b0
    [   36.565058]  neigh_resolve_output+0x936/0xb40
    [   36.565278]  __neigh_update+0x2f66/0x3a60
    [   36.565499]  neigh_update+0x52/0x60
    [   36.565683]  arp_process+0x1588/0x2de0
    [   36.565916]  NF_HOOK+0x1da/0x240
    [   36.566087]  arp_rcv+0x3e4/0x6e0
    [   36.566306]  __netif_receive_skb_list_core+0x1374/0x15a0
    [   36.566527]  netif_receive_skb_list_internal+0x1116/0x17d0
    [   36.566710]  napi_complete_done+0x376/0x740
    [   36.566918]  virtnet_poll+0x1bae/0x2910
    [   36.567130]  __napi_poll+0xf4/0x830
    [   36.567294]  net_rx_action+0x97c/0x1ed0
    [   36.567556]  handle_softirqs+0x306/0xe10
    [   36.567731]  irq_exit_rcu+0x14c/0x2e0
    [   36.567910]  do_io_irq+0xd4/0x120
    [   36.568139]  io_int_handler+0xc2/0xe8
    [   36.568299]  arch_cpu_idle+0xb0/0xc0
    [   36.568540]  arch_cpu_idle+0x76/0xc0
    [   36.568726]  default_idle_call+0x40/0x70
    [   36.568953]  do_idle+0x1d6/0x390
    [   36.569486]  cpu_startup_entry+0x9a/0xb0
    [   36.569745]  rest_init+0x1ea/0x290
    [   36.570029]  start_kernel+0x95e/0xb90
    [   36.570348]  startup_continue+0x2e/0x40
    [   36.570703]
    [   36.570798] Uninit was created at:
    [   36.571002]  kmem_cache_alloc_node_noprof+0x9e8/0x10e0
    [   36.571261]  kmalloc_reserve+0x12a/0x470
    [   36.571553]  __alloc_skb+0x310/0x860
    [   36.571844]  __ip_append_data+0x483e/0x6a30
    [   36.572170]  ip_append_data+0x11c/0x1e0
    [   36.572477]  raw_sendmsg+0x1c8c/0x2180
    [   36.572818]  inet_sendmsg+0xe6/0x190
    [   36.573142]  __sys_sendto+0x55e/0x8e0
    [   36.573392]  __s390x_sys_socketcall+0x19ae/0x2ba0
    [   36.573571]  __do_syscall+0x12e/0x240
    [   36.573823]  system_call+0x6e/0x90
    [   36.573976]
    [   36.574017] Byte 35 of 98 is uninitialized
    [   36.574082] Memory access of size 98 starts at 0000000007aa0012
    [   36.574218]
    [   36.574325] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G    B            N  6.17.0-dirty #16 NONE
    [   36.574541] Tainted: [B]=BAD_PAGE, [N]=TEST
    [   36.574617] Hardware name: IBM 3931 A01 703 (KVM/Linux)
    [   36.574755] =====================================================
    
    [   63.532541] =====================================================
    [   63.533639] BUG: KMSAN: uninit-value in virtqueue_add+0x35c6/0x7c70
    [   63.533989]  virtqueue_add+0x35c6/0x7c70
    [   63.534940]  virtqueue_add_outbuf+0xa0/0xb0
    [   63.535861]  start_xmit+0x288c/0x4a20
    [   63.536708]  dev_hard_start_xmit+0x302/0x900
    [   63.537020]  sch_direct_xmit+0x340/0xea0
    [   63.537997]  __dev_queue_xmit+0x2e94/0x59b0
    [   63.538819]  neigh_resolve_output+0x936/0xb40
    [   63.539793]  ip_finish_output2+0x1ee2/0x2200
    [   63.540784]  __ip_finish_output+0x272/0x7a0
    [   63.541765]  ip_finish_output+0x4e/0x5e0
    [   63.542791]  ip_output+0x166/0x410
    [   63.543771]  ip_push_pending_frames+0x1a2/0x470
    [   63.544753]  raw_sendmsg+0x1f06/0x2180
    [   63.545033]  inet_sendmsg+0xe6/0x190
    [   63.546006]  __sys_sendto+0x55e/0x8e0
    [   63.546859]  __s390x_sys_socketcall+0x19ae/0x2ba0
    [   63.547730]  __do_syscall+0x12e/0x240
    [   63.548019]  system_call+0x6e/0x90
    [   63.548989]
    [   63.549779] Uninit was created at:
    [   63.550691]  kmem_cache_alloc_node_noprof+0x9e8/0x10e0
    [   63.550975]  kmalloc_reserve+0x12a/0x470
    [   63.551969]  __alloc_skb+0x310/0x860
    [   63.552949]  __ip_append_data+0x483e/0x6a30
    [   63.553902]  ip_append_data+0x11c/0x1e0
    [   63.554912]  raw_sendmsg+0x1c8c/0x2180
    [   63.556719]  inet_sendmsg+0xe6/0x190
    [   63.557534]  __sys_sendto+0x55e/0x8e0
    [   63.557875]  __s390x_sys_socketcall+0x19ae/0x2ba0
    [   63.558869]  __do_syscall+0x12e/0x240
    [   63.559832]  system_call+0x6e/0x90
    [   63.560780]
    [   63.560972] Byte 35 of 98 is uninitialized
    [   63.561741] Memory access of size 98 starts at 0000000005704312
    [   63.561950]
    [   63.562824] CPU: 3 UID: 0 PID: 192 Comm: ping Tainted: G    B            N  6.17.0-dirty #16 NONE
    [   63.563868] Tainted: [B]=BAD_PAGE, [N]=TEST
    [   63.564751] Hardware name: IBM 3931 A01 703 (KVM/Linux)
    [   63.564986] =====================================================
    
    Fixes: dcd3e1de9d17 ("s390/checksum: provide csum_partial_copy_nocheck()")
    Signed-off-by: Aleksei Nikiforov <[email protected]>
    Signed-off-by: Heiko Carstens <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
s390/smp: Fix fallback CPU detection [+ + +]
Author: Heiko Carstens <[email protected]>
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 <[email protected]>
    Fixes: d08d94306e90 ("s390/smp: cleanup core vs. cpu in the SCLP interface")
    Reviewed-by: Mete Durlu <[email protected]>
    Signed-off-by: Heiko Carstens <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
sched/core: Fix psi_dequeue() for Proxy Execution [+ + +]
Author: John Stultz <[email protected]>
Date:   Fri Dec 5 01:27:09 2025 +0000

    sched/core: Fix psi_dequeue() for Proxy Execution
    
    [ Upstream commit c2ae8b0df2d1bb7a063f9e356e4e9a06cd4afe11 ]
    
    Currently, if the sleep flag is set, psi_dequeue() doesn't
    change any of the psi_flags.
    
    This is because psi_task_switch() will clear TSK_ONCPU as well
    as other potential flags (TSK_RUNNING), and the assumption is
    that a voluntary sleep always consists of a task being dequeued
    followed shortly there after with a psi_sched_switch() call.
    
    Proxy Execution changes this expectation, as mutex-blocked tasks
    that would normally sleep stay on the runqueue. But in the case
    where the mutex-owning task goes to sleep, or the owner is on a
    remote cpu, we will then deactivate the blocked task shortly
    after.
    
    In that situation, the mutex-blocked task will have had its
    TSK_ONCPU cleared when it was switched off the cpu, but it will
    stay TSK_RUNNING. Then if we later dequeue it (as currently done
    if we hit a case find_proxy_task() can't yet handle, such as the
    case of the owner being on another rq or a sleeping owner)
    psi_dequeue() won't change any state (leaving it TSK_RUNNING),
    as it incorrectly expects a psi_task_switch() call to
    immediately follow.
    
    Later on when the task get woken/re-enqueued, and psi_flags are
    set for TSK_RUNNING, we hit an error as the task is already
    TSK_RUNNING:
    
      psi: inconsistent task state! task=188:kworker/28:0 cpu=28 psi_flags=4 clear=0 set=4
    
    To resolve this, extend the logic in psi_dequeue() so that
    if the sleep flag is set, we also check if psi_flags have
    TSK_ONCPU set (meaning the psi_task_switch is imminent) before
    we do the shortcut return.
    
    If TSK_ONCPU is not set, that means we've already switched away,
    and this psi_dequeue call needs to clear the flags.
    
    Fixes: be41bde4c3a8 ("sched: Add an initial sketch of the find_proxy_task() function")
    Reported-by: K Prateek Nayak <[email protected]>
    Signed-off-by: John Stultz <[email protected]>
    Signed-off-by: Ingo Molnar <[email protected]>
    Tested-by: K Prateek Nayak <[email protected]>
    Tested-by: Haiyue Wang <[email protected]>
    Acked-by: Johannes Weiner <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Closes: https://lore.kernel.org/lkml/[email protected]/
    Signed-off-by: Sasha Levin <[email protected]>

 
sched/fair: Fix unfairness caused by stalled tg_load_avg_contrib when the last task migrates out [+ + +]
Author: xupengbo <[email protected]>
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 <[email protected]>
    Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
    Signed-off-by: Ingo Molnar <[email protected]>
    Reviewed-by: Aaron Lu <[email protected]>
    Reviewed-by: Vincent Guittot <[email protected]>
    Tested-by: Aaron Lu <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

sched/fair: Forfeit vruntime on yield [+ + +]
Author: Fernand Sieber <[email protected]>
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 <[email protected]>
    Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Link: https://lore.kernel.org/r/[email protected]
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
scsi: imm: Fix use-after-free bug caused by unfinished delayed work [+ + +]
Author: Duoming Zhou <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

scsi: qla2xxx: Fix improper freeing of purex item [+ + +]
Author: Zilin Guan <[email protected]>
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 <[email protected]>
    Reviewed-by: Himanshu Madhani <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

scsi: sim710: Fix resource leak by adding missing ioport_unmap() calls [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

scsi: smartpqi: Fix device resources accessed after device removal [+ + +]
Author: Mike McGowen <[email protected]>
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 <[email protected]>
    Reviewed-by: Scott Benesh <[email protected]>
    Signed-off-by: Mike McGowen <[email protected]>
    Signed-off-by: Don Brace <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

scsi: stex: Fix reboot_notifier leak in probe error path [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

scsi: target: Do not write NUL characters into ASCII configfs output [+ + +]
Author: Bart Van Assche <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

scsi: target: Fix LUN/device R/W and total command stats [+ + +]
Author: Mike Christie <[email protected]>
Date:   Wed Sep 17 17:12:53 2025 -0500

    scsi: target: Fix LUN/device R/W and total command stats
    
    [ Upstream commit 95aa2041c654161d1b5c1eca5379d67d91ef1cf2 ]
    
    In commit 9cf2317b795d ("scsi: target: Move I/O path stats to per CPU")
    I saw we sometimes use %u and also misread the spec. As a result I
    thought all the stats were supposed to be 32-bit only. However, for the
    majority of cases we support currently, the spec specifies u64 bit
    stats. This patch converts the stats changed in the commit above to u64.
    
    Fixes: 9cf2317b795d ("scsi: target: Move I/O path stats to per CPU")
    Signed-off-by: Mike Christie <[email protected]>
    Reviewed-by: Dmitry Bogdanov <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

scsi: ufs: core: fix incorrect buffer duplication in ufshcd_read_string_desc() [+ + +]
Author: Bean Huo <[email protected]>
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 <[email protected]>
    Reviewed-by: Bart Van Assche <[email protected]>
    Signed-off-by: Bean Huo <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

scsi: ufs: core: Move the ufshcd_enable_intr() declaration [+ + +]
Author: Bart Van Assche <[email protected]>
Date:   Tue Oct 14 13:00:58 2025 -0700

    scsi: ufs: core: Move the ufshcd_enable_intr() declaration
    
    [ Upstream commit b30006b5bec1dcba207bc42e7f7cd96a568acc27 ]
    
    ufshcd_enable_intr() is not exported and hence should not be declared in
    include/ufs/ufshcd.h.
    
    Fixes: 253757797973 ("scsi: ufs: core: Change MCQ interrupt enable flow")
    Signed-off-by: Bart Van Assche <[email protected]>
    Reviewed-by: Peter Wang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

scsi: ufs: rockchip: Reset controller on PRE_CHANGE of hce enable notify [+ + +]
Author: Shawn Lin <[email protected]>
Date:   Thu Nov 13 12:52:55 2025 +0800

    scsi: ufs: rockchip: Reset controller on PRE_CHANGE of hce enable notify
    
    [ Upstream commit b0ee72db9132bd19b1b80152b35e0cf6a6cbd9f2 ]
    
    This fixes the dme-reset failed when doing recovery. Because device
    reset is not enough, we could occasionally see the error below:
    
    ufshcd-rockchip 2a2d0000.ufs: uic cmd 0x14 with arg3 0x0 completion timeout
    ufshcd-rockchip 2a2d0000.ufs: dme-reset: error code -110
    ufshcd-rockchip 2a2d0000.ufs: DME_RESET failed
    ufshcd-rockchip 2a2d0000.ufs: ufshcd_host_reset_and_restore: Host init failed -110
    
    Fix this by resetting the controller on PRE_CHANGE stage of hce enable
    notify.
    
    Fixes: d3cbe455d6eb ("scsi: ufs: rockchip: Initial support for UFS")
    Signed-off-by: Shawn Lin <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
sctp: Defer SCTP_DBG_OBJCNT_DEC() to sctp_destroy_sock(). [+ + +]
Author: Kuniyuki Iwashima <[email protected]>
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 <[email protected]>
    Acked-by: Xin Long <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
selftests/bpf: Fix failure paths in send_signal test [+ + +]
Author: Alexei Starovoitov <[email protected]>
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 <[email protected]>
    Signed-off-by: Andrii Nakryiko <[email protected]>
    Acked-by: Eduard Zingerman <[email protected]>
    Link: https://lore.kernel.org/bpf/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

selftests/bpf: Improve reliability of test_perf_branches_no_hw() [+ + +]
Author: Matt Bobrowski <[email protected]>
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 <[email protected]>
    Reviewed-by: Jiri Olsa <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

selftests/bpf: skip test_perf_branches_hw() on unsupported platforms [+ + +]
Author: Matt Bobrowski <[email protected]>
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 <[email protected]>
    Acked-by: Song Liu <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alexei Starovoitov <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

selftests/bpf: Use ASSERT_STRNEQ to factor in long slab cache names [+ + +]
Author: Matt Bobrowski <[email protected]>
Date:   Tue Nov 18 07:37:34 2025 +0000

    selftests/bpf: Use ASSERT_STRNEQ to factor in long slab cache names
    
    [ Upstream commit d088da904223e8f5e19c6d156cf372d5baec1a7c ]
    
    subtest_kmem_cache_iter_check_slabinfo() fundamentally compares slab
    cache names parsed out from /proc/slabinfo against those stored within
    struct kmem_cache_result. The current problem is that the slab cache
    name within struct kmem_cache_result is stored within a bounded
    fixed-length array (sized to SLAB_NAME_MAX(32)), whereas the name
    parsed out from /proc/slabinfo is not. Meaning, using ASSERT_STREQ()
    can certainly lead to test failures, particularly when dealing with
    slab cache names that are longer than SLAB_NAME_MAX(32)
    bytes. Notably, kmem_cache_create() allows callers to create slab
    caches with somewhat arbitrarily sized names via its __name identifier
    argument, so exceeding the SLAB_NAME_MAX(32) limit that is in place
    now can certainly happen.
    
    Make subtest_kmem_cache_iter_check_slabinfo() more reliable by only
    checking up to sizeof(struct kmem_cache_result.name) - 1 using
    ASSERT_STRNEQ().
    
    Fixes: a496d0cdc84d ("selftests/bpf: Add a test for kmem_cache_iter")
    Signed-off-by: Matt Bobrowski <[email protected]>
    Signed-off-by: Martin KaFai Lau <[email protected]>
    Acked-by: Song Liu <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
selftests/net: packetdrill: pass send_omit_free to MSG_ZEROCOPY tests [+ + +]
Author: Willem de Bruijn <[email protected]>
Date:   Tue Nov 25 18:35:05 2025 -0500

    selftests/net: packetdrill: pass send_omit_free to MSG_ZEROCOPY tests
    
    [ Upstream commit c01a6e5b2e4f21d31cf725b9f3803cb0280b1b8d ]
    
    The --send_omit_free flag is needed for TCP zero copy tests, to ensure
    that packetdrill doesn't free the send() buffer after the send() call.
    
    Fixes: 1e42f73fd3c2 ("selftests/net: packetdrill: import tcp/zerocopy")
    Closes: https://lore.kernel.org/netdev/[email protected]/
    Suggested-by: Neal Cardwell <[email protected]>
    Signed-off-by: Willem de Bruijn <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
selftests: bonding: add delay before each xvlan_over_bond connectivity check [+ + +]
Author: Hangbin Liu <[email protected]>
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 <[email protected]>
    Closes: https://lore.kernel.org/netdev/[email protected]
    Signed-off-by: Hangbin Liu <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
smack: always "instantiate" inode in smack_inode_init_security() [+ + +]
Author: Konstantin Andreev <[email protected]>
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 <[email protected]>
    Signed-off-by: Casey Schaufler <[email protected]>
    Stable-dep-of: 78fc6a94be25 ("smack: fix bug: invalid label of unix socket file")
    Signed-off-by: Sasha Levin <[email protected]>

smack: deduplicate "does access rule request transmutation" [+ + +]
Author: Konstantin Andreev <[email protected]>
Date:   Mon Jun 16 04:07:28 2025 +0300

    smack: deduplicate "does access rule request transmutation"
    
    [ Upstream commit 635a01da8385fc00a144ec24684100bd1aa9db11 ]
    
    Signed-off-by: Konstantin Andreev <[email protected]>
    Signed-off-by: Casey Schaufler <[email protected]>
    Stable-dep-of: 78fc6a94be25 ("smack: fix bug: invalid label of unix socket file")
    Signed-off-by: Sasha Levin <[email protected]>
smack: deduplicate xattr setting in smack_inode_init_security() [+ + +]
Author: Konstantin Andreev <[email protected]>
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 <[email protected]>
    Signed-off-by: Casey Schaufler <[email protected]>
    Stable-dep-of: 78fc6a94be25 ("smack: fix bug: invalid label of unix socket file")
    Signed-off-by: Sasha Levin <[email protected]>

smack: fix bug: invalid label of unix socket file [+ + +]
Author: Konstantin Andreev <[email protected]>
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/[email protected]/
    
    Signed-off-by: Konstantin Andreev <[email protected]>
    Signed-off-by: Casey Schaufler <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

smack: fix bug: setting task label silently ignores input garbage [+ + +]
Author: Konstantin Andreev <[email protected]>
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 <[email protected]>
    Signed-off-by: Casey Schaufler <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

smack: fix bug: SMACK64TRANSMUTE set on non-directory [+ + +]
Author: Konstantin Andreev <[email protected]>
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/[email protected]/
    
    [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/[email protected]/
    
    Signed-off-by: Konstantin Andreev <[email protected]>
    Signed-off-by: Casey Schaufler <[email protected]>
    Stable-dep-of: 78fc6a94be25 ("smack: fix bug: invalid label of unix socket file")
    Signed-off-by: Sasha Levin <[email protected]>

smack: fix bug: unprivileged task can create labels [+ + +]
Author: Konstantin Andreev <[email protected]>
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 <[email protected]>
    Signed-off-by: Casey Schaufler <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
soc: qcom: gsbi: fix double disable caused by devm [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Link: https://lore.kernel.org/stable/20251020160215.523-1-vulab%40iscas.ac.cn
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

soc: qcom: smem: fix hwspinlock resource leak in probe error paths [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Reviewed-by: Konrad Dybcio <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
spi: airoha-snfi: en7523: workaround flash damaging if UART_TXD was short to GND [+ + +]
Author: Mikhail Kshevetskiy <[email protected]>
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 <[email protected]>
    Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

spi: ch341: fix out-of-bounds memory access in ch341_transfer_one [+ + +]
Author: Tianchu Chen <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

spi: sophgo: Fix incorrect use of bus width value macros [+ + +]
Author: Longbin Li <[email protected]>
Date:   Mon Nov 17 17:05:39 2025 +0800

    spi: sophgo: Fix incorrect use of bus width value macros
    
    [ Upstream commit d9813cd23d5a7b254cc1b1c1ea042634d8da62e6 ]
    
    The previous code initialized the 'reg' value with specific bus-width
    values (BUS_WIDTH_2_BIT and BUS_WIDTH_4_BIT), which introduces ambiguity.
    Replace them with BUS_WIDTH_MASK to express the intention clearly.
    
    Fixes: de16c322eefb ("spi: sophgo: add SG2044 SPI NOR controller driver")
    Signed-off-by: Longbin Li <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

spi: tegra210-quad: Fix timeout handling [+ + +]
Author: Vishwaroop A <[email protected]>
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 <[email protected]>
    Signed-off-by: Vishwaroop A <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
staging: fbtft: core: fix potential memory leak in fbtft_probe_common() [+ + +]
Author: Jianglei Nie <[email protected]>
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 <[email protected]>
    Signed-off-by: Andy Shevchenko <[email protected]>
    Acked-by: Abdun Nihaal <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

staging: most: remove broken i2c driver [+ + +]
Author: Johan Hovold <[email protected]>
Date:   Wed Oct 29 10:34:42 2025 +0100

    staging: most: remove broken i2c driver
    
    [ Upstream commit 495df2da6944477d282d5cc0c13174d06e25b310 ]
    
    The MOST I2C driver has been completely broken for five years without
    anyone noticing so remove the driver from staging.
    
    Specifically, commit 723de0f9171e ("staging: most: remove device from
    interface structure") started requiring drivers to set the interface
    device pointer before registration, but the I2C driver was never updated
    which results in a NULL pointer dereference if anyone ever tries to
    probe it.
    
    Fixes: 723de0f9171e ("staging: most: remove device from interface structure")
    Cc: Christian Gromm <[email protected]>
    Signed-off-by: Johan Hovold <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
task_work: Fix NMI race condition [+ + +]
Author: Peter Zijlstra <[email protected]>
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 <[email protected]>
    Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
    Reviewed-by: Steven Rostedt (Google) <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
timers/migration: Convert "while" loops to use "for" [+ + +]
Author: Frederic Weisbecker <[email protected]>
Date:   Fri Oct 24 15:25:31 2025 +0200

    timers/migration: Convert "while" loops to use "for"
    
    [ Upstream commit 6c181b5667eea3e6564d334443536a5974190e15 ]
    
    Both the "do while" and "while" loops in tmigr_setup_groups() eventually
    mimic the behaviour of "for" loops.
    
    Simplify accordingly.
    
    Signed-off-by: Frederic Weisbecker <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Stable-dep-of: 5eb579dfd46b ("timers/migration: Fix imbalanced NUMA trees")
    Signed-off-by: Sasha Levin <[email protected]>

timers/migration: Fix imbalanced NUMA trees [+ + +]
Author: Frederic Weisbecker <[email protected]>
Date:   Fri Oct 24 15:25:33 2025 +0200

    timers/migration: Fix imbalanced NUMA trees
    
    [ Upstream commit 5eb579dfd46b4949117ecb0f1ba2f12d3dc9a6f2 ]
    
    When a CPU from a new node boots, the old root may happen to be
    connected to the new root even if their node mismatch, as depicted in
    the following scenario:
    
    1) CPU 0 boots and creates the first group for node 0.
    
       [GRP0:0]
        node 0
          |
        CPU 0
    
    2) CPU 1 from node 1 boots and creates a new top that corresponds to
       node 1, but it also connects the old root from node 0 to the new root
       from node 1 by mistake.
    
                 [GRP1:0]
                  node 1
                /        \
               /          \
       [GRP0:0]             [GRP0:1]
        node 0               node 1
          |                    |
        CPU 0                CPU 1
    
    3) This eventually leads to an imbalanced tree where some node 0 CPUs
       migrate node 1 timers (and vice versa) way before reaching the
       crossnode groups, resulting in more frequent remote memory accesses
       than expected.
    
                          [GRP2:0]
                          NUMA_NO_NODE
                         /             \
                 [GRP1:0]              [GRP1:1]
                  node 1               node 0
                /        \                |
               /          \             [...]
       [GRP0:0]             [GRP0:1]
        node 0               node 1
          |                    |
        CPU 0...              CPU 1...
    
    A balanced tree should only contain groups having children that belong
    to the same node:
    
                          [GRP2:0]
                          NUMA_NO_NODE
                         /             \
                 [GRP1:0]              [GRP1:0]
                  node 0               node 1
                /        \             /      \
               /          \           /        \
       [GRP0:0]          [...]      [...]    [GRP0:1]
        node 0                                node 1
          |                                     |
        CPU 0...                              CPU 1...
    
    In order to fix this, the hierarchy must be unfolded up to the crossnode
    level as soon as a node mismatch is detected. For example the stage 2
    above should lead to this layout:
    
                          [GRP2:0]
                          NUMA_NO_NODE
                         /             \
                 [GRP1:0]              [GRP1:1]
                  node 0               node 1
                  /                         \
                 /                           \
            [GRP0:0]                        [GRP0:1]
            node 0                           node 1
              |                                |
           CPU 0                             CPU 1
    
    This means that not only GRP1:0 must be created but also GRP1:1 and
    GRP2:0 in order to prepare a balanced tree for next CPUs to boot.
    
    Fixes: 7ee988770326 ("timers: Implement the hierarchical pull model")
    Signed-off-by: Frederic Weisbecker <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

timers/migration: Remove locking on group connection [+ + +]
Author: Frederic Weisbecker <[email protected]>
Date:   Fri Oct 24 15:25:32 2025 +0200

    timers/migration: Remove locking on group connection
    
    [ Upstream commit fa9620355d4192200f15cb3d97c6eb9c02442249 ]
    
    Initializing the tmc's group, the group's number of children and the
    group's parent can all be done without locking because:
    
      1) Reading the group's parent and its group mask is done locklessly.
    
      2) The connections prepared for a given CPU hierarchy are visible to the
         target CPU once online, thanks to the CPU hotplug enforced memory
         ordering.
    
      3) In case of a newly created upper level, the new root and its
         connections and initialization are made visible by the CPU which made
         the connections. When that CPUs goes idle in the future, the new link
         is published by tmigr_inactive_up() through the atomic RmW on
         ->migr_state.
    
      4) If CPUs were still walking up the active hierarchy, they could observe
         the new root earlier. In this case the ordering is enforced by an
         early initialization of the group mask and by barriers that maintain
         address dependency as explained in:
    
         b729cc1ec21a ("timers/migration: Fix another race between hotplug and idle entry/exit")
         de3ced72a792 ("timers/migration: Enforce group initialization visibility to tree walkers")
    
      5) Timers are propagated by a chain of group locking from the bottom to
         the top. And while doing so, the tree also propagates groups links
         and initialization. Therefore remote expiration, which also relies
         on group locking, will observe those links and initialization while
         holding the root lock before walking the tree remotely and update
         remote timers. This is especially important for migrators in the
         active hierarchy that may observe the new root early.
    
    Therefore the locking is unnecessary at initialization. If anything, it
    just brings confusion. Remove it.
    
    Signed-off-by: Frederic Weisbecker <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Stable-dep-of: 5eb579dfd46b ("timers/migration: Fix imbalanced NUMA trees")
    Signed-off-by: Sasha Levin <[email protected]>

 
tools/nolibc/dirent: avoid errno in readdir_r [+ + +]
Author: Benjamin Berg <[email protected]>
Date:   Wed Sep 24 16:20:51 2025 +0200

    tools/nolibc/dirent: avoid errno in readdir_r
    
    [ Upstream commit 4ada5679f18dbbe92d87c37a842c3368e6ab5e4a ]
    
    Using errno is not possible when NOLIBC_IGNORE_ERRNO is set. Use
    sys_lseek instead of lseek as that avoids using errno.
    
    Fixes: 665fa8dea90d ("tools/nolibc: add support for directory access")
    Signed-off-by: Benjamin Berg <[email protected]>
    Signed-off-by: Thomas Weißschuh <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
tools/nolibc/stdio: let perror work when NOLIBC_IGNORE_ERRNO is set [+ + +]
Author: Benjamin Berg <[email protected]>
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 <[email protected]>
    Signed-off-by: Thomas Weißschuh <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
tools/nolibc: handle NULL wstatus argument to waitpid() [+ + +]
Author: Thomas Weißschuh <[email protected]>
Date:   Fri Sep 26 16:26:58 2025 +0200

    tools/nolibc: handle NULL wstatus argument to waitpid()
    
    [ Upstream commit 812f223fe9be03dc22abb85240b6f075135d2386 ]
    
    wstatus is allowed to be NULL. Avoid a segmentation fault in this case.
    
    Fixes: 0c89abf5ab3f ("tools/nolibc: implement waitpid() in terms of waitid()")
    Signed-off-by: Thomas Weißschuh <[email protected]>
    Acked-by: Willy Tarreau <[email protected]>
    Signed-off-by: Thomas Weißschuh <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
tools/power turbostat: Regression fix Uncore MHz printed in hex [+ + +]
Author: Len Brown <[email protected]>
Date:   Mon Oct 20 18:41:38 2025 -0300

    tools/power turbostat: Regression fix Uncore MHz printed in hex
    
    [ Upstream commit 92664f2e6ab2228a3330734fc72dabeaf8a49ee1 ]
    
    A patch to allow specifying FORMAT_AVERAGE to added counters...
    broke the internally added counter for Cluster Uncore MHz -- printing it in HEX.
    
    Fixes: dcd1c379b0f1 ("tools/power turbostat: add format "average" for external attributes")
    Reported-by: Andrej Tkalcec <[email protected]>
    Signed-off-by: Len Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
tracefs: fix a leak in eventfs_create_events_dir() [+ + +]
Author: Al Viro <[email protected]>
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) <[email protected]>
    Signed-off-by: Al Viro <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
tty: introduce tty_port_tty guard() [+ + +]
Author: Jiri Slaby (SUSE) <[email protected]>
Date:   Thu Aug 14 09:24:42 2025 +0200

    tty: introduce tty_port_tty guard()
    
    [ Upstream commit e8398b8aed50382c21fcec77e80a5314e7c45c25 ]
    
    Having this, guards like these work:
      scoped_guard(tty_port_tty, port)
        tty_wakeup(scoped_tty());
    
    See e.g. "tty_port: use scoped_guard()" later in this series.
    
    The definitions depend on CONFIG_TTY. It's due to tty_kref_put().
    On !CONFIG_TTY, it is an inline and its declaration would conflict. The
    guards are not needed in that case, of course.
    
    Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Stable-dep-of: d55f3d2375ce ("tty: serial: imx: Only configure the wake register when device is set as wakeup source")
    Signed-off-by: Sasha Levin <[email protected]>

tty: serial: imx: Only configure the wake register when device is set as wakeup source [+ + +]
Author: Sherry Sun <[email protected]>
Date:   Thu Oct 2 12:52:58 2025 +0800

    tty: serial: imx: Only configure the wake register when device is set as wakeup source
    
    [ Upstream commit d55f3d2375ceeb08330d30f1e08196993c0b6583 ]
    
    Currently, the i.MX UART driver enables wake-related registers for all
    UART devices by default. However, this is unnecessary for devices that
    are not configured as wakeup sources. To address this, add a
    device_may_wakeup() check before configuring the UART wake-related
    registers.
    
    Fixes: db1a9b55004c ("tty: serial: imx: Allow UART to be a source for wakeup")
    Signed-off-by: Sherry Sun <[email protected]>
    Reviewed-by: Frank Li <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
ublk: prevent invalid access with DEBUG [+ + +]
Author: Kevin Brodsky <[email protected]>
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 <[email protected]>
    Fixes: 71f28f3136af ("ublk_drv: add io_uring based userspace block driver")
    Reviewed-by: Caleb Sander Mateos <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
uio: uio_fsl_elbc_gpcm:: Add null pointer check to uio_fsl_elbc_gpcm_probe [+ + +]
Author: Li Qiang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
um: Don't rename vmap to kernel_vmap [+ + +]
Author: David Gow <[email protected]>
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 <[email protected]>
    Acked-by: Miguel Ojeda <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Fixes: 12b8e7e69aa7 ("um: Remove obsolete pcap driver")
    [adjust commmit message a bit]
    Signed-off-by: Johannes Berg <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
usb: chaoskey: fix locking for O_NONBLOCK [+ + +]
Author: Oliver Neukum <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

usb: dwc2: fix hang during shutdown if set as peripheral [+ + +]
Author: Jisheng Zhang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

usb: dwc2: fix hang during suspend if set as peripheral [+ + +]
Author: Jisheng Zhang <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

usb: dwc3: dwc3_power_off_all_roothub_ports: Use ioremap_np when required [+ + +]
Author: Sven Peter <[email protected]>
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: [email protected]
    Acked-by: Thinh Nguyen <[email protected]>
    Reviewed-by: Neal Gompa <[email protected]>
    Signed-off-by: Sven Peter <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
USB: Fix descriptor count when handling invalid MBIM extended descriptor [+ + +]
Author: Seungjin Bae <[email protected]>
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 <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
usb: gadget: tegra-xudc: Always reinitialize data toggle when clear halt [+ + +]
Author: Haotien Hsu <[email protected]>
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 <[email protected]>
    Signed-off-by: Haotien Hsu <[email protected]>
    Signed-off-by: Wayne Chang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

usb: phy: Initialize struct usb_phy list_head [+ + +]
Author: Diogo Ivo <[email protected]>
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 <[email protected]>
    Signed-off-by: Diogo Ivo <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

usb: raw-gadget: cap raw_io transfer length to KMALLOC_MAX_SIZE [+ + +]
Author: Gopi Krishna Menon <[email protected]>
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: [email protected]
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/all/[email protected]/
    Signed-off-by: Gopi Krishna Menon <[email protected]>
    Reviewed-by: Andrey Konovalov <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

usb: typec: ucsi: fix probe failure in gaokun_ucsi_probe() [+ + +]
Author: Duoming Zhou <[email protected]>
Date:   Tue Nov 25 18:36:26 2025 +0800

    usb: typec: ucsi: fix probe failure in gaokun_ucsi_probe()
    
    commit 6b120ef99fbcba9e413783561f8cc160719db589 upstream.
    
    The gaokun_ucsi_probe() uses ucsi_create() to allocate a UCSI instance.
    The ucsi_create() validates whether ops->poll_cci is defined, and if not,
    it directly returns -EINVAL. However, the gaokun_ucsi_ops structure does
    not define the poll_cci, causing ucsi_create() always fail with -EINVAL.
    This issue can be observed in the kernel log with the following error:
    
    ucsi_huawei_gaokun.ucsi huawei_gaokun_ec.ucsi.0: probe with driver
    ucsi_huawei_gaokun.ucsi failed with error -22
    
    Fix the issue by adding the missing poll_cci callback to gaokun_ucsi_ops.
    
    Fixes: 00327d7f2c8c ("usb: typec: ucsi: add Huawei Matebook E Go ucsi driver")
    Cc: stable <[email protected]>
    Signed-off-by: Duoming Zhou <[email protected]>
    Reviewed-by: Heikki Krogerus <[email protected]>
    Reviewed-by: Pengyu Luo <[email protected]>
    Link: https://patch.msgid.link/4d077d6439d728be68646bb8c8678436a3a0885e.1764065838.git.duoming@zju.edu.cn
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

usb: typec: ucsi: fix use-after-free caused by uec->work [+ + +]
Author: Duoming Zhou <[email protected]>
Date:   Tue Nov 25 18:36:27 2025 +0800

    usb: typec: ucsi: fix use-after-free caused by uec->work
    
    commit 2b7a0f47aaf2439d517ba0a6b29c66a535302154 upstream.
    
    The delayed work uec->work is scheduled in gaokun_ucsi_probe()
    but never properly canceled in gaokun_ucsi_remove(). This creates
    use-after-free scenarios where the ucsi and gaokun_ucsi structure
    are freed after ucsi_destroy() completes execution, while the
    gaokun_ucsi_register_worker() might be either currently executing
    or still pending in the work queue. The already-freed gaokun_ucsi
    or ucsi structure may then be accessed.
    
    Furthermore, the race window is 3 seconds, which is sufficiently
    long to make this bug easily reproducible. The following is the
    trace captured by KASAN:
    
    ==================================================================
    BUG: KASAN: slab-use-after-free in __run_timers+0x5ec/0x630
    Write of size 8 at addr ffff00000ec28cc8 by task swapper/0/0
    ...
    Call trace:
     show_stack+0x18/0x24 (C)
     dump_stack_lvl+0x78/0x90
     print_report+0x114/0x580
     kasan_report+0xa4/0xf0
     __asan_report_store8_noabort+0x20/0x2c
     __run_timers+0x5ec/0x630
     run_timer_softirq+0xe8/0x1cc
     handle_softirqs+0x294/0x720
     __do_softirq+0x14/0x20
     ____do_softirq+0x10/0x1c
     call_on_irq_stack+0x30/0x48
     do_softirq_own_stack+0x1c/0x28
     __irq_exit_rcu+0x27c/0x364
     irq_exit_rcu+0x10/0x1c
     el1_interrupt+0x40/0x60
     el1h_64_irq_handler+0x18/0x24
     el1h_64_irq+0x6c/0x70
     arch_local_irq_enable+0x4/0x8 (P)
     do_idle+0x334/0x458
     cpu_startup_entry+0x60/0x70
     rest_init+0x158/0x174
     start_kernel+0x2f8/0x394
     __primary_switched+0x8c/0x94
    
    Allocated by task 72 on cpu 0 at 27.510341s:
     kasan_save_stack+0x2c/0x54
     kasan_save_track+0x24/0x5c
     kasan_save_alloc_info+0x40/0x54
     __kasan_kmalloc+0xa0/0xb8
     __kmalloc_node_track_caller_noprof+0x1c0/0x588
     devm_kmalloc+0x7c/0x1c8
     gaokun_ucsi_probe+0xa0/0x840  auxiliary_bus_probe+0x94/0xf8
     really_probe+0x17c/0x5b8
     __driver_probe_device+0x158/0x2c4
     driver_probe_device+0x10c/0x264
     __device_attach_driver+0x168/0x2d0
     bus_for_each_drv+0x100/0x188
     __device_attach+0x174/0x368
     device_initial_probe+0x14/0x20
     bus_probe_device+0x120/0x150
     device_add+0xb3c/0x10fc
     __auxiliary_device_add+0x88/0x130
    ...
    
    Freed by task 73 on cpu 1 at 28.910627s:
     kasan_save_stack+0x2c/0x54
     kasan_save_track+0x24/0x5c
     __kasan_save_free_info+0x4c/0x74
     __kasan_slab_free+0x60/0x8c
     kfree+0xd4/0x410
     devres_release_all+0x140/0x1f0
     device_unbind_cleanup+0x20/0x190
     device_release_driver_internal+0x344/0x460
     device_release_driver+0x18/0x24
     bus_remove_device+0x198/0x274
     device_del+0x310/0xa84
    ...
    
    The buggy address belongs to the object at ffff00000ec28c00
     which belongs to the cache kmalloc-512 of size 512
    The buggy address is located 200 bytes inside of
     freed 512-byte region
    The buggy address belongs to the physical page:
    page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4ec28
    head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
    flags: 0x3fffe0000000040(head|node=0|zone=0|lastcpupid=0x1ffff)
    page_type: f5(slab)
    raw: 03fffe0000000040 ffff000008801c80 dead000000000122 0000000000000000
    raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
    head: 03fffe0000000040 ffff000008801c80 dead000000000122 0000000000000000
    head: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
    head: 03fffe0000000002 fffffdffc03b0a01 00000000ffffffff 00000000ffffffff
    head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
    page dumped because: kasan: bad access detected
    
    Memory state around the buggy address:
     ffff00000ec28b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
     ffff00000ec28c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
    >ffff00000ec28c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                  ^
     ffff00000ec28d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
     ffff00000ec28d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
    ==================================================================
    
    Add disable_delayed_work_sync() in gaokun_ucsi_remove() to ensure
    that uec->work is properly canceled and prevented from executing
    after the ucsi and gaokun_ucsi structure have been deallocated.
    
    Fixes: 00327d7f2c8c ("usb: typec: ucsi: add Huawei Matebook E Go ucsi driver")
    Cc: stable <[email protected]>
    Signed-off-by: Duoming Zhou <[email protected]>
    Reviewed-by: Heikki Krogerus <[email protected]>
    Link: https://patch.msgid.link/cc31e12ef9ffbf86676585b02233165fd33f0d8e.1764065838.git.duoming@zju.edu.cn
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
vdpa/mlx5: Fix incorrect error code reporting in query_virtqueues [+ + +]
Author: Alok Tiwari <[email protected]>
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 <[email protected]>
    Acked-by: Jason Wang <[email protected]>
    Reviewed-by: Dragos Tatulea <[email protected]>
    Signed-off-by: Michael S. Tsirkin <[email protected]>
    Message-Id: <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
vdpa/pds: use %pe for ERR_PTR() in event handler registration [+ + +]
Author: Alok Tiwari <[email protected]>
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 <[email protected]>
    Reviewed-by: Brett Creeley <[email protected]>
    Signed-off-by: Michael S. Tsirkin <[email protected]>
    Message-Id: <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
vfio/pci: Use RCU for error/request triggers to avoid circular locking [+ + +]
Author: Alex Williamson <[email protected]>
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 <[email protected]>
    Reviewed-by: Jason Gunthorpe <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Alex Williamson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
vhost: Fix kthread worker cgroup failure handling [+ + +]
Author: Mike Christie <[email protected]>
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 <[email protected]>
    Acked-by: Jason Wang <[email protected]>
    Reviewed-by: Chaitanya Kulkarni <[email protected]>
    Signed-off-by: Michael S. Tsirkin <[email protected]>
    Message-Id: <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
virtio: clean up features qword/dword terms [+ + +]
Author: Michael S. Tsirkin <[email protected]>
Date:   Tue Oct 21 10:56:57 2025 -0400

    virtio: clean up features qword/dword terms
    
    [ Upstream commit 9513f25056b22100ddffe24898c587873b0d022c ]
    
    virtio pci uses word to mean "16 bits". mmio uses it to mean
    "32 bits".
    
    To avoid confusion, let's avoid the term in core virtio
    altogether. Just say U64 to mean "64 bit".
    
    Fixes: e7d4c1c5a546 ("virtio: introduce extended features")
    Cc: Paolo Abeni <[email protected]>
    Acked-by: Jason Wang <[email protected]>
    Message-ID: <ad53b7b6be87fc524f45abaeca0bb05fb3633397.1764225384.git.mst@redhat.com>
    Signed-off-by: Michael S. Tsirkin <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

virtio: fix grammar in virtio_queue_info docs [+ + +]
Author: Michael S. Tsirkin <[email protected]>
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 <[email protected]>
    Signed-off-by: Michael S. Tsirkin <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

virtio: fix typo in virtio_device_ready() comment [+ + +]
Author: Michael S. Tsirkin <[email protected]>
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 <[email protected]>
    Signed-off-by: Michael S. Tsirkin <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

virtio: fix virtqueue_set_affinity() docs [+ + +]
Author: Michael S. Tsirkin <[email protected]>
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 <[email protected]>
    Signed-off-by: Michael S. Tsirkin <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

virtio: fix whitespace in virtio_config_ops [+ + +]
Author: Michael S. Tsirkin <[email protected]>
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 <[email protected]>
    Signed-off-by: Michael S. Tsirkin <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
virtio_vdpa: fix misleading return in void function [+ + +]
Author: Alok Tiwari <[email protected]>
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 <[email protected]>
    Message-Id: <[email protected]>
    Signed-off-by: Michael S. Tsirkin <[email protected]>
    Acked-by: Jason Wang <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
watchdog: starfive: Fix resource leak in probe error path [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Reviewed-by: Wim Van Sebroeck <[email protected]>
    Signed-off-by: Guenter Roeck <[email protected]>
    Signed-off-by: Wim Van Sebroeck <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

watchdog: wdat_wdt: Fix ACPI table leak in probe function [+ + +]
Author: Haotian Zhang <[email protected]>
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 <[email protected]>
    Signed-off-by: Haotian Zhang <[email protected]>
    Reviewed-by: Guenter Roeck <[email protected]>
    Signed-off-by: Guenter Roeck <[email protected]>
    Signed-off-by: Wim Van Sebroeck <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
wifi: ath10k: move recovery check logic into a new work [+ + +]
Author: Kang Yang <[email protected]>
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 <[email protected]>
    Reviewed-by: Baochen Qiang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath11k: fix peer HE MCS assignment [+ + +]
Author: Baochen Qiang <[email protected]>
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 <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Link: https://patch.msgid.link/20251017-ath11k-mcs-assignment-v1-2-da40825c1783@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath11k: fix VHT MCS assignment [+ + +]
Author: Baochen Qiang <[email protected]>
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 <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Link: https://patch.msgid.link/20251017-ath11k-mcs-assignment-v1-1-da40825c1783@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath11k: restore register window after global reset [+ + +]
Author: Baochen Qiang <[email protected]>
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 <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Link: https://patch.msgid.link/20251014-ath11k-reset-window-cache-v1-1-b85271b111dd@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath12k: fix error handling in creating hardware group [+ + +]
Author: Baochen Qiang <[email protected]>
Date:   Thu Oct 30 10:08:43 2025 +0800

    wifi: ath12k: fix error handling in creating hardware group
    
    [ Upstream commit 088a099690e4c0d291db505013317ab5dd58b4d5 ]
    
    In ath12k_core_init() when ath12k_core_hw_group_create() fails,
    ath12k_core_hw_group_destroy() is called where for each device below
    path would get executed
    
            ath12k_core_soc_destroy()
                    ath12k_qmi_deinit_service()
                            qmi_handle_release()
    
    This results in kernel crash in case one of the device fails at
    qmi_handle_init() when creating hardware group:
    
    ath12k_pci 0000:10:00.0: failed to initialize qmi handle
    ath12k_pci 0000:10:00.0: failed to initialize qmi :-517
    ath12k_pci 0000:10:00.0: failed to create soc core: -517
    ath12k_pci 0000:10:00.0: unable to create hw group
    BUG: unable to handle page fault for address: ffffffffffffffb7
    RIP: 0010:qmi_handle_release
    Call Trace:
     <TASK>
     ath12k_qmi_deinit_service
     ath12k_core_hw_group_destroy
     ath12k_core_init
     ath12k_pci_probe
    
    The detailed reason is, when qmi_handle_init() fails for a device
    ab->qmi.handle is not correctly initialized. Then
    ath12k_core_hw_group_create() returns failure, since error handing
    is done for all device, eventually qmi_handle_release() is called for the
    issue device and finally kernel crashes due to the uninitialized
    ab->qmi.handle.
    
    Fix this by moving error handling to ath12k_core_hw_group_create(), this
    way the issue device can be skipped.
    
    Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00284.1-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
    
    Fixes: 6f245ea0ec6c ("wifi: ath12k: introduce device group abstraction")
    Link: https://lore.kernel.org/ath12k/[email protected]
    Reported-by: a-development <[email protected]>
    Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220518
    Tested-by: a-development <[email protected]>
    Signed-off-by: Baochen Qiang <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Link: https://patch.msgid.link/20251030-fix-hw-group-create-err-handling-v1-1-0659e4d15fb9@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath12k: Fix MSDU buffer types handling in RX error path [+ + +]
Author: Sarika Sharma <[email protected]>
Date:   Tue Sep 30 14:45:50 2025 +0530

    wifi: ath12k: Fix MSDU buffer types handling in RX error path
    
    [ Upstream commit 36f9edbb9d0fc36c865c74f3c1ad8e1261ad3981 ]
    
    Currently, packets received on the REO exception ring from
    unassociated peers are of MSDU buffer type, while the driver expects
    link descriptor type packets. These packets are not parsed further due
    to a return check on packet type in ath12k_hal_desc_reo_parse_err(),
    but the associated skb is not freed. This may lead to kernel
    crashes and buffer leaks.
    
    Hence to fix, update the RX error handler to explicitly drop
    MSDU buffer type packets received on the REO exception ring.
    This prevents further processing of invalid packets and ensures
    stability in the RX error handling path.
    
    Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1
    
    Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
    Signed-off-by: Sarika Sharma <[email protected]>
    Reviewed-by: Baochen Qiang <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath12k: fix potential memory leak in ath12k_wow_arp_ns_offload() [+ + +]
Author: Abdun Nihaal <[email protected]>
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 <[email protected]>
    Reviewed-by: Baochen Qiang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath12k: fix reusing m3 memory [+ + +]
Author: Baochen Qiang <[email protected]>
Date:   Wed Oct 29 10:07:14 2025 +0800

    wifi: ath12k: fix reusing m3 memory
    
    [ Upstream commit 00575bb44b2c2aa53d0a768de2b80c9c1af0174d ]
    
    During firmware recovery or suspend/resume, m3 memory could be reused if
    the size of the new m3 binary is equal to or less than that of the
    existing memory. There will be issues for the latter case, since
    m3_mem->size will be updated with a smaller value and this value is
    eventually used in the free path, where the original total size should be
    used instead.
    
    To fix it, add a new member in m3_mem_region structure to track the original
    memory size and use it in free path.
    
    Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3
    
    Fixes: 05090ae82f44 ("wifi: ath12k: check M3 buffer size as well whey trying to reuse it")
    Signed-off-by: Baochen Qiang <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath12k: Fix timeout error during beacon stats retrieval [+ + +]
Author: Manish Dharanenthiran <[email protected]>
Date:   Fri Oct 31 08:37:46 2025 +0530

    wifi: ath12k: Fix timeout error during beacon stats retrieval
    
    [ Upstream commit 2977567b244f056d86658160659f06cd6c78ba3d ]
    
    Currently, for beacon_stats, ath12k_mac_get_fw_stats() is called
    for each started BSS on the specified hardware.
    ath12k_mac_get_fw_stats() will wait for the fw_stats_done completion
    after fetching the requested data from firmware. For the beacon_stats,
    fw_stats_done completion will be set only when stats are received for
    all BSSes. However, for other stats like vdev_stats or pdev_stats, there
    is one request to the firmware for all enabled BSSes. Since beacon_stats
    is fetched individually for all BSSes enabled in that pdev, waiting for
    the completion event results in a timeout error when multiple BSSes are
    enabled.
    
    Avoid this by completing the fw_stats_done immediately after
    updating the requested BSS's beacon stats in the list. Subsequently,
    this list will be used to display the beacon stats for all enabled
    BSSes in the requested pdev.
    
    Additionally, remove 'num_bcn_recvd' from the ath12k_fw_stats struct
    as it is no longer needed.
    
    Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1
    
    Fixes: 9fe4669ae919 ("wifi: ath12k: Request beacon stats from firmware")
    Signed-off-by: Manish Dharanenthiran <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Reviewed-by: Baochen Qiang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath12k: fix TX and RX MCS rate configurations in HE mode [+ + +]
Author: Pradeep Kumar Chitrapu <[email protected]>
Date:   Thu Oct 9 14:16:56 2025 -0700

    wifi: ath12k: fix TX and RX MCS rate configurations in HE mode
    
    [ Upstream commit 9c5f229b1312a31aff762b2111f6751e4e3722fe ]
    
    Currently, the TX and RX MCS rate configurations per peer are
    reversed when sent to the firmware. As a result, RX MCS rates
    are configured for TX, and vice versa. This commit rectifies
    the configuration to match what the firmware expects.
    
    Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
    
    Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
    Signed-off-by: Pradeep Kumar Chitrapu <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Reviewed-by: Baochen Qiang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath12k: fix VHT MCS assignment [+ + +]
Author: Baochen Qiang <[email protected]>
Date:   Thu Oct 9 14:16:55 2025 -0700

    wifi: ath12k: fix VHT MCS assignment
    
    [ Upstream commit 8c21b32c2cc82224c7fc1a9f67318f3b1199744b ]
    
    While associating, firmware needs the peer's receive capability
    to calculate its own VHT transmit MCS. Currently, the host
    sends this information via mcs->rx_mcs_set field, but firmware
    actually reads it from mcs->tx_mcs_set field. This mismatch is
    incorrect.
    
    This issue has not caused failures so far because most peers
    advertise identical TX and RX capabilities. Fix this by
    assigning the value to tx_mcs_set as expected.
    
    Additionally, the rate control mask is intended to limit our
    transmit MCS, so it should also apply to the peer's receive
    capability. Update the logic accordingly.
    
    Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1
    
    Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
    Signed-off-by: Baochen Qiang <[email protected]>
    Signed-off-by: Pradeep Kumar Chitrapu <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Reviewed-by: Baochen Qiang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath12k: restore register window after global reset [+ + +]
Author: Baochen Qiang <[email protected]>
Date:   Fri Oct 17 10:36:36 2025 +0800

    wifi: ath12k: restore register window after global reset
    
    [ Upstream commit a41281f6518e485220d180a6031d302a736fc463 ]
    
    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_REG_ADDRESS register with appropriate window value.
    Currently each time when accessing a register that beyond 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
    ath12k_pci_soc_global_reset(), because with global reset hardware resets
    WINDOW_REG_ADDRESS 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: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00284.1-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
    
    Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
    Signed-off-by: Baochen Qiang <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Link: https://patch.msgid.link/20251017-ath12k-reset-window-cache-v1-1-29e0e751deed@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath12k: unassign arvif on scan vdev create failure [+ + +]
Author: Rameshkumar Sundaram <[email protected]>
Date:   Sun Oct 26 23:52:54 2025 +0530

    wifi: ath12k: unassign arvif on scan vdev create failure
    
    [ Upstream commit e70515039d44be61b6a73aafb401d141b0034d12 ]
    
    During scan and remain-on-channel requests, a scan link vif (arvif) is
    assigned and a temporary vdev is created. If vdev creation fails, the
    assigned arvif is left attached until the virtual interface is removed,
    leaving a stale link in ahvif.
    
    Fix this by freeing the stale arvif and resetting the corresponding link in
    ahvif by calling ath12k_mac_unassign_link_vif() when vdev creation fails.
    
    While at it, propagate the actual error code from ath12k_mac_vdev_create()
    instead of returning -EINVAL in ath12k_mac_initiate_hw_scan().
    
    Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1
    
    Fixes: 477cabfdb776 ("wifi: ath12k: modify link arvif creation and removal for MLO")
    Signed-off-by: Rameshkumar Sundaram <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: cw1200: Fix potential memory leak in cw1200_bh_rx_helper() [+ + +]
Author: Abdun Nihaal <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Johannes Berg <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ieee80211: correct FILS status codes [+ + +]
Author: Ria Thomas <[email protected]>
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 <[email protected]>
    Reviewed-by: Jeff Johnson <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Johannes Berg <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: iwlwifi: mld: add null check for kzalloc() in iwl_mld_send_proto_offload() [+ + +]
Author: Li Qiang <[email protected]>
Date:   Fri Oct 17 12:11:28 2025 +0800

    wifi: iwlwifi: mld: add null check for kzalloc() in iwl_mld_send_proto_offload()
    
    [ Upstream commit 3df28496673bd8009f1cd3a85a63650c96e369f4 ]
    
    Add a missing NULL pointer check after kzalloc() in
    iwl_mld_send_proto_offload(). Without this check, a failed
    allocation could lead to a NULL dereference.
    
    Fixes: d1e879ec600f9 ("wifi: iwlwifi: add iwlmld sub-driver")
    Signed-off-by: Li Qiang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Miri Korenblit <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mac80211: fix CMAC functions not handling errors [+ + +]
Author: Chien Wong <[email protected]>
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 <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Johannes Berg <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7921: add MBSSID support [+ + +]
Author: Ming Yen Hsieh <[email protected]>
Date:   Tue Aug 12 19:16:42 2025 +0800

    wifi: mt76: mt7921: add MBSSID support
    
    [ Upstream commit 7ae99dd459ba1ea83a9b3d8de254f374182e602c ]
    
    Enable MBSSID support for MT7921 by setting the
    appropriate capability to the firmware.
    
    Signed-off-by: Ming Yen Hsieh <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Stable-dep-of: cdb2941a516c ("Revert "wifi: mt76: mt792x: improve monitor interface handling"")
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7925: add MBSSID support [+ + +]
Author: Ming Yen Hsieh <[email protected]>
Date:   Tue Jul 29 16:49:32 2025 +0800

    wifi: mt76: mt7925: add MBSSID support
    
    [ Upstream commit 74e756b9e28af3ee94a7ea480bb39694be5fbd96 ]
    
    Enable MBSSID support for MT7925 by setting the
    appropriate capability to the firmware.
    
    Signed-off-by: Ming Yen Hsieh <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Stable-dep-of: cdb2941a516c ("Revert "wifi: mt76: mt792x: improve monitor interface handling"")
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7996: Add missing locking in mt7996_mac_sta_rc_work() [+ + +]
Author: Lorenzo Bianconi <[email protected]>
Date:   Tue Nov 18 10:30:26 2025 +0100

    wifi: mt76: mt7996: Add missing locking in mt7996_mac_sta_rc_work()
    
    [ Upstream commit 7545551631fa63101f97974f49ac0b564814f703 ]
    
    Grab the mt76 mutex running mt7996_mac_sta_rc_work() since it is
    required by mt7996_mcu_add_rate_ctrl routine.
    
    Fixes: 28d519d0d493a ("wifi: mt76: Move RCU section in mt7996_mcu_add_rate_ctrl_fixed()")
    Signed-off-by: Lorenzo Bianconi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7996: fix implicit beamforming support for mt7992 [+ + +]
Author: Howard Hsu <[email protected]>
Date:   Thu Nov 6 14:41:54 2025 +0800

    wifi: mt76: mt7996: fix implicit beamforming support for mt7992
    
    [ Upstream commit 5d86765828b47444908a8689f2625872e8dac48f ]
    
    Fix the ibf_timeout field for mt7996, mt7992 and mt7990 chipsets. For
    the mt7992, this value shall be set as 0xff, while the others shall be
    set as 0x18.
    
    Fixes: ad4c9a8a9803 ("wifi: mt76: mt7996: add implicit beamforming support for mt7992")
    Signed-off-by: Howard Hsu <[email protected]>
    Signed-off-by: Shayne Chen <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7996: fix max nss value when getting rx chainmask [+ + +]
Author: StanleyYP Wang <[email protected]>
Date:   Thu Nov 6 14:41:52 2025 +0800

    wifi: mt76: mt7996: fix max nss value when getting rx chainmask
    
    [ Upstream commit 361b59b6be7c33c43b619d5cada394efc0f3b398 ]
    
    Since wiphy->available_antennas_tx now accumulates the chainmask of all
    the radios of a wiphy, use phy->orig_antenna_mask to get the original
    max nss for comparison.
    
    Fixes: 69d54ce7491d ("wifi: mt76: mt7996: switch to single multi-radio wiphy")
    Signed-off-by: StanleyYP Wang <[email protected]>
    Signed-off-by: Shayne Chen <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7996: fix MLD group index assignment [+ + +]
Author: Shayne Chen <[email protected]>
Date:   Thu Nov 6 14:42:00 2025 +0800

    wifi: mt76: mt7996: fix MLD group index assignment
    
    [ Upstream commit 4fb3b4e7d1ca5453c6167816230370afc15f26bf ]
    
    Fix extender mode and MBSS issues caused by incorrect assignment of the
    MLD group and remap indices.
    
    Fixes: ed01c310eca9 ("wifi: mt76: mt7996: Fix mt7996_mcu_bss_mld_tlv routine")
    Signed-off-by: Shayne Chen <[email protected]>
    Acked-by: Lorenzo Bianconi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7996: fix null pointer deref in mt7996_conf_tx() [+ + +]
Author: Felix Fietkau <[email protected]>
Date:   Mon Sep 29 13:17:23 2025 +0200

    wifi: mt76: mt7996: fix null pointer deref in mt7996_conf_tx()
    
    [ Upstream commit 79277f8ad15ec5f255ed0e1427c7a8a3e94e7f52 ]
    
    If a link does not have an assigned channel yet, mt7996_vif_link returns
    NULL. We still need to store the updated queue settings in that case, and
    apply them later.
    Move the location of the queue params to within struct mt7996_vif_link.
    
    Fixes: c0df2f0caa8d ("wifi: mt76: mt7996: prepare mt7996_mcu_set_tx for MLO support")
    Acked-by: Lorenzo Bianconi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7996: fix several fields in mt7996_mcu_bss_basic_tlv() [+ + +]
Author: Shayne Chen <[email protected]>
Date:   Thu Nov 6 14:41:56 2025 +0800

    wifi: mt76: mt7996: fix several fields in mt7996_mcu_bss_basic_tlv()
    
    [ Upstream commit bb705a606734e1ce0ff17a4f368a896757ba686d ]
    
    Fix several fields in mt7996_mcu_bss_basic_tlv() that were not obtained
    from the correct link. Without this patch, the MLD station interface
    does not function properly.
    
    Fixes: 34a41bfbcb71 ("wifi: mt76: mt7996: prepare mt7996_mcu_add_dev/bss_info for MLO support")
    Signed-off-by: Shayne Chen <[email protected]>
    Acked-by: Lorenzo Bianconi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7996: fix teardown command for an MLD peer [+ + +]
Author: Shayne Chen <[email protected]>
Date:   Thu Nov 6 14:41:57 2025 +0800

    wifi: mt76: mt7996: fix teardown command for an MLD peer
    
    [ Upstream commit e077071e7ac48d5453072f615d51629891c5b90d ]
    
    For an MLD peer, we only need to call the teardown command when removing
    the last link, and there's no need to call mt7996_mcu_add_sta() for the
    earlier links.
    
    Fixes: c1d6dd5d03eb ("wifi: mt76: mt7996: Add mt7996_mcu_teardown_mld_sta rouine")
    Signed-off-by: Shayne Chen <[email protected]>
    Acked-by: Lorenzo Bianconi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7996: fix using wrong phy to start in mt7996_mac_restart() [+ + +]
Author: Shayne Chen <[email protected]>
Date:   Thu Nov 6 14:42:02 2025 +0800

    wifi: mt76: mt7996: fix using wrong phy to start in mt7996_mac_restart()
    
    [ Upstream commit f1e9f369ae42ee433836b24467e645192d046a51 ]
    
    Pass the correct mt7996_phy to mt7996_run().
    
    Fixes: 0a5df0ec47f7 ("wifi: mt76: mt7996: remove redundant per-phy mac80211 calls during restart")
    Signed-off-by: Shayne Chen <[email protected]>
    Acked-by: Lorenzo Bianconi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7996: grab mt76 mutex in mt7996_mac_sta_event() [+ + +]
Author: Lorenzo Bianconi <[email protected]>
Date:   Fri Nov 14 14:16:21 2025 +0100

    wifi: mt76: mt7996: grab mt76 mutex in mt7996_mac_sta_event()
    
    [ Upstream commit 5a4bcba26e9fbea87507a81ad891e70bb525014f ]
    
    Grab mt76 mutex in mt7996_mac_sta_event routine in order to rely on
    mt76_dereference() utility macro.
    
    Fixes: ecd72f9695e7e ("wifi: mt76: mt7996: Support MLO in mt7996_mac_sta_event()")
    Signed-off-by: Lorenzo Bianconi <[email protected]>
    Tested-by: Ben Greear <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7996: set link_valid field when initializing wcid [+ + +]
Author: Shayne Chen <[email protected]>
Date:   Thu Nov 6 14:41:58 2025 +0800

    wifi: mt76: mt7996: set link_valid field when initializing wcid
    
    [ Upstream commit 7eaea3a8ba1e9bb58f87e3030f6ce18537e57e1f ]
    
    This ensures the upper layer uses the correct link ID during packet
    processing.
    
    Fixes: dd82a9e02c05 ("wifi: mt76: mt7996: Rely on mt7996_sta_link in sta_add/sta_remove callbacks")
    Signed-off-by: Shayne Chen <[email protected]>
    Acked-by: Lorenzo Bianconi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: mt7996: skip deflink accounting for offchannel links [+ + +]
Author: Lorenzo Bianconi <[email protected]>
Date:   Fri Nov 14 14:16:24 2025 +0100

    wifi: mt76: mt7996: skip deflink accounting for offchannel links
    
    [ Upstream commit 4fe823b9ee0317b04ddc6d9e00fea892498aa0f2 ]
    
    Do not take into account offchannel links for deflink accounting.
    
    Fixes: a3316d2fc669f ("wifi: mt76: mt7996: set vif default link_id adding/removing vif links")
    Signed-off-by: Lorenzo Bianconi <[email protected]>
    Tested-by: Ben Greear <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mt76: wed: use proper wed reference in mt76 wed driver callabacks [+ + +]
Author: Lorenzo Bianconi <[email protected]>
Date:   Wed Oct 8 12:41:48 2025 +0200

    wifi: mt76: wed: use proper wed reference in mt76 wed driver callabacks
    
    [ Upstream commit 385aab8fccd7a8746b9f1a17f3c1e38498a14bc7 ]
    
    MT7996 driver can use both wed and wed_hif2 devices to offload traffic
    from/to the wireless NIC. In the current codebase we assume to always
    use the primary wed device in wed callbacks resulting in the following
    crash if the hw runs wed_hif2 (e.g. 6GHz link).
    
    [  297.455876] Unable to handle kernel read from unreadable memory at virtual address 000000000000080a
    [  297.464928] Mem abort info:
    [  297.467722]   ESR = 0x0000000096000005
    [  297.471461]   EC = 0x25: DABT (current EL), IL = 32 bits
    [  297.476766]   SET = 0, FnV = 0
    [  297.479809]   EA = 0, S1PTW = 0
    [  297.482940]   FSC = 0x05: level 1 translation fault
    [  297.487809] Data abort info:
    [  297.490679]   ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
    [  297.496156]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
    [  297.501196]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
    [  297.506500] user pgtable: 4k pages, 39-bit VAs, pgdp=0000000107480000
    [  297.512927] [000000000000080a] pgd=08000001097fb003, p4d=08000001097fb003, pud=08000001097fb003, pmd=0000000000000000
    [  297.523532] Internal error: Oops: 0000000096000005 [#1] SMP
    [  297.715393] CPU: 2 UID: 0 PID: 45 Comm: kworker/u16:2 Tainted: G           O       6.12.50 #0
    [  297.723908] Tainted: [O]=OOT_MODULE
    [  297.727384] Hardware name: Banana Pi BPI-R4 (2x SFP+) (DT)
    [  297.732857] Workqueue: nf_ft_offload_del nf_flow_rule_route_ipv6 [nf_flow_table]
    [  297.740254] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [  297.747205] pc : mt76_wed_offload_disable+0x64/0xa0 [mt76]
    [  297.752688] lr : mtk_wed_flow_remove+0x58/0x80
    [  297.757126] sp : ffffffc080fe3ae0
    [  297.760430] x29: ffffffc080fe3ae0 x28: ffffffc080fe3be0 x27: 00000000deadbef7
    [  297.767557] x26: ffffff80c5ebca00 x25: 0000000000000001 x24: ffffff80c85f4c00
    [  297.774683] x23: ffffff80c1875b78 x22: ffffffc080d42cd0 x21: ffffffc080660018
    [  297.781809] x20: ffffff80c6a076d0 x19: ffffff80c6a043c8 x18: 0000000000000000
    [  297.788935] x17: 0000000000000000 x16: 0000000000000001 x15: 0000000000000000
    [  297.796060] x14: 0000000000000019 x13: ffffff80c0ad8ec0 x12: 00000000fa83b2da
    [  297.803185] x11: ffffff80c02700c0 x10: ffffff80c0ad8ec0 x9 : ffffff81fef96200
    [  297.810311] x8 : ffffff80c02700c0 x7 : ffffff80c02700d0 x6 : 0000000000000002
    [  297.817435] x5 : 0000000000000400 x4 : 0000000000000000 x3 : 0000000000000000
    [  297.824561] x2 : 0000000000000001 x1 : 0000000000000800 x0 : ffffff80c6a063c8
    [  297.831686] Call trace:
    [  297.834123]  mt76_wed_offload_disable+0x64/0xa0 [mt76]
    [  297.839254]  mtk_wed_flow_remove+0x58/0x80
    [  297.843342]  mtk_flow_offload_cmd+0x434/0x574
    [  297.847689]  mtk_wed_setup_tc_block_cb+0x30/0x40
    [  297.852295]  nf_flow_offload_ipv6_hook+0x7f4/0x964 [nf_flow_table]
    [  297.858466]  nf_flow_rule_route_ipv6+0x438/0x4a4 [nf_flow_table]
    [  297.864463]  process_one_work+0x174/0x300
    [  297.868465]  worker_thread+0x278/0x430
    [  297.872204]  kthread+0xd8/0xdc
    [  297.875251]  ret_from_fork+0x10/0x20
    [  297.878820] Code: 928b5ae0 8b000273 91400a60 f943fa61 (79401421)
    [  297.884901] ---[ end trace 0000000000000000 ]---
    
    Fix the issue detecting the proper wed reference to use running wed
    callabacks.
    
    Fixes: 83eafc9251d6 ("wifi: mt76: mt7996: add wed tx support")
    Tested-by: Daniel Pawlik <[email protected]>
    Tested-by: Matteo Croce <[email protected]>
    Signed-off-by: Lorenzo Bianconi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Felix Fietkau <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: rtl818x: Fix potential memory leaks in rtl8180_init_rx_ring() [+ + +]
Author: Abdun Nihaal <[email protected]>
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 <[email protected]>
    Reviewed-by: Ping-Ke Shih <[email protected]>
    Signed-off-by: Ping-Ke Shih <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

wifi: rtl818x: rtl8187: Fix potential buffer underflow in rtl8187_rx_cb() [+ + +]
Author: Seungjin Bae <[email protected]>
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 <[email protected]>
    Signed-off-by: Ping-Ke Shih <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

wifi: rtw89: usb: fix leak in rtw89_usb_write_port() [+ + +]
Author: Fedor Pchelkin <[email protected]>
Date:   Tue Nov 4 16:57:09 2025 +0300

    wifi: rtw89: usb: fix leak in rtw89_usb_write_port()
    
    [ Upstream commit 7543818e97d5d54b3b2f75f1c4dedee298d7d914 ]
    
    When there is an attempt to write data and RTW89_FLAG_UNPLUGGED is set,
    this means device is disconnected and no urb is submitted.  Return
    appropriate error code to the caller to properly free the allocated
    resources.
    
    Found by Linux Verification Center (linuxtesting.org).
    
    Fixes: 2135c28be6a8 ("wifi: rtw89: Add usb.{c,h}")
    Acked-by: Ping-Ke Shih <[email protected]>
    Signed-off-by: Fedor Pchelkin <[email protected]>
    Signed-off-by: Ping-Ke Shih <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

wifi: rtw89: usb: use common error path for skbs in rtw89_usb_rx_handler() [+ + +]
Author: Fedor Pchelkin <[email protected]>
Date:   Tue Nov 4 16:57:08 2025 +0300

    wifi: rtw89: usb: use common error path for skbs in rtw89_usb_rx_handler()
    
    [ Upstream commit 28a45575289f3292aa9cb7bacae18ba3ee7a6adf ]
    
    Allow adding rx_skb to rx_free_queue for later reuse on the common error
    handling path, otherwise free it.
    
    Found by Linux Verification Center (linuxtesting.org).
    
    Fixes: 2135c28be6a8 ("wifi: rtw89: Add usb.{c,h}")
    Acked-by: Ping-Ke Shih <[email protected]>
    Signed-off-by: Fedor Pchelkin <[email protected]>
    Signed-off-by: Ping-Ke Shih <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
x86/boot: Fix page table access in 5-level to 4-level paging transition [+ + +]
Author: Usama Arif <[email protected]>
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 <[email protected]>
    Reported-by: Tobias Fleig <[email protected]>
    Co-developed-by: Kiryl Shutsemau <[email protected]>
    Signed-off-by: Kiryl Shutsemau <[email protected]>
    Signed-off-by: Usama Arif <[email protected]>
    Signed-off-by: Borislav Petkov (AMD) <[email protected]>
    Reviewed-by: Ard Biesheuvel <[email protected]>
    Acked-by: Dave Hansen <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
x86/dumpstack: Prevent KASAN false positive warnings in __show_regs() [+ + +]
Author: Tengda Wu <[email protected]>
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 <[email protected]>
    Signed-off-by: Borislav Petkov (AMD) <[email protected]>
    Reviewed-by: Andrey Ryabinin <[email protected]>
    Acked-by: Josh Poimboeuf <[email protected]>
    Link: https://patch.msgid.link/all/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>