Changelog in Linux kernel 6.18.8

 
ALSA: ctxfi: Fix potential OOB access in audio mixer handling [+ + +]
Author: Takashi Iwai <[email protected]>
Date:   Mon Jan 19 14:32:07 2026 +0100

    ALSA: ctxfi: Fix potential OOB access in audio mixer handling
    
    commit 61006c540cbdedea83b05577dc7fb7fa18fe1276 upstream.
    
    In the audio mixer handling code of ctxfi driver, the conf field is
    used as a kind of loop index, and it's referred in the index callbacks
    (amixer_index() and sum_index()).
    
    As spotted recently by fuzzers, the current code causes OOB access at
    those functions.
    | UBSAN: array-index-out-of-bounds in /build/reproducible-path/linux-6.17.8/sound/pci/ctxfi/ctamixer.c:347:48
    | index 8 is out of range for type 'unsigned char [8]'
    
    After the analysis, the cause was found to be the lack of the proper
    (re-)initialization of conj field.
    
    This patch addresses those OOB accesses by adding the proper
    initializations of the loop indices.
    
    Reported-by: Salvatore Bonaccorso <[email protected]>
    Tested-by: Karsten Hohmeier <[email protected]>
    Closes: https://bugs.debian.org/1121535
    Cc: <[email protected]>
    Link: https://lore.kernel.org/all/[email protected]/
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Takashi Iwai <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

ALSA: hda/realtek: Add quirk for Samsung 730QED to fix headphone [+ + +]
Author: Zhang Heng <[email protected]>
Date:   Thu Jan 22 16:52:40 2026 +0800

    ALSA: hda/realtek: Add quirk for Samsung 730QED to fix headphone
    
    commit c45385ed624eecc5305ff165e1ac5dfa7548bcd5 upstream.
    
    After applying this quirk for the ALC256 audio codec, the headphone
    audio path functions normally; otherwise, headphones produce no sound.
    
    Link: https://bugzilla.kernel.org/show_bug.cgi?id=220574
    Cc: <[email protected]>
    Signed-off-by: Zhang Heng <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Takashi Iwai <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

ALSA: scarlett2: Fix buffer overflow in config retrieval [+ + +]
Author: Samasth Norway Ananda <[email protected]>
Date:   Fri Jan 16 17:27:06 2026 -0800

    ALSA: scarlett2: Fix buffer overflow in config retrieval
    
    commit 6f5c69f72e50d51be3a8c028ae7eda42c82902cb upstream.
    
    The scarlett2_usb_get_config() function has a logic error in the
    endianness conversion code that can cause buffer overflows when
    count > 1.
    
    The code checks `if (size == 2)` where `size` is the total buffer size in
    bytes, then loops `count` times treating each element as u16 (2 bytes).
    This causes the loop to access `count * 2` bytes when the buffer only
    has `size` bytes allocated.
    
    Fix by checking the element size (config_item->size) instead of the
    total buffer size. This ensures the endianness conversion matches the
    actual element type.
    
    Fixes: ac34df733d2d ("ALSA: usb-audio: scarlett2: Update get_config to do endian conversion")
    Cc: [email protected]
    Signed-off-by: Samasth Norway Ananda <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Takashi Iwai <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

ALSA: usb-audio: Fix use-after-free in snd_usb_mixer_free() [+ + +]
Author: Berk Cem Goksel <[email protected]>
Date:   Tue Jan 20 13:28:55 2026 +0300

    ALSA: usb-audio: Fix use-after-free in snd_usb_mixer_free()
    
    commit 930e69757b74c3ae083b0c3c7419bfe7f0edc7b2 upstream.
    
    When snd_usb_create_mixer() fails, snd_usb_mixer_free() frees
    mixer->id_elems but the controls already added to the card still
    reference the freed memory. Later when snd_card_register() runs,
    the OSS mixer layer calls their callbacks and hits a use-after-free read.
    
    Call trace:
      get_ctl_value+0x63f/0x820 sound/usb/mixer.c:411
      get_min_max_with_quirks.isra.0+0x240/0x1f40 sound/usb/mixer.c:1241
      mixer_ctl_feature_info+0x26b/0x490 sound/usb/mixer.c:1381
      snd_mixer_oss_build_test+0x174/0x3a0 sound/core/oss/mixer_oss.c:887
      ...
      snd_card_register+0x4ed/0x6d0 sound/core/init.c:923
      usb_audio_probe+0x5ef/0x2a90 sound/usb/card.c:1025
    
    Fix by calling snd_ctl_remove() for all mixer controls before freeing
    id_elems. We save the next pointer first because snd_ctl_remove()
    frees the current element.
    
    Fixes: 6639b6c2367f ("[ALSA] usb-audio - add mixer control notifications")
    Cc: [email protected]
    Cc: Andrey Konovalov <[email protected]>
    Signed-off-by: Berk Cem Goksel <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Takashi Iwai <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

ALSA: usb: Increase volume range that triggers a warning [+ + +]
Author: Arun Raghavan <[email protected]>
Date:   Fri Jan 16 14:58:04 2026 -0800

    ALSA: usb: Increase volume range that triggers a warning
    
    [ Upstream commit 6b971191fcfc9e3c2c0143eea22534f1f48dbb62 ]
    
    On at least the HyperX Cloud III, the range is 18944 (-18944 -> 0 in
    steps of 1), so the original check for 255 steps is definitely obsolete.
    Let's give ourselves a little more headroom before we emit a warning.
    
    Fixes: 80acefff3bc7 ("ALSA: usb-audio - Add volume range check and warn if it too big")
    Cc: Jaroslav Kysela <[email protected]>
    Cc: Takashi Iwai <[email protected]>
    Cc: [email protected]
    Signed-off-by: Arun Raghavan <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Takashi Iwai <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
amd-xgbe: avoid misleading per-packet error log [+ + +]
Author: Raju Rangoju <[email protected]>
Date:   Wed Jan 14 22:00:37 2026 +0530

    amd-xgbe: avoid misleading per-packet error log
    
    [ Upstream commit c158f985cf6c2c36c99c4f67af2ff3f5ebe09f8f ]
    
    On the receive path, packet can be damaged because of buffer
    overflow in Rx FIFO. Avoid misleading per-packet error log when
    packet->errors is set, this can flood the log. Instead, rely on the
    standard rtnl_link_stats64 stats.
    
    Fixes: c5aa9e3b8156 ("amd-xgbe: Initial AMD 10GbE platform driver")
    Signed-off-by: Raju Rangoju <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
arm64/fpsimd: ptrace: Fix SVE writes on !SME systems [+ + +]
Author: Mark Rutland <[email protected]>
Date:   Tue Jan 20 14:51:05 2026 +0000

    arm64/fpsimd: ptrace: Fix SVE writes on !SME systems
    
    commit 128a7494a9f15aad60cc6b7e3546bf481ac54a13 upstream.
    
    When SVE is supported but SME is not supported, a ptrace write to the
    NT_ARM_SVE regset can place the tracee into an invalid state where
    (non-streaming) SVE register data is stored in FP_STATE_SVE format but
    TIF_SVE is clear. This can result in a later warning from
    fpsimd_restore_current_state(), e.g.
    
      WARNING: CPU: 0 PID: 7214 at arch/arm64/kernel/fpsimd.c:383 fpsimd_restore_current_state+0x50c/0x748
    
    When this happens, fpsimd_restore_current_state() will set TIF_SVE,
    placing the task into the correct state. This occurs before any other
    check of TIF_SVE can possibly occur, as other checks of TIF_SVE only
    happen while the FPSIMD/SVE/SME state is live. Thus, aside from the
    warning, there is no functional issue.
    
    This bug was introduced during rework to error handling in commit:
    
      9f8bf718f2923 ("arm64/fpsimd: ptrace: Gracefully handle errors")
    
    ... where the setting of TIF_SVE was moved into a block which is only
    executed when system_supports_sme() is true.
    
    Fix this by removing the system_supports_sme() check. This ensures that
    TIF_SVE is set for (SVE-formatted) writes to NT_ARM_SVE, at the cost of
    unconditionally manipulating the tracee's saved svcr value. The
    manipulation of svcr is benign and inexpensive, and we already do
    similar elsewhere (e.g. during signal handling), so I don't think it's
    worth guarding this with system_supports_sme() checks.
    
    Aside from the above, there is no functional change. The 'type' argument
    to sve_set_common() is only set to ARM64_VEC_SME (in ssve_set())) when
    system_supports_sme(), so the ARM64_VEC_SME case in the switch statement
    is still unreachable when !system_supports_sme(). When
    CONFIG_ARM64_SME=n, the only caller of sve_set_common() is sve_set(),
    and the compiler can constant-fold for the case where type is
    ARM64_VEC_SVE, removing the logic for other cases.
    
    Reported-by: [email protected]
    Fixes: 9f8bf718f292 ("arm64/fpsimd: ptrace: Gracefully handle errors")
    Signed-off-by: Mark Rutland <[email protected]>
    Cc: <[email protected]>
    Cc: Mark Brown <[email protected]>
    Cc: Will Deacon <[email protected]>
    Reviewed-by: Mark Brown <[email protected]>
    Signed-off-by: Catalin Marinas <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

arm64/fpsimd: signal: Allocate SSVE storage when restoring ZA [+ + +]
Author: Mark Rutland <[email protected]>
Date:   Tue Jan 20 14:51:06 2026 +0000

    arm64/fpsimd: signal: Allocate SSVE storage when restoring ZA
    
    commit ea8ccfddbce0bee6310da4f3fc560ad520f5e6b4 upstream.
    
    The code to restore a ZA context doesn't attempt to allocate the task's
    sve_state before setting TIF_SME. Consequently, restoring a ZA context
    can place a task into an invalid state where TIF_SME is set but the
    task's sve_state is NULL.
    
    In legitimate but uncommon cases where the ZA signal context was NOT
    created by the kernel in the context of the same task (e.g. if the task
    is saved/restored with something like CRIU), we have no guarantee that
    sve_state had been allocated previously. In these cases, userspace can
    enter streaming mode without trapping while sve_state is NULL, causing a
    later NULL pointer dereference when the kernel attempts to store the
    register state:
    
    | # ./sigreturn-za
    | Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
    | Mem abort info:
    |   ESR = 0x0000000096000046
    |   EC = 0x25: DABT (current EL), IL = 32 bits
    |   SET = 0, FnV = 0
    |   EA = 0, S1PTW = 0
    |   FSC = 0x06: level 2 translation fault
    | Data abort info:
    |   ISV = 0, ISS = 0x00000046, ISS2 = 0x00000000
    |   CM = 0, WnR = 1, TnD = 0, TagAccess = 0
    |   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
    | user pgtable: 4k pages, 52-bit VAs, pgdp=0000000101f47c00
    | [0000000000000000] pgd=08000001021d8403, p4d=0800000102274403, pud=0800000102275403, pmd=0000000000000000
    | Internal error: Oops: 0000000096000046 [#1]  SMP
    | Modules linked in:
    | CPU: 0 UID: 0 PID: 153 Comm: sigreturn-za Not tainted 6.19.0-rc1 #1 PREEMPT
    | Hardware name: linux,dummy-virt (DT)
    | pstate: 214000c9 (nzCv daIF +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
    | pc : sve_save_state+0x4/0xf0
    | lr : fpsimd_save_user_state+0xb0/0x1c0
    | sp : ffff80008070bcc0
    | x29: ffff80008070bcc0 x28: fff00000c1ca4c40 x27: 63cfa172fb5cf658
    | x26: fff00000c1ca5228 x25: 0000000000000000 x24: 0000000000000000
    | x23: 0000000000000000 x22: fff00000c1ca4c40 x21: fff00000c1ca4c40
    | x20: 0000000000000020 x19: fff00000ff6900f0 x18: 0000000000000000
    | x17: fff05e8e0311f000 x16: 0000000000000000 x15: 028fca8f3bdaf21c
    | x14: 0000000000000212 x13: fff00000c0209f10 x12: 0000000000000020
    | x11: 0000000000200b20 x10: 0000000000000000 x9 : fff00000ff69dcc0
    | x8 : 00000000000003f2 x7 : 0000000000000001 x6 : fff00000c1ca5b48
    | x5 : fff05e8e0311f000 x4 : 0000000008000000 x3 : 0000000000000000
    | x2 : 0000000000000001 x1 : fff00000c1ca5970 x0 : 0000000000000440
    | Call trace:
    |  sve_save_state+0x4/0xf0 (P)
    |  fpsimd_thread_switch+0x48/0x198
    |  __switch_to+0x20/0x1c0
    |  __schedule+0x36c/0xce0
    |  schedule+0x34/0x11c
    |  exit_to_user_mode_loop+0x124/0x188
    |  el0_interrupt+0xc8/0xd8
    |  __el0_irq_handler_common+0x18/0x24
    |  el0t_64_irq_handler+0x10/0x1c
    |  el0t_64_irq+0x198/0x19c
    | Code: 54000040 d51b4408 d65f03c0 d503245f (e5bb5800)
    | ---[ end trace 0000000000000000 ]---
    
    Fix this by having restore_za_context() ensure that the task's sve_state
    is allocated, matching what we do when taking an SME trap. Any live
    SVE/SSVE state (which is restored earlier from a separate signal
    context) must be preserved, and hence this is not zeroed.
    
    Fixes: 39782210eb7e ("arm64/sme: Implement ZA signal handling")
    Signed-off-by: Mark Rutland <[email protected]>
    Cc: <[email protected]>
    Cc: Mark Brown <[email protected]>
    Cc: Will Deacon <[email protected]>
    Reviewed-by: Mark Brown <[email protected]>
    Signed-off-by: Catalin Marinas <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

arm64/fpsimd: signal: Fix restoration of SVE context [+ + +]
Author: Mark Rutland <[email protected]>
Date:   Tue Jan 20 14:51:07 2026 +0000

    arm64/fpsimd: signal: Fix restoration of SVE context
    
    commit d2907cbe9ea0a54cbe078076f9d089240ee1e2d9 upstream.
    
    When SME is supported, Restoring SVE signal context can go wrong in a
    few ways, including placing the task into an invalid state where the
    kernel may read from out-of-bounds memory (and may potentially take a
    fatal fault) and/or may kill the task with a SIGKILL.
    
    (1) Restoring a context with SVE_SIG_FLAG_SM set can place the task into
        an invalid state where SVCR.SM is set (and sve_state is non-NULL)
        but TIF_SME is clear, consequently resuting in out-of-bounds memory
        reads and/or killing the task with SIGKILL.
    
        This can only occur in unusual (but legitimate) cases where the SVE
        signal context has either been modified by userspace or was saved in
        the context of another task (e.g. as with CRIU), as otherwise the
        presence of an SVE signal context with SVE_SIG_FLAG_SM implies that
        TIF_SME is already set.
    
        While in this state, task_fpsimd_load() will NOT configure SMCR_ELx
        (leaving some arbitrary value configured in hardware) before
        restoring SVCR and attempting to restore the streaming mode SVE
        registers from memory via sve_load_state(). As the value of
        SMCR_ELx.LEN may be larger than the task's streaming SVE vector
        length, this may read memory outside of the task's allocated
        sve_state, reading unrelated data and/or triggering a fault.
    
        While this can result in secrets being loaded into streaming SVE
        registers, these values are never exposed. As TIF_SME is clear,
        fpsimd_bind_task_to_cpu() will configure CPACR_ELx.SMEN to trap EL0
        accesses to streaming mode SVE registers, so these cannot be
        accessed directly at EL0. As fpsimd_save_user_state() verifies the
        live vector length before saving (S)SVE state to memory, no secret
        values can be saved back to memory (and hence cannot be observed via
        ptrace, signals, etc).
    
        When the live vector length doesn't match the expected vector length
        for the task, fpsimd_save_user_state() will send a fatal SIGKILL
        signal to the task. Hence the task may be killed after executing
        userspace for some period of time.
    
    (2) Restoring a context with SVE_SIG_FLAG_SM clear does not clear the
        task's SVCR.SM. If SVCR.SM was set prior to restoring the context,
        then the task will be left in streaming mode unexpectedly, and some
        register state will be combined inconsistently, though the task will
        be left in legitimate state from the kernel's PoV.
    
        This can only occur in unusual (but legitimate) cases where ptrace
        has been used to set SVCR.SM after entry to the sigreturn syscall,
        as syscall entry clears SVCR.SM.
    
        In these cases, the the provided SVE register data will be loaded
        into the task's sve_state using the non-streaming SVE vector length
        and the FPSIMD registers will be merged into this using the
        streaming SVE vector length.
    
    Fix (1) by setting TIF_SME when setting SVCR.SM. This also requires
    ensuring that the task's sme_state has been allocated, but as this could
    contain live ZA state, it should not be zeroed. Fix (2) by clearing
    SVCR.SM when restoring a SVE signal context with SVE_SIG_FLAG_SM clear.
    
    For consistency, I've pulled the manipulation of SVCR, TIF_SVE, TIF_SME,
    and fp_type earlier, immediately after the allocation of
    sve_state/sme_state, before the restore of the actual register state.
    This makes it easier to ensure that these are always modified
    consistently, even if a fault is taken while reading the register data
    from the signal context. I do not expect any software to depend on the
    exact state restored when a fault is taken while reading the context.
    
    Fixes: 85ed24dad290 ("arm64/sme: Implement streaming SVE signal handling")
    Signed-off-by: Mark Rutland <[email protected]>
    Cc: <[email protected]>
    Cc: Mark Brown <[email protected]>
    Cc: Will Deacon <[email protected]>
    Reviewed-by: Mark Brown <[email protected]>
    Signed-off-by: Catalin Marinas <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
arm64: dts: qcom: sc8280xp: Add missing VDD_MXC links [+ + +]
Author: Konrad Dybcio <[email protected]>
Date:   Tue Dec 2 18:36:22 2025 +0100

    arm64: dts: qcom: sc8280xp: Add missing VDD_MXC links
    
    [ Upstream commit 868b979c5328b867c95a6d5a93ba13ad0d3cd2f1 ]
    
    To make sure that power rail is voted for, wire it up to its consumers.
    
    Fixes: 152d1faf1e2f ("arm64: dts: qcom: add SC8280XP platform")
    Signed-off-by: Konrad Dybcio <[email protected]>
    Reviewed-by: Ulf Hansson <[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: sm8550: Fix compile warnings in USB controller node [+ + +]
Author: Krishna Kurapati <[email protected]>
Date:   Wed Dec 3 20:18:55 2025 +0530

    arm64: dts: qcom: sm8550: Fix compile warnings in USB controller node
    
    [ Upstream commit 9dbc9bed01837717b8ab755cf5067a6f8d35b00f ]
    
    With W=1, the following error comes up:
    
    Warning (avoid_unnecessary_addr_size): /soc@0/usb@a600000: unnecessary #address-cells/#size-cells without "ranges", "dma-ranges" or child "reg" or "ranges" property
    
    This is because the child node being removed during flattening and moving
    to latest bindings.
    
    Fixes: 33450878adfc ("arm64: dts: qcom: sm8550: Flatten the USB nodes")
    Signed-off-by: Krishna Kurapati <[email protected]>
    Reviewed-by: Krzysztof Kozlowski <[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: sm8650: Fix compile warnings in USB controller node [+ + +]
Author: Krishna Kurapati <[email protected]>
Date:   Wed Dec 3 20:18:56 2025 +0530

    arm64: dts: qcom: sm8650: Fix compile warnings in USB controller node
    
    [ Upstream commit 1f6ca557088eb96c8c554f853eb7c60862f8a0a8 ]
    
    With W=1, the following error comes up:
    
    Warning (avoid_unnecessary_addr_size): /soc@0/usb@a600000: unnecessary #address-cells/#size-cells without "ranges", "dma-ranges" or child "reg" or "ranges" property
    
    This is because the child node being removed during flattening and moving
    to latest bindings.
    
    Fixes: 77e1f16b9302 ("arm64: dts: qcom: sm8650: Flatten the USB nodes")
    Signed-off-by: Krishna Kurapati <[email protected]>
    Reviewed-by: Krzysztof Kozlowski <[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: talos: Correct UFS clocks ordering [+ + +]
Author: Pradeep P V K <[email protected]>
Date:   Mon Jan 26 10:43:34 2026 -0500

    arm64: dts: qcom: talos: Correct UFS clocks ordering
    
    [ Upstream commit 8bb3754909cde5df4f8c1012bde220b97d8ee3bc ]
    
    The current UFS clocks does not align with their respective names,
    causing the ref_clk to be set to an incorrect frequency as below,
    which results in command timeouts.
    
    ufshcd-qcom 1d84000.ufshc: invalid ref_clk setting = 300000000
    
    This commit fixes the issue by properly reordering the UFS clocks to
    match their names.
    
    Fixes: ea172f61f4fd ("arm64: dts: qcom: qcs615: Fix up UFS clocks")
    Cc: [email protected]
    Signed-off-by: Pradeep P V K <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

arm64: dts: rockchip: Configure MCLK for analog sound on NanoPi M5 [+ + +]
Author: Alexey Charkov <[email protected]>
Date:   Mon Dec 29 14:11:59 2025 +0400

    arm64: dts: rockchip: Configure MCLK for analog sound on NanoPi M5
    
    commit 3e4a81881c0929b21a0577bc6e69514c09da5c3f upstream.
    
    NanoPi M5 derives its analog sound signal from SAI2 in M0 pin mode, so the
    MCLK pin should be configured accordingly for the sound codec to get its
    I2S signal from the SoC. Request the required pin config.
    
    The clock itself should also be CLK_SAI2_MCLKOUT_TO_IO for the sound to
    work (otherwise there is only silence out of the audio out jack).
    
    Fixes: 96cbdfdd3ac2 ("arm64: dts: rockchip: Add FriendlyElec NanoPi M5 support")
    Cc: [email protected]
    Signed-off-by: Alexey Charkov <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Heiko Stuebner <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

arm64: dts: rockchip: Fix headphones widget name on NanoPi M5 [+ + +]
Author: Alexey Charkov <[email protected]>
Date:   Mon Dec 29 14:11:58 2025 +0400

    arm64: dts: rockchip: Fix headphones widget name on NanoPi M5
    
    commit 5ab3dd9d0a63af66377f58633fec9dad650e6827 upstream.
    
    Fix the mismatch between the simple-audio-card routing table vs. widget
    names, which caused the following error at boot preventing the sound
    card from getting added:
    
    [    6.625634] asoc-simple-card sound: ASoC: DAPM unknown pin Headphones
    [    6.627247] asoc-simple-card sound: ASoC: Failed to add route HPOL -> Headphones(*)
    [    6.627988] asoc-simple-card sound: ASoC: Failed to add route HPOR -> Headphones(*)
    
    Fixes: 96cbdfdd3ac2 ("arm64: dts: rockchip: Add FriendlyElec NanoPi M5 support")
    Cc: [email protected]
    Signed-off-by: Alexey Charkov <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Heiko Stuebner <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

arm64: dts: rockchip: fix unit-address for RK3588 NPU's core1 and core2's IOMMU [+ + +]
Author: Quentin Schulz <[email protected]>
Date:   Mon Dec 15 17:45:56 2025 +0100

    arm64: dts: rockchip: fix unit-address for RK3588 NPU's core1 and core2's IOMMU
    
    commit cd8967ea3105d30adb878a9fea0e34a9378df610 upstream.
    
    The Device Tree specification specifies[1] that
    
    """
    Each node in the devicetree is named according to the following
    convention:
            node-name@unit-address
    [...]
    The unit-address must match the first address specified in the reg
    property of the node.
    """
    
    The first address in the reg property is fdaXa000 and not fdaX9000. This
    is likely a copy-paste error as the IOMMU for core0 has two entries in
    the reg property, the first one being fdab9000 and the second fdaba000.
    
    Let's fix this oversight to match what the spec is expecting.
    
    [1] https://github.com/devicetree-org/devicetree-specification/releases/download/v0.4/devicetree-specification-v0.4.pdf 2.2.1 Node Names
    
    Fixes: a31dfc060a74 ("arm64: dts: rockchip: Add nodes for NPU and its MMU to rk3588-base")
    Cc: [email protected]
    Signed-off-by: Quentin Schulz <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Heiko Stuebner <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

arm64: dts: rockchip: Fix voltage threshold for volume keys for Pinephone Pro [+ + +]
Author: Ondrej Jirman <[email protected]>
Date:   Mon Nov 24 19:47:03 2025 -0800

    arm64: dts: rockchip: Fix voltage threshold for volume keys for Pinephone Pro
    
    commit 5497ffe305b2ea31ae62d4a311d7cabfb671f54a upstream.
    
    Previously sometimes pressing the volume-down button would register as
    a volume-up button. Match the thresholds as shown in the Pinephone Pro
    schematic.
    
    Tests:
    
    ~ $ evtest
        // Mashed the volume down ~100 times with varying intensity
        Event: time xxx, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
        Event: time xxx, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
        // Mashed the volume up ~100 times with varying intensity
        Event: time xxx, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
        Event: time xxx, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0
    
    Fixes: d3150ed53580 ("arm64: dts: rockchip: Add support for volume keys to rk3399-pinephone-pro")
    Cc: [email protected]
    Signed-off-by: Ondrej Jirman <[email protected]>
    Signed-off-by: Rudraksha Gupta <[email protected]>
    Reviewed-by: Pavel Machek <[email protected]>
    Link: https://patch.msgid.link/20251124-ppp_light_accel_mag_vol-down-v5-4-f9a10a0a50eb@gmail.com
    Signed-off-by: Heiko Stuebner <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

arm64: dts: rockchip: Fix wrong register range of rk3576 gpu [+ + +]
Author: Chaoyi Chen <[email protected]>
Date:   Tue Jan 6 15:15:13 2026 +0800

    arm64: dts: rockchip: Fix wrong register range of rk3576 gpu
    
    [ Upstream commit 955b263c421c6fe5075369c52199f278289ec8c4 ]
    
    According to RK3576 TRM part1 Table 1-1 Address Mapping, the size of
    the GPU registers is 128 KB.
    
    The current mapping incorrectly includes the addresses of multiple
    following IP like the eInk interface at 0x27900000. This has not
    been detected by the DT tooling as none of the extra mapped IP is
    described in the upstream RK3576 DT so far.
    
    Fixes: 57b1ce903966 ("arm64: dts: rockchip: Add rk3576 SoC base DT")
    Signed-off-by: Chaoyi Chen <[email protected]>
    Reviewed-by: Nicolas Frattaroli <[email protected]>
    Reviewed-by: Sebastian Reichel <[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: remove dangerous max-link-speed from helios64 [+ + +]
Author: Geraldo Nascimento <[email protected]>
Date:   Mon Nov 17 18:47:43 2025 -0300

    arm64: dts: rockchip: remove dangerous max-link-speed from helios64
    
    commit 0368e4afcf20f377c81fa77b1c7d0dee4a625a44 upstream.
    
    Shawn Lin from Rockchip strongly discourages attempts to use their
    RK3399 PCIe core at 5.0 GT/s speed, citing concerns about catastrophic
    failures that may happen. Even if the odds are low, drop from last user
    of this non-default property for the RK3399 platform, helios64 board
    dts.
    
    Fixes: 755fff528b1b ("arm64: dts: rockchip: add variables for pcie completion to helios64")
    Link: https://lore.kernel.org/all/[email protected]/
    Cc: [email protected]
    Reported-by: Shawn Lin <[email protected]>
    Reviewed-by: Dragan Simic <[email protected]>
    Signed-off-by: Geraldo Nascimento <[email protected]>
    Acked-by: Shawn Lin <[email protected]>
    Link: https://patch.msgid.link/43bb639c120f599106fca2deee6c6599b2692c5c.1763415706.git.geraldogabriel@gmail.com
    Signed-off-by: Heiko Stuebner <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

arm64: dts: rockchip: remove redundant max-link-speed from nanopi-r4s [+ + +]
Author: Geraldo Nascimento <[email protected]>
Date:   Mon Nov 17 18:47:59 2025 -0300

    arm64: dts: rockchip: remove redundant max-link-speed from nanopi-r4s
    
    commit ce652c98a7bfa0b7c675ef5cd85c44c186db96af upstream.
    
    This is already the default in rk3399-base.dtsi, remove redundant
    declaration from rk3399-nanopi-r4s.dtsi.
    
    Fixes: db792e9adbf8 ("rockchip: rk3399: Add support for FriendlyARM NanoPi R4S")
    Cc: [email protected]
    Reported-by: Dragan Simic <[email protected]>
    Reviewed-by: Dragan Simic <[email protected]>
    Signed-off-by: Geraldo Nascimento <[email protected]>
    Acked-by: Shawn Lin <[email protected]>
    Link: https://patch.msgid.link/6694456a735844177c897581f785cc00c064c7d1.1763415706.git.geraldogabriel@gmail.com
    Signed-off-by: Heiko Stuebner <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

arm64: Set __nocfi on swsusp_arch_resume() [+ + +]
Author: Zhaoyang Huang <[email protected]>
Date:   Thu Jan 22 19:49:25 2026 +0800

    arm64: Set __nocfi on swsusp_arch_resume()
    
    commit e2f8216ca2d8e61a23cb6ec355616339667e0ba6 upstream.
    
    A DABT is reported[1] on an android based system when resume from hiberate.
    This happens because swsusp_arch_suspend_exit() is marked with SYM_CODE_*()
    and does not have a CFI hash, but swsusp_arch_resume() will attempt to
    verify the CFI hash when calling a copy of swsusp_arch_suspend_exit().
    
    Given that there's an existing requirement that the entrypoint to
    swsusp_arch_suspend_exit() is the first byte of the .hibernate_exit.text
    section, we cannot fix this by marking swsusp_arch_suspend_exit() with
    SYM_FUNC_*(). The simplest fix for now is to disable the CFI check in
    swsusp_arch_resume().
    
    Mark swsusp_arch_resume() as __nocfi to disable the CFI check.
    
    [1]
    [   22.991934][    T1] Unable to handle kernel paging request at virtual address 0000000109170ffc
    [   22.991934][    T1] Mem abort info:
    [   22.991934][    T1]   ESR = 0x0000000096000007
    [   22.991934][    T1]   EC = 0x25: DABT (current EL), IL = 32 bits
    [   22.991934][    T1]   SET = 0, FnV = 0
    [   22.991934][    T1]   EA = 0, S1PTW = 0
    [   22.991934][    T1]   FSC = 0x07: level 3 translation fault
    [   22.991934][    T1] Data abort info:
    [   22.991934][    T1]   ISV = 0, ISS = 0x00000007, ISS2 = 0x00000000
    [   22.991934][    T1]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
    [   22.991934][    T1]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
    [   22.991934][    T1] [0000000109170ffc] user address but active_mm is swapper
    [   22.991934][    T1] Internal error: Oops: 0000000096000007 [#1] PREEMPT SMP
    [   22.991934][    T1] Dumping ftrace buffer:
    [   22.991934][    T1]    (ftrace buffer empty)
    [   22.991934][    T1] Modules linked in:
    [   22.991934][    T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.6.98-android15-8-g0b1d2aee7fc3-dirty-4k #1 688c7060a825a3ac418fe53881730b355915a419
    [   22.991934][    T1] Hardware name: Unisoc UMS9360-base Board (DT)
    [   22.991934][    T1] pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [   22.991934][    T1] pc : swsusp_arch_resume+0x2ac/0x344
    [   22.991934][    T1] lr : swsusp_arch_resume+0x294/0x344
    [   22.991934][    T1] sp : ffffffc08006b960
    [   22.991934][    T1] x29: ffffffc08006b9c0 x28: 0000000000000000 x27: 0000000000000000
    [   22.991934][    T1] x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000820
    [   22.991934][    T1] x23: ffffffd0817e3000 x22: ffffffd0817e3000 x21: 0000000000000000
    [   22.991934][    T1] x20: ffffff8089171000 x19: ffffffd08252c8c8 x18: ffffffc080061058
    [   22.991934][    T1] x17: 00000000529c6ef0 x16: 00000000529c6ef0 x15: 0000000000000004
    [   22.991934][    T1] x14: ffffff8178c88000 x13: 0000000000000006 x12: 0000000000000000
    [   22.991934][    T1] x11: 0000000000000015 x10: 0000000000000001 x9 : ffffffd082533000
    [   22.991934][    T1] x8 : 0000000109171000 x7 : 205b5d3433393139 x6 : 392e32322020205b
    [   22.991934][    T1] x5 : 000000010916f000 x4 : 000000008164b000 x3 : ffffff808a4e0530
    [   22.991934][    T1] x2 : ffffffd08058e784 x1 : 0000000082326000 x0 : 000000010a283000
    [   22.991934][    T1] Call trace:
    [   22.991934][    T1]  swsusp_arch_resume+0x2ac/0x344
    [   22.991934][    T1]  hibernation_restore+0x158/0x18c
    [   22.991934][    T1]  load_image_and_restore+0xb0/0xec
    [   22.991934][    T1]  software_resume+0xf4/0x19c
    [   22.991934][    T1]  software_resume_initcall+0x34/0x78
    [   22.991934][    T1]  do_one_initcall+0xe8/0x370
    [   22.991934][    T1]  do_initcall_level+0xc8/0x19c
    [   22.991934][    T1]  do_initcalls+0x70/0xc0
    [   22.991934][    T1]  do_basic_setup+0x1c/0x28
    [   22.991934][    T1]  kernel_init_freeable+0xe0/0x148
    [   22.991934][    T1]  kernel_init+0x20/0x1a8
    [   22.991934][    T1]  ret_from_fork+0x10/0x20
    [   22.991934][    T1] Code: a9400a61 f94013e0 f9438923 f9400a64 (b85fc110)
    
    Co-developed-by: Jeson Gao <[email protected]>
    Signed-off-by: Jeson Gao <[email protected]>
    Signed-off-by: Zhaoyang Huang <[email protected]>
    Acked-by: Will Deacon <[email protected]>
    Acked-by: Mark Rutland <[email protected]>
    Cc: <[email protected]>
    [[email protected]: commit log updated by Mark Rutland]
    Signed-off-by: Catalin Marinas <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
ARM: dts: microchip: sama7d65: fix size-cells property for i2c3 [+ + +]
Author: Nicolas Ferre <[email protected]>
Date:   Fri Jan 2 18:01:31 2026 +0100

    ARM: dts: microchip: sama7d65: fix size-cells property for i2c3
    
    commit 94ad504e67cd3be94fa1b2fed0cb87da0d8f9396 upstream.
    
    Fix the #size-cells property for i2c3 node and remove the dtbs_check
    error telling that "#size-cells: 0 was expected" from schema
    atmel,at91sam-i2c.yaml and i2c-controller.yaml.
    
    Fixes: b51e4aea3ecf ("ARM: dts: microchip: sama7d65: Add FLEXCOMs to sama7d65 SoC")
    Cc: [email protected] # 6.16+
    Signed-off-by: Nicolas Ferre <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Claudiu Beznea <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

ARM: dts: microchip: sama7d65: fix the ranges property for flx9 [+ + +]
Author: Hari Prasath Gujulan Elango <[email protected]>
Date:   Fri Jan 2 18:01:30 2026 +0100

    ARM: dts: microchip: sama7d65: fix the ranges property for flx9
    
    commit aabc977aa472ccf756372ae594d890022c19c9c8 upstream.
    
    Update the ranges property for the flexcom9 as per the datasheet and
    align with the reg property.
    
    Fixes: b51e4aea3ecf ("ARM: dts: microchip: sama7d65: Add FLEXCOMs to sama7d65 SoC")
    Cc: [email protected] # 6.16+
    Signed-off-by: Hari Prasath Gujulan Elango <[email protected]>
    Signed-off-by: Nicolas Ferre <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Claudiu Beznea <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
ata: ahci: Do not read the per port area for unimplemented ports [+ + +]
Author: Niklas Cassel <[email protected]>
Date:   Mon Jan 12 13:20:46 2026 +0100

    ata: ahci: Do not read the per port area for unimplemented ports
    
    [ Upstream commit ea4d4ea6d10a561043922d285f1765c7e4bfd32a ]
    
    An AHCI HBA specifies the number of ports it supports using CAP.NP.
    The HBA is free to only make a subset of the number of ports available
    using the PI (Ports Implemented) register.
    
    libata currently creates dummy ports for HBA ports that are provided by
    the HBA, but which are marked as "unavailable" using the PI register.
    
    Each port will have a per port area of registers in the HBA, regardless
    if the port is marked as "unavailable" or not.
    
    ahci_mark_external_port() currently reads this per port area of registers
    using readl() to see if the port is marked as external/hotplug-capable.
    
    However, AHCI 1.3.1, section "3.1.4 Offset 0Ch: PI – Ports Implemented"
    states: "Software must not read or write to registers within unavailable
    ports."
    
    Thus, make sure that we only call ahci_mark_external_port() and
    ahci_update_initial_lpm_policy() for ports that are implemented.
    
    From a libata perspective, this should not change anything related to LPM,
    as dummy ports do not provide any ap->ops (they do not have a .set_lpm()
    callback), so even if EH were to call .set_lpm() on a dummy port, it was
    already a no-op.
    
    Fixes: f7131935238d ("ata: ahci: move marking of external port earlier")
    Signed-off-by: Niklas Cassel <[email protected]>
    Tested-by: Wolf <[email protected]>
    Signed-off-by: Damien Le Moal <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ata: libata-sata: Improve link_power_management_supported sysfs attribute [+ + +]
Author: Niklas Cassel <[email protected]>
Date:   Mon Jan 12 13:20:48 2026 +0100

    ata: libata-sata: Improve link_power_management_supported sysfs attribute
    
    [ Upstream commit ce83767ea323baf8509a75eb0c783cd203e14789 ]
    
    The link_power_management_supported sysfs attribute is currently set as
    true even for ata ports that lack a .set_lpm() callback, e.g. dummy ports.
    
    This is a bit silly, because while writing to the
    link_power_management_policy sysfs attribute will make ata_scsi_lpm_store()
    update ap->target_lpm_policy (thus sysfs will reflect the new value) and
    call ata_port_schedule_eh() for the port, it is essentially a no-op.
    
    This is because for a port without a .set_lpm() callback, once EH gets to
    run, the ata_eh_link_set_lpm() will simply return, since the port does not
    provide a .set_lpm() callback.
    
    Thus, make sure that the link_power_management_supported sysfs attribute
    is set to false for ports that lack a .set_lpm() callback. This way the
    link_power_management_policy sysfs attribute will no longer be writable,
    so we will no longer be misleading users to think that their sysfs write
    actually does something.
    
    Fixes: 0060beec0bfa ("ata: libata-sata: Add link_power_management_supported sysfs attribute")
    Signed-off-by: Niklas Cassel <[email protected]>
    Tested-by: Wolf <[email protected]>
    Signed-off-by: Damien Le Moal <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ata: libata: Add cpr_log to ata_dev_print_features() early return [+ + +]
Author: Niklas Cassel <[email protected]>
Date:   Mon Jan 12 13:20:49 2026 +0100

    ata: libata: Add cpr_log to ata_dev_print_features() early return
    
    [ Upstream commit a6bee5e5243ad02cae575becc4c83df66fc29573 ]
    
    ata_dev_print_features() is supposed to return early and not print anything
    if there are no features supported.
    
    However, commit fe22e1c2f705 ("libata: support concurrent positioning
    ranges log") added another feature to ata_dev_print_features() without
    updating the early return conditional.
    
    Add the missing feature to the early return conditional.
    
    Fixes: fe22e1c2f705 ("libata: support concurrent positioning ranges log")
    Signed-off-by: Niklas Cassel <[email protected]>
    Tested-by: Wolf <[email protected]>
    Signed-off-by: Damien Le Moal <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ata: libata: Add DIPM and HIPM to ata_dev_print_features() early return [+ + +]
Author: Niklas Cassel <[email protected]>
Date:   Mon Jan 12 13:20:50 2026 +0100

    ata: libata: Add DIPM and HIPM to ata_dev_print_features() early return
    
    [ Upstream commit 89531b68fc293e91187bf0992147e8d22c65cff3 ]
    
    ata_dev_print_features() is supposed to return early and not print anything
    if there are no features supported.
    
    However, commit b1f5af54f1f5 ("ata: libata-core: Advertize device support
    for DIPM and HIPM features") added additional features to
    ata_dev_print_features() without updating the early return conditional.
    
    Add the missing features to the early return conditional.
    
    Fixes: b1f5af54f1f5 ("ata: libata-core: Advertize device support for DIPM and HIPM features")
    Signed-off-by: Niklas Cassel <[email protected]>
    Tested-by: Wolf <[email protected]>
    Signed-off-by: Damien Le Moal <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ata: libata: Call ata_dev_config_lpm() for ATAPI devices [+ + +]
Author: Niklas Cassel <[email protected]>
Date:   Mon Jan 12 13:20:47 2026 +0100

    ata: libata: Call ata_dev_config_lpm() for ATAPI devices
    
    [ Upstream commit 8f3fb33f8f3f825c708ece800c921977c157f9b6 ]
    
    Commit d360121832d8 ("ata: libata-core: Introduce ata_dev_config_lpm()")
    introduced ata_dev_config_lpm(). However, it only called this function for
    ATA_DEV_ATA and ATA_DEV_ZAC devices, not for ATA_DEV_ATAPI devices.
    
    Additionally, commit d99a9142e782 ("ata: libata-core: Move device LPM quirk
    settings to ata_dev_config_lpm()") moved the LPM quirk application from
    ata_dev_configure() to ata_dev_config_lpm(), causing LPM quirks for ATAPI
    devices to no longer be applied.
    
    Call ata_dev_config_lpm() also for ATAPI devices, such that LPM quirks are
    applied for ATAPI devices with an entry in __ata_dev_quirks once again.
    
    Fixes: d360121832d8 ("ata: libata-core: Introduce ata_dev_config_lpm()")
    Fixes: d99a9142e782 ("ata: libata-core: Move device LPM quirk settings to ata_dev_config_lpm()")
    Signed-off-by: Niklas Cassel <[email protected]>
    Tested-by: Wolf <[email protected]>
    Signed-off-by: Damien Le Moal <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ata: libata: Print features also for ATAPI devices [+ + +]
Author: Niklas Cassel <[email protected]>
Date:   Mon Jan 12 13:20:51 2026 +0100

    ata: libata: Print features also for ATAPI devices
    
    [ Upstream commit c8c6fb886f57d5bf71fb6de6334a143608d35707 ]
    
    Commit d633b8a702ab ("libata: print feature list on device scan")
    added a print of the features supported by the device for ATA_DEV_ATA and
    ATA_DEV_ZAC devices, but not for ATA_DEV_ATAPI devices.
    
    Fix this by printing the features also for ATAPI devices.
    
    Before changes:
    ata1.00: ATAPI: Slimtype DVD A  DU8AESH, 6C2M, max UDMA/133
    
    After changes:
    ata1.00: ATAPI: Slimtype DVD A  DU8AESH, 6C2M, max UDMA/133
    ata1.00: Features: Dev-Attention HIPM DIPM
    
    Fixes: d633b8a702ab ("libata: print feature list on device scan")
    Signed-off-by: Niklas Cassel <[email protected]>
    Tested-by: Wolf <[email protected]>
    Signed-off-by: Damien Le Moal <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
be2net: fix data race in be_get_new_eqd [+ + +]
Author: David Yang <[email protected]>
Date:   Mon Jan 19 23:34:36 2026 +0800

    be2net: fix data race in be_get_new_eqd
    
    [ Upstream commit 302e5b481caa7b3d11ec0e058434c1fc95195e50 ]
    
    In be_get_new_eqd(), statistics of pkts, protected by u64_stats_sync, are
    read and accumulated in ignorance of possible u64_stats_fetch_retry()
    events. Before the commit in question, these statistics were retrieved
    one by one directly from queues. Fix this by reading them into temporary
    variables first.
    
    Fixes: 209477704187 ("be2net: set interrupt moderation for Skyhawk-R using EQ-DB")
    Signed-off-by: David Yang <[email protected]>
    Reviewed-by: Vadim Fedorenko <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

be2net: Fix NULL pointer dereference in be_cmd_get_mac_from_list [+ + +]
Author: Andrey Vatoropin <[email protected]>
Date:   Tue Jan 20 11:37:47 2026 +0000

    be2net: Fix NULL pointer dereference in be_cmd_get_mac_from_list
    
    [ Upstream commit 8215794403d264739cc676668087512950b2ff31 ]
    
    When the parameter pmac_id_valid argument of be_cmd_get_mac_from_list() is
    set to false, the driver may request the PMAC_ID from the firmware of the
    network card, and this function will store that PMAC_ID at the provided
    address pmac_id. This is the contract of this function.
    
    However, there is a location within the driver where both
    pmac_id_valid == false and pmac_id == NULL are being passed. This could
    result in dereferencing a NULL pointer.
    
    To resolve this issue, it is necessary to pass the address of a stub
    variable to the function.
    
    Fixes: 95046b927a54 ("be2net: refactor MAC-addr setup code")
    Signed-off-by: Andrey Vatoropin <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
Bluetooth: btintel_pcie: Support for S4 (Hibernate) [+ + +]
Author: Ravindra <[email protected]>
Date:   Wed Oct 15 15:09:02 2025 +0530

    Bluetooth: btintel_pcie: Support for S4 (Hibernate)
    
    commit 1fb0d830dab89d0dc99bb84a7087b0ceca63d2d8 upstream.
    
    During S4 (hibernate), the Bluetooth device loses power. Upon resume,
    the driver performs the following actions:
    
    1. Unregisters hdev
    2. Calls function level reset
    3. Registers hdev
    
    Test case:
    - run command sudo rtcwake -m disk -s 60
    
    Signed-off-by: Ravindra <[email protected]>
    Signed-off-by: Kiran K <[email protected]>
    Signed-off-by: Luiz Augusto von Dentz <[email protected]>
    Cc: Mariappan Ramasamy <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
bonding: limit BOND_MODE_8023AD to Ethernet devices [+ + +]
Author: Eric Dumazet <[email protected]>
Date:   Tue Jan 13 19:12:01 2026 +0000

    bonding: limit BOND_MODE_8023AD to Ethernet devices
    
    [ Upstream commit c84fcb79e5dbde0b8d5aeeaf04282d2149aebcf6 ]
    
    BOND_MODE_8023AD makes sense for ARPHRD_ETHER only.
    
    syzbot reported:
    
     BUG: KASAN: global-out-of-bounds in __hw_addr_create net/core/dev_addr_lists.c:63 [inline]
     BUG: KASAN: global-out-of-bounds in __hw_addr_add_ex+0x25d/0x760 net/core/dev_addr_lists.c:118
    Read of size 16 at addr ffffffff8bf94040 by task syz.1.3580/19497
    
    CPU: 1 UID: 0 PID: 19497 Comm: syz.1.3580 Tainted: G             L      syzkaller #0 PREEMPT(full)
    Tainted: [L]=SOFTLOCKUP
    Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
    Call Trace:
     <TASK>
      dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
      print_address_description mm/kasan/report.c:378 [inline]
      print_report+0xca/0x240 mm/kasan/report.c:482
      kasan_report+0x118/0x150 mm/kasan/report.c:595
     check_region_inline mm/kasan/generic.c:-1 [inline]
      kasan_check_range+0x2b0/0x2c0 mm/kasan/generic.c:200
      __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
      __hw_addr_create net/core/dev_addr_lists.c:63 [inline]
      __hw_addr_add_ex+0x25d/0x760 net/core/dev_addr_lists.c:118
      __dev_mc_add net/core/dev_addr_lists.c:868 [inline]
      dev_mc_add+0xa1/0x120 net/core/dev_addr_lists.c:886
      bond_enslave+0x2b8b/0x3ac0 drivers/net/bonding/bond_main.c:2180
      do_set_master+0x533/0x6d0 net/core/rtnetlink.c:2963
      do_setlink+0xcf0/0x41c0 net/core/rtnetlink.c:3165
      rtnl_changelink net/core/rtnetlink.c:3776 [inline]
      __rtnl_newlink net/core/rtnetlink.c:3935 [inline]
      rtnl_newlink+0x161c/0x1c90 net/core/rtnetlink.c:4072
      rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6958
      netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2550
      netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
      netlink_unicast+0x82f/0x9e0 net/netlink/af_netlink.c:1344
      netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1894
      sock_sendmsg_nosec net/socket.c:727 [inline]
      __sock_sendmsg+0x21c/0x270 net/socket.c:742
      ____sys_sendmsg+0x505/0x820 net/socket.c:2592
      ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2646
      __sys_sendmsg+0x164/0x220 net/socket.c:2678
      do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline]
      __do_fast_syscall_32+0x1dc/0x560 arch/x86/entry/syscall_32.c:307
      do_fast_syscall_32+0x34/0x80 arch/x86/entry/syscall_32.c:332
     entry_SYSENTER_compat_after_hwframe+0x84/0x8e
     </TASK>
    
    The buggy address belongs to the variable:
     lacpdu_mcast_addr+0x0/0x40
    
    Fixes: 872254dd6b1f ("net/bonding: Enable bonding to enslave non ARPHRD_ETHER")
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/netdev/[email protected]/T/#u
    Signed-off-by: Eric Dumazet <[email protected]>
    Cc: Andrew Lunn <[email protected]>
    Acked-by: Jay Vosburgh <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

bonding: provide a net pointer to __skb_flow_dissect() [+ + +]
Author: Eric Dumazet <[email protected]>
Date:   Tue Jan 20 16:17:44 2026 +0000

    bonding: provide a net pointer to __skb_flow_dissect()
    
    [ Upstream commit 5f9b329096596b7e53e07d041d7fca4cbe1be752 ]
    
    After 3cbf4ffba5ee ("net: plumb network namespace into __skb_flow_dissect")
    we have to provide a net pointer to __skb_flow_dissect(),
    either via skb->dev, skb->sk, or a user provided pointer.
    
    In the following case, syzbot was able to cook a bare skb.
    
    WARNING: net/core/flow_dissector.c:1131 at __skb_flow_dissect+0xb57/0x68b0 net/core/flow_dissector.c:1131, CPU#1: syz.2.1418/11053
    Call Trace:
     <TASK>
      bond_flow_dissect drivers/net/bonding/bond_main.c:4093 [inline]
      __bond_xmit_hash+0x2d7/0xba0 drivers/net/bonding/bond_main.c:4157
      bond_xmit_hash_xdp drivers/net/bonding/bond_main.c:4208 [inline]
      bond_xdp_xmit_3ad_xor_slave_get drivers/net/bonding/bond_main.c:5139 [inline]
      bond_xdp_get_xmit_slave+0x1fd/0x710 drivers/net/bonding/bond_main.c:5515
      xdp_master_redirect+0x13f/0x2c0 net/core/filter.c:4388
      bpf_prog_run_xdp include/net/xdp.h:700 [inline]
      bpf_test_run+0x6b2/0x7d0 net/bpf/test_run.c:421
      bpf_prog_test_run_xdp+0x795/0x10e0 net/bpf/test_run.c:1390
      bpf_prog_test_run+0x2c7/0x340 kernel/bpf/syscall.c:4703
      __sys_bpf+0x562/0x860 kernel/bpf/syscall.c:6182
      __do_sys_bpf kernel/bpf/syscall.c:6274 [inline]
      __se_sys_bpf kernel/bpf/syscall.c:6272 [inline]
      __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6272
      do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
      do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94
    
    Fixes: 58deb77cc52d ("bonding: balance ICMP echoes in layer3+4 mode")
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/netdev/[email protected]/T/#u
    Signed-off-by: Eric Dumazet <[email protected]>
    Cc: Matteo Croce <[email protected]>
    Acked-by: Stanislav Fomichev <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
btrfs: fix missing fields in superblock backup with BLOCK_GROUP_TREE [+ + +]
Author: Mark Harmstone <[email protected]>
Date:   Tue Jan 13 18:37:56 2026 +0000

    btrfs: fix missing fields in superblock backup with BLOCK_GROUP_TREE
    
    [ Upstream commit 1d8f69f453c2e8a2d99b158e58e02ed65031fa6d ]
    
    When the BLOCK_GROUP_TREE compat_ro flag is set, the extent root and
    csum root fields are getting missed.
    
    This is because EXTENT_TREE_V2 treated these differently, and when
    they were split off this special-casing was mistakenly assigned to
    BGT rather than the rump EXTENT_TREE_V2. There's no reason why the
    existence of the block group tree should mean that we don't record the
    details of the last commit's extent root and csum root.
    
    Fix the code in backup_super_roots() so that the correct check gets
    made.
    
    Fixes: 1c56ab991903 ("btrfs: separate BLOCK_GROUP_TREE compat RO flag from EXTENT_TREE_V2")
    Reviewed-by: Qu Wenruo <[email protected]>
    Signed-off-by: Mark Harmstone <[email protected]>
    Reviewed-by: David Sterba <[email protected]>
    Signed-off-by: David Sterba <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
can: ems_usb: ems_usb_read_bulk_callback(): fix URB memory leak [+ + +]
Author: Marc Kleine-Budde <[email protected]>
Date:   Sat Jan 10 12:52:27 2026 +0100

    can: ems_usb: ems_usb_read_bulk_callback(): fix URB memory leak
    
    commit 0ce73a0eb5a27070957b67fd74059b6da89cc516 upstream.
    
    Fix similar memory leak as in commit 7352e1d5932a ("can: gs_usb:
    gs_usb_receive_bulk_callback(): fix URB memory leak").
    
    In ems_usb_open(), the URBs for USB-in transfers are allocated, added to
    the dev->rx_submitted anchor and submitted. In the complete callback
    ems_usb_read_bulk_callback(), the URBs are processed and resubmitted. In
    ems_usb_close() the URBs are freed by calling
    usb_kill_anchored_urbs(&dev->rx_submitted).
    
    However, this does not take into account that the USB framework unanchors
    the URB before the complete function is called. This means that once an
    in-URB has been completed, it is no longer anchored and is ultimately not
    released in ems_usb_close().
    
    Fix the memory leak by anchoring the URB in the
    ems_usb_read_bulk_callback() to the dev->rx_submitted anchor.
    
    Fixes: 702171adeed3 ("ems_usb: Added support for EMS CPC-USB/ARM7 CAN/USB interface")
    Cc: [email protected]
    Link: https://patch.msgid.link/20260116-can_usb-fix-memory-leak-v2-1-4b8cb2915571@pengutronix.de
    Signed-off-by: Marc Kleine-Budde <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

can: esd_usb: esd_usb_read_bulk_callback(): fix URB memory leak [+ + +]
Author: Marc Kleine-Budde <[email protected]>
Date:   Sat Jan 10 12:52:27 2026 +0100

    can: esd_usb: esd_usb_read_bulk_callback(): fix URB memory leak
    
    commit 5a4391bdc6c8357242f62f22069c865b792406b3 upstream.
    
    Fix similar memory leak as in commit 7352e1d5932a ("can: gs_usb:
    gs_usb_receive_bulk_callback(): fix URB memory leak").
    
    In esd_usb_open(), the URBs for USB-in transfers are allocated, added to
    the dev->rx_submitted anchor and submitted. In the complete callback
    esd_usb_read_bulk_callback(), the URBs are processed and resubmitted. In
    esd_usb_close() the URBs are freed by calling
    usb_kill_anchored_urbs(&dev->rx_submitted).
    
    However, this does not take into account that the USB framework unanchors
    the URB before the complete function is called. This means that once an
    in-URB has been completed, it is no longer anchored and is ultimately not
    released in esd_usb_close().
    
    Fix the memory leak by anchoring the URB in the
    esd_usb_read_bulk_callback() to the dev->rx_submitted anchor.
    
    Fixes: 96d8e90382dc ("can: Add driver for esd CAN-USB/2 device")
    Cc: [email protected]
    Link: https://patch.msgid.link/20260116-can_usb-fix-memory-leak-v2-2-4b8cb2915571@pengutronix.de
    Signed-off-by: Marc Kleine-Budde <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

can: gs_usb: gs_usb_receive_bulk_callback(): unanchor URL on usb_submit_urb() error [+ + +]
Author: Marc Kleine-Budde <[email protected]>
Date:   Fri Jan 16 14:10:10 2026 +0100

    can: gs_usb: gs_usb_receive_bulk_callback(): unanchor URL on usb_submit_urb() error
    
    [ Upstream commit 79a6d1bfe1148bc921b8d7f3371a7fbce44e30f7 ]
    
    In commit 7352e1d5932a ("can: gs_usb: gs_usb_receive_bulk_callback(): fix
    URB memory leak"), the URB was re-anchored before usb_submit_urb() in
    gs_usb_receive_bulk_callback() to prevent a leak of this URB during
    cleanup.
    
    However, this patch did not take into account that usb_submit_urb() could
    fail. The URB remains anchored and
    usb_kill_anchored_urbs(&parent->rx_submitted) in gs_can_close() loops
    infinitely since the anchor list never becomes empty.
    
    To fix the bug, unanchor the URB when an usb_submit_urb() error occurs,
    also print an info message.
    
    Fixes: 7352e1d5932a ("can: gs_usb: gs_usb_receive_bulk_callback(): fix URB memory leak")
    Reported-by: Jakub Kicinski <[email protected]>
    Closes: https://lore.kernel.org/all/[email protected]/
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Marc Kleine-Budde <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

can: kvaser_usb: kvaser_usb_read_bulk_callback(): fix URB memory leak [+ + +]
Author: Marc Kleine-Budde <[email protected]>
Date:   Sat Jan 10 12:52:27 2026 +0100

    can: kvaser_usb: kvaser_usb_read_bulk_callback(): fix URB memory leak
    
    commit 248e8e1a125fa875158df521b30f2cc7e27eeeaa upstream.
    
    Fix similar memory leak as in commit 7352e1d5932a ("can: gs_usb:
    gs_usb_receive_bulk_callback(): fix URB memory leak").
    
    In kvaser_usb_set_{,data_}bittiming() -> kvaser_usb_setup_rx_urbs(), the
    URBs for USB-in transfers are allocated, added to the dev->rx_submitted
    anchor and submitted. In the complete callback
    kvaser_usb_read_bulk_callback(), the URBs are processed and resubmitted. In
    kvaser_usb_remove_interfaces() the URBs are freed by calling
    usb_kill_anchored_urbs(&dev->rx_submitted).
    
    However, this does not take into account that the USB framework unanchors
    the URB before the complete function is called. This means that once an
    in-URB has been completed, it is no longer anchored and is ultimately not
    released in usb_kill_anchored_urbs().
    
    Fix the memory leak by anchoring the URB in the
    kvaser_usb_read_bulk_callback() to the dev->rx_submitted anchor.
    
    Fixes: 080f40a6fa28 ("can: kvaser_usb: Add support for Kvaser CAN/USB devices")
    Cc: [email protected]
    Link: https://patch.msgid.link/20260116-can_usb-fix-memory-leak-v2-3-4b8cb2915571@pengutronix.de
    Signed-off-by: Marc Kleine-Budde <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

can: mcba_usb: mcba_usb_read_bulk_callback(): fix URB memory leak [+ + +]
Author: Marc Kleine-Budde <[email protected]>
Date:   Sat Jan 10 12:52:27 2026 +0100

    can: mcba_usb: mcba_usb_read_bulk_callback(): fix URB memory leak
    
    commit 710a7529fb13c5a470258ff5508ed3c498d54729 upstream.
    
    Fix similar memory leak as in commit 7352e1d5932a ("can: gs_usb:
    gs_usb_receive_bulk_callback(): fix URB memory leak").
    
    In mcba_usb_probe() -> mcba_usb_start(), the URBs for USB-in transfers are
    allocated, added to the priv->rx_submitted anchor and submitted. In the
    complete callback mcba_usb_read_bulk_callback(), the URBs are processed and
    resubmitted. In mcba_usb_close() -> mcba_urb_unlink() the URBs are freed by
    calling usb_kill_anchored_urbs(&priv->rx_submitted).
    
    However, this does not take into account that the USB framework unanchors
    the URB before the complete function is called. This means that once an
    in-URB has been completed, it is no longer anchored and is ultimately not
    released in usb_kill_anchored_urbs().
    
    Fix the memory leak by anchoring the URB in the
    mcba_usb_read_bulk_callback()to the priv->rx_submitted anchor.
    
    Fixes: 51f3baad7de9 ("can: mcba_usb: Add support for Microchip CAN BUS Analyzer")
    Cc: [email protected]
    Link: https://patch.msgid.link/20260116-can_usb-fix-memory-leak-v2-4-4b8cb2915571@pengutronix.de
    Signed-off-by: Marc Kleine-Budde <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

can: usb_8dev: usb_8dev_read_bulk_callback(): fix URB memory leak [+ + +]
Author: Marc Kleine-Budde <[email protected]>
Date:   Sat Jan 10 12:52:27 2026 +0100

    can: usb_8dev: usb_8dev_read_bulk_callback(): fix URB memory leak
    
    commit f7a980b3b8f80fe367f679da376cf76e800f9480 upstream.
    
    Fix similar memory leak as in commit 7352e1d5932a ("can: gs_usb:
    gs_usb_receive_bulk_callback(): fix URB memory leak").
    
    In usb_8dev_open() -> usb_8dev_start(), the URBs for USB-in transfers are
    allocated, added to the priv->rx_submitted anchor and submitted. In the
    complete callback usb_8dev_read_bulk_callback(), the URBs are processed and
    resubmitted. In usb_8dev_close() -> unlink_all_urbs() the URBs are freed by
    calling usb_kill_anchored_urbs(&priv->rx_submitted).
    
    However, this does not take into account that the USB framework unanchors
    the URB before the complete function is called. This means that once an
    in-URB has been completed, it is no longer anchored and is ultimately not
    released in usb_kill_anchored_urbs().
    
    Fix the memory leak by anchoring the URB in the
    usb_8dev_read_bulk_callback() to the priv->rx_submitted anchor.
    
    Fixes: 0024d8ad1639 ("can: usb_8dev: Add support for USB2CAN interface from 8 devices")
    Cc: [email protected]
    Link: https://patch.msgid.link/20260116-can_usb-fix-memory-leak-v2-5-4b8cb2915571@pengutronix.de
    Signed-off-by: Marc Kleine-Budde <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
clocksource: Reduce watchdog readout delay limit to prevent false positives [+ + +]
Author: Thomas Gleixner <[email protected]>
Date:   Wed Dec 17 18:21:05 2025 +0100

    clocksource: Reduce watchdog readout delay limit to prevent false positives
    
    [ Upstream commit c06343be0b4e03fe319910dd7a5d5b9929e1c0cb ]
    
    The "valid" readout delay between the two reads of the watchdog is larger
    than the valid delta between the resulting watchdog and clocksource
    intervals, which results in false positive watchdog results.
    
    Assume TSC is the clocksource and HPET is the watchdog and both have a
    uncertainty margin of 250us (default). The watchdog readout does:
    
      1) wdnow = read(HPET);
      2) csnow = read(TSC);
      3) wdend = read(HPET);
    
    The valid window for the delta between #1 and #3 is calculated by the
    uncertainty margins of the watchdog and the clocksource:
    
       m = 2 * watchdog.uncertainty_margin + cs.uncertainty margin;
    
    which results in 750us for the TSC/HPET case.
    
    The actual interval comparison uses a smaller margin:
    
       m = watchdog.uncertainty_margin + cs.uncertainty margin;
    
    which results in 500us for the TSC/HPET case.
    
    That means the following scenario will trigger the watchdog:
    
     Watchdog cycle N:
    
     1)       wdnow[N] = read(HPET);
     2)       csnow[N] = read(TSC);
     3)       wdend[N] = read(HPET);
    
    Assume the delay between #1 and #2 is 100us and the delay between #1 and
    
     Watchdog cycle N + 1:
    
     4)       wdnow[N + 1] = read(HPET);
     5)       csnow[N + 1] = read(TSC);
     6)       wdend[N + 1] = read(HPET);
    
    If the delay between #4 and #6 is within the 750us margin then any delay
    between #4 and #5 which is larger than 600us will fail the interval check
    and mark the TSC unstable because the intervals are calculated against the
    previous value:
    
        wd_int = wdnow[N + 1] - wdnow[N];
        cs_int = csnow[N + 1] - csnow[N];
    
    Putting the above delays in place this results in:
    
        cs_int = (wdnow[N + 1] + 610us) - (wdnow[N] + 100us);
     -> cs_int = wd_int + 510us;
    
    which is obviously larger than the allowed 500us margin and results in
    marking TSC unstable.
    
    Fix this by using the same margin as the interval comparison. If the delay
    between two watchdog reads is larger than that, then the readout was either
    disturbed by interconnect congestion, NMIs or SMIs.
    
    Fixes: 4ac1dd3245b9 ("clocksource: Set cs_watchdog_read() checks based on .uncertainty_margin")
    Reported-by: Daniel J Blueman <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Reviewed-by: Paul E. McKenney <[email protected]>
    Tested-by: Paul E. McKenney <[email protected]>
    Link: https://lore.kernel.org/lkml/[email protected]/
    Link: https://patch.msgid.link/87bjjxc9dq.ffs@tglx
    Signed-off-by: Sasha Levin <[email protected]>

 
comedi: dmm32at: serialize use of paged registers [+ + +]
Author: Ian Abbott <[email protected]>
Date:   Mon Jan 12 16:28:35 2026 +0000

    comedi: dmm32at: serialize use of paged registers
    
    commit e03b29b55f2b7c345a919a6ee36633b06bf3fb56 upstream.
    
    Some of the hardware registers of the DMM-32-AT board are multiplexed,
    using the least significant two bits of the Miscellaneous Control
    register to select the function of registers at offsets 12 to 15:
    
     00 => 8254 timer/counter registers are accessible
     01 => 8255 digital I/O registers are accessible
     10 => Reserved
     11 => Calibration registers are accessible
    
    The interrupt service routine (`dmm32at_isr()`) clobbers the bottom two
    bits of the register with value 00, which would interfere with access to
    the 8255 registers by the `dm32at_8255_io()` function (used for Comedi
    instruction handling on the digital I/O subdevice).
    
    Make use of the generic Comedi device spin-lock `dev->spinlock` (which
    is otherwise unused by this driver) to serialize access to the
    miscellaneous control register and paged registers.
    
    Fixes: 3c501880ac44 ("Staging: comedi: add dmm32at driver")
    Cc: [email protected]
    Signed-off-by: Ian Abbott <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

comedi: Fix getting range information for subdevices 16 to 255 [+ + +]
Author: Ian Abbott <[email protected]>
Date:   Wed Dec 3 16:24:38 2025 +0000

    comedi: Fix getting range information for subdevices 16 to 255
    
    commit 10d28cffb3f6ec7ad67f0a4cd32c2afa92909452 upstream.
    
    The `COMEDI_RANGEINFO` ioctl does not work properly for subdevice
    indices above 15.  Currently, the only in-tree COMEDI drivers that
    support more than 16 subdevices are the "8255" driver and the
    "comedi_bond" driver.  Making the ioctl work for subdevice indices up to
    255 is achievable.  It needs minor changes to the handling of the
    `COMEDI_RANGEINFO` and `COMEDI_CHANINFO` ioctls that should be mostly
    harmless to user-space, apart from making them less broken.  Details
    follow...
    
    The `COMEDI_RANGEINFO` ioctl command gets the list of supported ranges
    (usually with units of volts or milliamps) for a COMEDI subdevice or
    channel.  (Only some subdevices have per-channel range tables, indicated
    by the `SDF_RANGETYPE` flag in the subdevice information.)  It uses a
    `range_type` value and a user-space pointer, both supplied by
    user-space, but the `range_type` value should match what was obtained
    using the `COMEDI_CHANINFO` ioctl (if the subdevice has per-channel
    range tables)  or `COMEDI_SUBDINFO` ioctl (if the subdevice uses a
    single range table for all channels).  Bits 15 to 0 of the `range_type`
    value contain the length of the range table, which is the only part that
    user-space should care about (so it can use a suitably sized buffer to
    fetch the range table).  Bits 23 to 16 store the channel index, which is
    assumed to be no more than 255 if the subdevice has per-channel range
    tables, and is set to 0 if the subdevice has a single range table.  For
    `range_type` values produced by the `COMEDI_SUBDINFO` ioctl, bits 31 to
    24 contain the subdevice index, which is assumed to be no more than 255.
    But for `range_type` values produced by the `COMEDI_CHANINFO` ioctl,
    bits 27 to 24 contain the subdevice index, which is assumed to be no
    more than 15, and bits 31 to 28 contain the COMEDI device's minor device
    number for some unknown reason lost in the mists of time.  The
    `COMEDI_RANGEINFO` ioctl extract the length from bits 15 to 0 of the
    user-supplied `range_type` value, extracts the channel index from bits
    23 to 16 (only used if the subdevice has per-channel range tables),
    extracts the subdevice index from bits 27 to 24, and ignores bits 31 to
    28.  So for subdevice indices 16 to 255, the `COMEDI_SUBDINFO` or
    `COMEDI_CHANINFO` ioctl will report a `range_type` value that doesn't
    work with the `COMEDI_RANGEINFO` ioctl.  It will either get the range
    table for the subdevice index modulo 16, or will fail with `-EINVAL`.
    
    To fix this, always use bits 31 to 24 of the `range_type` value to hold
    the subdevice index (assumed to be no more than 255).  This affects the
    `COMEDI_CHANINFO` and `COMEDI_RANGEINFO` ioctls.  There should not be
    anything in user-space that depends on the old, broken usage, although
    it may now see different values in bits 31 to 28 of the `range_type`
    values reported by the `COMEDI_CHANINFO` ioctl for subdevices that have
    per-channel subdevices.  User-space should not be trying to decode bits
    31 to 16 of the `range_type` values anyway.
    
    Fixes: ed9eccbe8970 ("Staging: add comedi core")
    Cc: [email protected] #5.17+
    Signed-off-by: Ian Abbott <[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]>

 
crypto: authencesn - reject too-short AAD (assoclen<8) to match ESP/ESN spec [+ + +]
Author: Taeyang Lee <[email protected]>
Date:   Fri Jan 16 16:03:58 2026 +0900

    crypto: authencesn - reject too-short AAD (assoclen<8) to match ESP/ESN spec
    
    [ Upstream commit 2397e9264676be7794f8f7f1e9763d90bd3c7335 ]
    
    authencesn assumes an ESP/ESN-formatted AAD. When assoclen is shorter than
    the minimum expected length, crypto_authenc_esn_decrypt() can advance past
    the end of the destination scatterlist and trigger a NULL pointer dereference
    in scatterwalk_map_and_copy(), leading to a kernel panic (DoS).
    
    Add a minimum AAD length check to fail fast on invalid inputs.
    
    Fixes: 104880a6b470 ("crypto: authencesn - Convert to new AEAD interface")
    Reported-By: Taeyang Lee <[email protected]>
    Signed-off-by: Taeyang Lee <[email protected]>
    Signed-off-by: Herbert Xu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
dpll: Prevent duplicate registrations [+ + +]
Author: Ivan Vecera <[email protected]>
Date:   Wed Jan 21 14:00:11 2026 +0100

    dpll: Prevent duplicate registrations
    
    [ Upstream commit f3ddbaaaaf4d0633b40482f471753f9c71294a4a ]
    
    Modify the internal registration helpers dpll_xa_ref_{dpll,pin}_add()
    to reject duplicate registration attempts.
    
    Previously, if a caller attempted to register the same pin multiple
    times (with the same ops, priv, and cookie) on the same device, the core
    silently increments the reference count and return success. This behavior
    is incorrect because if the caller makes these duplicate registrations
    then for the first one dpll_pin_registration is allocated and for others
    the associated dpll_pin_ref.refcount is incremented. During the first
    unregistration the associated dpll_pin_registration is freed and for
    others WARN is fired.
    
    Fix this by updating the logic to return `-EEXIST` if a matching
    registration is found to enforce a strict "register once" policy.
    
    Fixes: 9431063ad323 ("dpll: core: Add DPLL framework base functions")
    Signed-off-by: Ivan Vecera <[email protected]>
    Reviewed-by: Arkadiusz Kubalewski <[email protected]>
    Reviewed-by: Vadim Fedorenko <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
Drivers: hv: Always do Hyper-V panic notification in hv_kmsg_dump() [+ + +]
Author: Michael Kelley <[email protected]>
Date:   Wed Dec 31 12:14:47 2025 -0800

    Drivers: hv: Always do Hyper-V panic notification in hv_kmsg_dump()
    
    [ Upstream commit 49f49d47af67f8a7b221db1d758fc634242dc91a ]
    
    hv_kmsg_dump() currently skips the panic notification entirely if it
    doesn't get any message bytes to pass to Hyper-V due to an error from
    kmsg_dump_get_buffer(). Skipping the notification is undesirable because
    it leaves the Hyper-V host uncertain about the state of a panic'ed guest.
    
    Fix this by always doing the panic notification, even if bytes_written
    is zero. Also ensure that bytes_written is initialized, which fixes a
    kernel test robot warning. The warning is actually bogus because
    kmsg_dump_get_buffer() happens to set bytes_written even if it fails, and
    in the kernel test robot's CONFIG_PRINTK not set case, hv_kmsg_dump() is
    never called. But do the initialization for robustness and to quiet the
    static checker.
    
    Fixes: 9c318a1d9b50 ("Drivers: hv: move panic report code from vmbus to hv early init code")
    Reported-by: kernel test robot <[email protected]>
    Reported-by: Dan Carpenter <[email protected]>
    Closes: https://lore.kernel.org/all/[email protected]/
    Signed-off-by: Michael Kelley <[email protected]>
    Reviewed-by: Roman Kisel <[email protected]>
    Signed-off-by: Wei Liu <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm, drm/xe: Fix xe userptr in the absence of CONFIG_DEVICE_PRIVATE [+ + +]
Author: Thomas Hellström <[email protected]>
Date:   Wed Jan 21 10:10:47 2026 +0100

    drm, drm/xe: Fix xe userptr in the absence of CONFIG_DEVICE_PRIVATE
    
    commit bdcdf968be314b6fc8835b99fb4519e7619671e6 upstream.
    
    CONFIG_DEVICE_PRIVATE is not selected by default by some distros,
    for example Fedora, and that leads to a regression in the xe driver
    since userptr support gets compiled out.
    
    It turns out that DRM_GPUSVM, which is needed for xe userptr support
    compiles also without CONFIG_DEVICE_PRIVATE, but doesn't compile
    without CONFIG_ZONE_DEVICE.
    Exclude the drm_pagemap files from compilation with !CONFIG_ZONE_DEVICE,
    and remove the CONFIG_DEVICE_PRIVATE dependency from CONFIG_DRM_GPUSVM and
    the xe driver's selection of it, re-enabling xe userptr for those configs.
    
    v2:
    - Don't compile the drm_pagemap files unless CONFIG_ZONE_DEVICE is set.
    - Adjust the drm_pagemap.h header accordingly.
    
    Fixes: 9e9787414882 ("drm/xe/userptr: replace xe_hmm with gpusvm")
    Cc: Matthew Auld <[email protected]>
    Cc: Himal Prasad Ghimiray <[email protected]>
    Cc: Thomas Hellström <[email protected]>
    Cc: Matthew Brost <[email protected]>
    Cc: "Thomas Hellström" <[email protected]>
    Cc: Rodrigo Vivi <[email protected]>
    Cc: [email protected]
    Cc: <[email protected]> # v6.18+
    Signed-off-by: Thomas Hellström <[email protected]>
    Reviewed-by: Matthew Auld <[email protected]>
    Acked-by: Maarten Lankhorst <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    (cherry picked from commit 1e372b246199ca7a35f930177fea91b557dac16e)
    Signed-off-by: Thomas Hellström <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
drm/amd/pm: Don't clear SI SMC table when setting power limit [+ + +]
Author: Timur Kristóf <[email protected]>
Date:   Mon Jan 19 21:36:23 2026 +0100

    drm/amd/pm: Don't clear SI SMC table when setting power limit
    
    [ Upstream commit d5077426e1a76d269e518e048bde2e9fc49b32ad ]
    
    There is no reason to clear the SMC table.
    We also don't need to recalculate the power limit then.
    
    Fixes: 841686df9f7d ("drm/amdgpu: add SI DPM support (v4)")
    Reviewed-by: Alex Deucher <[email protected]>
    Signed-off-by: Timur Kristóf <[email protected]>
    Signed-off-by: Alex Deucher <[email protected]>
    (cherry picked from commit e214d626253f5b180db10dedab161b7caa41f5e9)
    Signed-off-by: Sasha Levin <[email protected]>

drm/amd/pm: Fix si_dpm mmCG_THERMAL_INT setting [+ + +]
Author: Timur Kristóf <[email protected]>
Date:   Mon Jan 19 21:36:22 2026 +0100

    drm/amd/pm: Fix si_dpm mmCG_THERMAL_INT setting
    
    [ Upstream commit 4ca284c6d15dda481f714e3687a1d5fb70b3bf5c ]
    
    Use WREG32 to write mmCG_THERMAL_INT.
    This is a direct access register.
    
    Fixes: 841686df9f7d ("drm/amdgpu: add SI DPM support (v4)")
    Reviewed-by: Alex Deucher <[email protected]>
    Signed-off-by: Timur Kristóf <[email protected]>
    Signed-off-by: Alex Deucher <[email protected]>
    (cherry picked from commit 2555f4e4a741d31e0496572a8ab4f55941b4e30e)
    Signed-off-by: Sasha Levin <[email protected]>

drm/amd/pm: Workaround SI powertune issue on Radeon 430 (v2) [+ + +]
Author: Timur Kristóf <[email protected]>
Date:   Mon Jan 19 21:36:24 2026 +0100

    drm/amd/pm: Workaround SI powertune issue on Radeon 430 (v2)
    
    [ Upstream commit 764a90eb02268a23b1bb98be5f4a13671346804a ]
    
    Radeon 430 and 520 are OEM GPUs from 2016~2017
    They have the same device id: 0x6611 and revision: 0x87
    
    On the Radeon 430, powertune is buggy and throttles the GPU,
    never allowing it to reach its maximum SCLK. Work around this
    bug by raising the TDP limits we program to the SMC from
    24W (specified by the VBIOS on Radeon 430) to 32W.
    
    Disabling powertune entirely is not a viable workaround,
    because it causes the Radeon 520 to heat up above 100 C,
    which I prefer to avoid.
    
    Additionally, revise the maximum SCLK limit. Considering the
    above issue, these GPUs never reached a high SCLK on Linux,
    and the workarounds were added before the GPUs were released,
    so the workaround likely didn't target these specifically.
    Use 780 MHz (the maximum SCLK according to the VBIOS on the
    Radeon 430). Note that the Radeon 520 VBIOS has a higher
    maximum SCLK: 905 MHz, but in practice it doesn't seem to
    perform better with the higher clock, only heats up more.
    
    v2:
    Move the workaround to si_populate_smc_tdp_limits.
    
    Fixes: 841686df9f7d ("drm/amdgpu: add SI DPM support (v4)")
    Reviewed-by: Alex Deucher <[email protected]>
    Signed-off-by: Timur Kristóf <[email protected]>
    Signed-off-by: Alex Deucher <[email protected]>
    (cherry picked from commit 966d70f1e160bdfdecaf7ff2b3f22ad088516e9f)
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/amdgpu: fix type for wptr in ring backup [+ + +]
Author: Alex Deucher <[email protected]>
Date:   Thu Jan 15 21:45:43 2026 -0500

    drm/amdgpu: fix type for wptr in ring backup
    
    [ Upstream commit 095ca815174e51fc0049771712d5455cabd7231e ]
    
    Needs to be a u64.
    
    Fixes: 77cc0da39c7c ("drm/amdgpu: track ring state associated with a fence")
    Reviewed-by: Christian König <[email protected]>
    Signed-off-by: Alex Deucher <[email protected]>
    (cherry picked from commit 56fff1941abd3ca3b6f394979614ca7972552f7f)
    Signed-off-by: Sasha Levin <[email protected]>

drm/amdgpu: remove frame cntl for gfx v12 [+ + +]
Author: Likun Gao <[email protected]>
Date:   Mon Dec 15 11:33:58 2025 +0800

    drm/amdgpu: remove frame cntl for gfx v12
    
    commit 10343253328e0dbdb465bff709a2619a08fe01ad upstream.
    
    Remove emit_frame_cntl function for gfx v12, which is not support.
    
    Signed-off-by: Likun Gao <[email protected]>
    Reviewed-by: Hawking Zhang <[email protected]>
    Signed-off-by: Alex Deucher <[email protected]>
    (cherry picked from commit 5aaa5058dec5bfdcb24c42fe17ad91565a3037ca)
    Cc: [email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
drm/bridge: synopsys: dw-dp: fix error paths of dw_dp_bind [+ + +]
Author: Osama Abdelkader <[email protected]>
Date:   Fri Jan 2 16:55:52 2026 +0100

    drm/bridge: synopsys: dw-dp: fix error paths of dw_dp_bind
    
    commit 1a0f69e3c28477b97d3609569b7e8feb4b6162e8 upstream.
    
    Fix several issues in dw_dp_bind() error handling:
    
    1. Missing return after drm_bridge_attach() failure - the function
       continued execution instead of returning an error.
    
    2. Resource leak: drm_dp_aux_register() is not a devm function, so
       drm_dp_aux_unregister() must be called on all error paths after
       aux registration succeeds. This affects errors from:
       - drm_bridge_attach()
       - phy_init()
       - devm_add_action_or_reset()
       - platform_get_irq()
       - devm_request_threaded_irq()
    
    3. Bug fix: platform_get_irq() returns the IRQ number or a negative
       error code, but the error path was returning ERR_PTR(ret) instead
       of ERR_PTR(dp->irq).
    
    Use a goto label for cleanup to ensure consistent error handling.
    
    Fixes: 86eecc3a9c2e ("drm/bridge: synopsys: Add DW DPTX Controller support library")
    Cc: [email protected]
    
    Signed-off-by: Osama Abdelkader <[email protected]>
    Reviewed-by: Louis Chauvet <[email protected]>
    Reviewed-by: Luca Ceresoli <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Luca Ceresoli <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
drm/imagination: Wait for FW trace update command completion [+ + +]
Author: Brajesh Gupta <[email protected]>
Date:   Thu Jan 8 04:09:36 2026 +0000

    drm/imagination: Wait for FW trace update command completion
    
    [ Upstream commit 812062e74a3945b575dce89d330b67cb50054a77 ]
    
    Possibility of no FW trace available after update in the fw_trace_mask due
    to asynchronous mode of command consumption in the FW.
    
    To ensure FW trace is available after update, wait for FW trace log update
    command completion from the FW.
    
    Fixes: cc1aeedb98ad ("drm/imagination: Implement firmware infrastructure and META FW support")
    Signed-off-by: Brajesh Gupta <[email protected]>
    Reviewed-by: Matt Coster <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Matt Coster <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/mediatek: dpi: Find next bridge during probe [+ + +]
Author: Chen-Yu Tsai <[email protected]>
Date:   Wed Jan 14 17:22:42 2026 +0800

    drm/mediatek: dpi: Find next bridge during probe
    
    [ Upstream commit 21465e73400dc69a5f732ae7bcc2a58bad673cd1 ]
    
    Trying to find the next bridge and deferring probe in the bridge attach
    callback is much too late. At this point the driver has already finished
    probing and is now running the component bind code path. What's even
    worse is that in the specific case of the DSI host being the last
    component to be added as part of the dsi_host_attach callback, the code
    path that this is in:
    
     -> devm_drm_of_get_bridge()
        mtk_dpi_bridge_attach()
        drm_bridge_attach()
        mtk_dpi_bind()
        ...
        component_add()
        mtk_dsi_host_attach()
        anx7625_attach_dsi()
        anx7625_link_bridge()
            - done_probing callback for of_dp_aux_populate_bus()
        of_dp_aux_populate_bus()
        anx7625_i2c_probe()
    
    _cannot_ return probe defer:
    
        anx7625 4-0058: [drm:anx7625_bridge_attach] drm attach
        mediatek-drm mediatek-drm.15.auto: bound 14014000.dsi
            (ops mtk_dsi_component_ops)
        mediatek-drm mediatek-drm.15.auto: error -EPROBE_DEFER:
            failed to attach bridge /soc/dpi@14015000 to encoder TMDS-37
        [drm:mtk_dsi_host_attach] *ERROR* failed to add dsi_host
            component: -517
        anx7625 4-0058: [drm:anx7625_link_bridge] *ERROR* fail to attach dsi
            to host.
        panel-simple-dp-aux aux-4-0058: DP AUX done_probing() can't defer
        panel-simple-dp-aux aux-4-0058: probe with driver panel-simple-dp-aux
            failed with error -22
        anx7625 4-0058: [drm:anx7625_i2c_probe] probe done
    
    This results in the whole display driver failing to probe.
    
    Perhaps this was an attempt to mirror the structure in the DSI driver;
    but in the DSI driver the next bridge is retrieved in the DSI attach
    callback, not the bridge attach callback.
    
    Move the code finding the next bridge back to the probe function so that
    deferred probing works correctly. Also rework the fallback to the old OF
    graph endpoint numbering scheme so that deferred probing logs in both
    cases.
    
    This issue was found on an MT8183 Jacuzzi device with an extra patch
    enabling the DPI-based external display pipeline. Also tested on an
    MT8192 Hayato device with both DSI and DPI display pipelines enabled.
    
    Fixes: 4c932840db1d ("drm/mediatek: Implement OF graphs support for display paths")
    Signed-off-by: Chen-Yu Tsai <[email protected]>
    Reviewed-by: CK Hu <[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/nouveau/disp: Set drm_mode_config_funcs.atomic_(check|commit) [+ + +]
Author: Lyude Paul <[email protected]>
Date:   Wed Jan 21 14:13:10 2026 -0500

    drm/nouveau/disp: Set drm_mode_config_funcs.atomic_(check|commit)
    
    commit 604826acb3f53c6648a7ee99a3914ead680ab7fb upstream.
    
    Apparently we never actually filled these in, despite the fact that we do
    in fact technically support atomic modesetting.
    
    Since not having these filled in causes us to potentially forget to disable
    fbdev and friends during suspend/resume, let's fix it.
    
    Signed-off-by: Lyude Paul <[email protected]>
    Cc: [email protected]
    Reviewed-by: Dave Airlie <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
drm/nouveau: add missing DCB connector types [+ + +]
Author: Alex Ramírez <[email protected]>
Date:   Fri Dec 12 19:53:26 2025 -0500

    drm/nouveau: add missing DCB connector types
    
    [ Upstream commit 3036b4ce4b209af690fa776e4616925892caba4c ]
    
    * Add missing DCB connectors in conn.h as per the NVIDIA DCB specification.
    
    A lot of connector logic was rewritten for Linux v6.5; some display connector types
    went unaccounted-for which caused kernel warnings on devices with the now-unsupported
    DCB connectors. This patch adds all of the DCB connectors as defined by NVIDIA to the
    dcb_connector_type enum to bring back support for these connectors to the new logic.
    
    Fixes: 8b7d92cad953 ("drm/nouveau/kms/nv50-: create connectors based on nvkm info")
    Link: https://download.nvidia.com/open-gpu-doc/DCB/1/DCB-4.0-Specification.html#_connector_table_entry
    Signed-off-by: Alex Ramírez <[email protected]>
    Reviewed-by: Lyude Paul <[email protected]>
    [Lyude: Clarify DCB_CONNECTOR_HDMI_0 weirdness in comments]
    Signed-off-by: Lyude Paul <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

drm/nouveau: implement missing DCB connector types; gracefully handle unknown connectors [+ + +]
Author: Alex Ramírez <[email protected]>
Date:   Fri Dec 12 19:53:27 2025 -0500

    drm/nouveau: implement missing DCB connector types; gracefully handle unknown connectors
    
    [ Upstream commit d0bd10792d6cc3725ddee43f03fd6ee234f24844 ]
    
    * Implement missing DCB connectors in uconn.c previously defined in conn.h.
    * Replace kernel WARN_ON macro with printk message to more gracefully signify
      an unknown connector was encountered.
    
    With this patch, unknown connectors are explicitly marked with value 0
    (DCB_CONNECTOR_VGA) to match the tested current behavior. Although 0xff
    (DCB_CONNECTOR_NONE) may be more suitable, I don't want to introduce a
    breaking change.
    
    Fixes: 8b7d92cad953 ("drm/nouveau/kms/nv50-: create connectors based on nvkm info")
    Link: https://download.nvidia.com/open-gpu-doc/DCB/1/DCB-4.0-Specification.html#_connector_table_entry
    Signed-off-by: Alex Ramírez <[email protected]>
    Reviewed-by: Lyude Paul <[email protected]>
    [Lyude: Remove unneeded parenthesis around nvkm_warn()]
    Signed-off-by: Lyude Paul <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/xe/migrate: fix job lock assert [+ + +]
Author: Matthew Auld <[email protected]>
Date:   Tue Jan 20 11:06:11 2026 +0000

    drm/xe/migrate: fix job lock assert
    
    [ Upstream commit 772157f626d0e1a7c6d49dffb0bbe4b2343a1d44 ]
    
    We are meant to be checking the user vm for the bind queue, but actually
    we are checking the migrate vm. For various reasons this is not
    currently firing but this will likely change in the future.
    
    Now that we have the user_vm attached to the bind queue, we can fix this
    by directly checking that here.
    
    Fixes: dba89840a920 ("drm/xe: Add GT TLB invalidation jobs")
    Signed-off-by: Matthew Auld <[email protected]>
    Cc: Thomas Hellström <[email protected]>
    Cc: Matthew Brost <[email protected]>
    Reviewed-by: Matthew Brost <[email protected]>
    Reviewed-by: Arvind Yadav <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    (cherry picked from commit 9dd1048bca4fe2aa67c7a286bafb3947537adedb)
    Signed-off-by: Thomas Hellström <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/xe/pm: Add scope-based cleanup helper for runtime PM [+ + +]
Author: Matt Roper <[email protected]>
Date:   Tue Nov 18 08:43:41 2025 -0800

    drm/xe/pm: Add scope-based cleanup helper for runtime PM
    
    [ Upstream commit 50a59230fa63989d59253622a8dd6386cca0db07 ]
    
    Add a scope-based helpers for runtime PM that may be used to simplify
    cleanup logic and potentially avoid goto-based cleanup.
    
    For example, using
    
            guard(xe_pm_runtime)(xe);
    
    will get runtime PM and cause a corresponding put to occur automatically
    when the current scope is exited.  'xe_pm_runtime_noresume' can be used
    as a guard replacement for the corresponding 'noresume' variant.
    There's also an xe_pm_runtime_ioctl conditional guard that can be used
    as a replacement for xe_runtime_ioctl():
    
            ACQUIRE(xe_pm_runtime_ioctl, pm)(xe);
            if ((ret = ACQUIRE_ERR(xe_pm_runtime_ioctl, &pm)) < 0)
                    /* failed */
    
    In a few rare cases (such as gt_reset_worker()) we need to ensure that
    runtime PM is dropped when the function is exited by any means
    (including error paths), but the function does not need to acquire
    runtime PM because that has already been done earlier by a different
    function.  For these special cases, an 'xe_pm_runtime_release_only'
    guard can be used to handle the release without doing an acquisition.
    
    These guards will be used in future patches to eliminate some of our
    goto-based cleanup.
    
    v2:
     - Specify success condition for xe_pm runtime_ioctl as _RET >= 0 so
       that positive values will be properly identified as success and
       trigger destructor cleanup properly.
    
    v3:
     - Add comments to the kerneldoc for the existing 'get' functions
       indicating that scope-based handling should be preferred where
       possible.  (Gustavo)
    
    Cc: Gustavo Sousa <[email protected]>
    Reviewed-by: Michal Wajdeczko <[email protected]>
    Reviewed-by: Gustavo Sousa <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Matt Roper <[email protected]>
    (cherry picked from commit 59e7528dbfd52efbed05e0f11b2143217a12bc74)
    Signed-off-by: Thomas Hellström <[email protected]>
    Stable-dep-of: f262015b9797 ("drm/xe: Update wedged.mode only after successful reset policy change")
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/xe/uapi: disallow bind queue sharing [+ + +]
Author: Matthew Auld <[email protected]>
Date:   Tue Jan 20 11:06:10 2026 +0000

    drm/xe/uapi: disallow bind queue sharing
    
    [ Upstream commit 6f4b7aed61817624250e590ba0ef304146d34614 ]
    
    Currently this is very broken if someone attempts to create a bind
    queue and share it across multiple VMs. For example currently we assume
    it is safe to acquire the user VM lock to protect some of the bind queue
    state, but if allow sharing the bind queue with multiple VMs then this
    quickly breaks down.
    
    To fix this reject using a bind queue with any VM that is not the same
    VM that was originally passed when creating the bind queue. This a uAPI
    change, however this was more of an oversight on kernel side that we
    didn't reject this, and expectation is that userspace shouldn't be using
    bind queues in this way, so in theory this change should go unnoticed.
    
    Based on a patch from Matt Brost.
    
    v2 (Matt B):
      - Hold the vm lock over queue create, to ensure it can't be closed as
        we attach the user_vm to the queue.
      - Make sure we actually check for NULL user_vm in destruction path.
    v3:
      - Fix error path handling.
    
    Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
    Reported-by: Thomas Hellström <[email protected]>
    Signed-off-by: Matthew Auld <[email protected]>
    Cc: José Roberto de Souza <[email protected]>
    Cc: Matthew Brost <[email protected]>
    Cc: Michal Mrozek <[email protected]>
    Cc: Carl Zhang <[email protected]>
    Cc: <[email protected]> # v6.8+
    Acked-by: José Roberto de Souza <[email protected]>
    Reviewed-by: Matthew Brost <[email protected]>
    Reviewed-by: Arvind Yadav <[email protected]>
    Acked-by: Michal Mrozek <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    (cherry picked from commit 9dd08fdecc0c98d6516c2d2d1fa189c1332f8dab)
    Signed-off-by: Thomas Hellström <[email protected]>
    Stable-dep-of: 772157f626d0 ("drm/xe/migrate: fix job lock assert")
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/xe/vm: fix xe_vm_validation_exec() kernel-doc [+ + +]
Author: Jani Nikula <[email protected]>
Date:   Wed Jan 7 17:54:00 2026 +0200

    drm/xe/vm: fix xe_vm_validation_exec() kernel-doc
    
    [ Upstream commit 47bf28e22a121b807a9a9680c4209846a78a98a6 ]
    
    Fix kernel-doc warnings on xe_vm_validation_exec():
    
    Warning: ../drivers/gpu/drm/xe/xe_vm.h:392 expecting prototype for
      xe_vm_set_validation_exec(). Prototype was for xe_vm_validation_exec()
      instead
    
    Fixes: 0131514f9789 ("drm/xe: Pass down drm_exec context to validation")
    Cc: Thomas Hellström <[email protected]>
    Cc: Matthew Brost <[email protected]>
    Reviewed-by: Matt Roper <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jani Nikula <[email protected]>
    (cherry picked from commit b3a7767989e6519127ac5e0cde682c50ad587f3b)
    Signed-off-by: Thomas Hellström <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/xe/xe_late_bind_fw: fix enum xe_late_bind_fw_id kernel-doc [+ + +]
Author: Jani Nikula <[email protected]>
Date:   Wed Jan 7 17:53:59 2026 +0200

    drm/xe/xe_late_bind_fw: fix enum xe_late_bind_fw_id kernel-doc
    
    [ Upstream commit dc1d0ffee09740088eb190af84a2c470d279bad9 ]
    
    Fix kernel-doc warnings on enum xe_late_bind_fw_id:
    
    Warning: ../drivers/gpu/drm/xe/xe_late_bind_fw_types.h:19 cannot
      understand function prototype: 'enum xe_late_bind_fw_id'
    
    Fixes: 45832bf9c10f ("drm/xe/xe_late_bind_fw: Initialize late binding firmware")
    Cc: Badal Nilawar <[email protected]>
    Cc: Daniele Ceraolo Spurio <[email protected]>
    Cc: Rodrigo Vivi <[email protected]>
    Reviewed-by: Badal Nilawar <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jani Nikula <[email protected]>
    (cherry picked from commit a857e6102970c7bd8f2db967fe02d76741179d14)
    Signed-off-by: Thomas Hellström <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
drm/xe: Adjust page count tracepoints in shrinker [+ + +]
Author: Matthew Brost <[email protected]>
Date:   Wed Jan 7 12:57:32 2026 -0800

    drm/xe: Adjust page count tracepoints in shrinker
    
    commit ca9e5115e870b9a531deb02752055a8a587904e3 upstream.
    
    Page accounting can change via the shrinker without calling
    xe_ttm_tt_unpopulate(), which normally updates page count tracepoints
    through update_global_total_pages. Add a call to
    update_global_total_pages when the shrinker successfully shrinks a BO.
    
    v2:
     - Don't adjust global accounting when pinning (Stuart)
    
    Cc: [email protected]
    Fixes: ce3d39fae3d3 ("drm/xe/bo: add GPU memory trace points")
    Signed-off-by: Matthew Brost <[email protected]>
    Reviewed-by: Stuart Summers <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    (cherry picked from commit cc54eabdfbf0c5b6638edc50002cfafac1f1e18b)
    Signed-off-by: Thomas Hellström <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

drm/xe: Disable timestamp WA on VFs [+ + +]
Author: Matthew Brost <[email protected]>
Date:   Fri Jan 9 17:27:38 2026 -0800

    drm/xe: Disable timestamp WA on VFs
    
    [ Upstream commit b886aa65eafe3098bbd691f0ca4a9abce03f9d03 ]
    
    The timestamp WA does not work on a VF because it requires reading MMIO
    registers, which are inaccessible on a VF. This timestamp WA confuses
    LRC sampling on a VF during TDR, as the LRC timestamp would always read
    as 1 for any active context. Disable the timestamp WA on VFs to avoid
    this confusion.
    
    Signed-off-by: Matthew Brost <[email protected]>
    Reviewed-by: Umesh Nerlige Ramappa <[email protected]>
    Fixes: 617d824c5323 ("drm/xe: Add WA BB to capture active context utilization")
    Link: https://patch.msgid.link/[email protected]
    (cherry picked from commit efffd56e4bd894e0935eea00e437f233b6cebc0d)
    Signed-off-by: Thomas Hellström <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

drm/xe: fix WQ_MEM_RECLAIM passed as max_active to alloc_workqueue() [+ + +]
Author: Marco Crivellari <[email protected]>
Date:   Thu Jan 8 19:01:48 2026 +0100

    drm/xe: fix WQ_MEM_RECLAIM passed as max_active to alloc_workqueue()
    
    commit 6f287b1c8d0e255e94e54116ebbe126515f5c911 upstream.
    
    Workqueue xe-ggtt-wq has been allocated using WQ_MEM_RECLAIM, but
    the flag has been passed as 3rd parameter (max_active) instead
    of 2nd (flags) creating the workqueue as per-cpu with max_active = 8
    (the WQ_MEM_RECLAIM value).
    
    So change this by set WQ_MEM_RECLAIM as the 2nd parameter with a
    default max_active.
    
    Fixes: 60df57e496e4 ("drm/xe: Mark GGTT work queue with WQ_MEM_RECLAIM")
    Cc: [email protected]
    Signed-off-by: Marco Crivellari <[email protected]>
    Reviewed-by: Matthew Brost <[email protected]>
    Signed-off-by: Matthew Brost <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    (cherry picked from commit aa39abc08e77d66ebb0c8c9ec4cc8d38ded34dc9)
    Signed-off-by: Thomas Hellström <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

drm/xe: Update wedged.mode only after successful reset policy change [+ + +]
Author: Lukasz Laguna <[email protected]>
Date:   Wed Jan 21 15:33:04 2026 +0100

    drm/xe: Update wedged.mode only after successful reset policy change
    
    [ Upstream commit f262015b9797effdec15e8a81c81b2158ede9578 ]
    
    Previously, the driver's internal wedged.mode state was updated without
    verifying whether the corresponding engine reset policy update in GuC
    succeeded. This could leave the driver reporting a wedged.mode state
    that doesn't match the actual reset behavior programmed in GuC.
    
    With this change, the reset policy is updated first, and the driver's
    wedged.mode state is modified only if the policy update succeeds on all
    available GTs.
    
    This patch also introduces two functional improvements:
    
     - The policy is sent to GuC only when a change is required. An update
       is needed only when entering or leaving XE_WEDGED_MODE_UPON_ANY_HANG,
       because only in that case the reset policy changes. For example,
       switching between XE_WEDGED_MODE_UPON_CRITICAL_ERROR and
       XE_WEDGED_MODE_NEVER doesn't affect the reset policy, so there is no
       need to send the same value to GuC.
    
     - An inconsistent_reset flag is added to track cases where reset policy
       update succeeds only on a subset of GTs. If such inconsistency is
       detected, future wedged mode configuration will force a retry of the
       reset policy update to restore a consistent state across all GTs.
    
    Fixes: 6b8ef44cc0a9 ("drm/xe: Introduce the wedged_mode debugfs")
    Signed-off-by: Lukasz Laguna <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Reviewed-by: Rodrigo Vivi <[email protected]>
    Signed-off-by: Rodrigo Vivi <[email protected]>
    (cherry picked from commit 0f13dead4e0385859f5c9c3625a19df116b389d3)
    Signed-off-by: Thomas Hellström <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
dt-bindings: power: qcom,rpmpd: Add SC8280XP_MXC_AO [+ + +]
Author: Konrad Dybcio <[email protected]>
Date:   Tue Dec 2 18:36:20 2025 +0100

    dt-bindings: power: qcom,rpmpd: Add SC8280XP_MXC_AO
    
    [ Upstream commit 45e1be5ddec98db71e7481fa7a3005673200d85c ]
    
    Not sure how useful it's gonna be in practice, but the definition is
    missing (unlike the previously-unused SC8280XP_MXC-non-_AO), so add it
    to allow the driver to create the corresponding pmdomain.
    
    Fixes: dbfb5f94e084 ("dt-bindings: power: rpmpd: Add sc8280xp RPMh power-domains")
    Acked-by: Rob Herring (Arm) <[email protected]>
    Signed-off-by: Konrad Dybcio <[email protected]>
    Reviewed-by: Ulf Hansson <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
fou: Don't allow 0 for FOU_ATTR_IPPROTO. [+ + +]
Author: Kuniyuki Iwashima <[email protected]>
Date:   Thu Jan 15 17:24:48 2026 +0000

    fou: Don't allow 0 for FOU_ATTR_IPPROTO.
    
    [ Upstream commit 7a9bc9e3f42391e4c187e099263cf7a1c4b69ff5 ]
    
    fou_udp_recv() has the same problem mentioned in the previous
    patch.
    
    If FOU_ATTR_IPPROTO is set to 0, skb is not freed by
    fou_udp_recv() nor "resubmit"-ted in ip_protocol_deliver_rcu().
    
    Let's forbid 0 for FOU_ATTR_IPPROTO.
    
    Fixes: 23461551c0062 ("fou: Support for foo-over-udp RX path")
    Signed-off-by: Kuniyuki Iwashima <[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]>

 
fs/writeback: skip AS_NO_DATA_INTEGRITY mappings in wait_sb_inodes() [+ + +]
Author: Joanne Koong <[email protected]>
Date:   Mon Jan 5 13:17:27 2026 -0800

    fs/writeback: skip AS_NO_DATA_INTEGRITY mappings in wait_sb_inodes()
    
    commit f9a49aa302a05e91ca01f69031cb79a0ea33031f upstream.
    
    Above the while() loop in wait_sb_inodes(), we document that we must wait
    for all pages under writeback for data integrity.  Consequently, if a
    mapping, like fuse, traditionally does not have data integrity semantics,
    there is no need to wait at all; we can simply skip these inodes.
    
    This restores fuse back to prior behavior where syncs are no-ops.  This
    fixes a user regression where if a system is running a faulty fuse server
    that does not reply to issued write requests, this causes wait_sb_inodes()
    to wait forever.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Fixes: 0c58a97f919c ("fuse: remove tmp folio for writebacks and internal rb tree")
    Signed-off-by: Joanne Koong <[email protected]>
    Reported-by: Athul Krishna <[email protected]>
    Reported-by: J. Neuschäfer <[email protected]>
    Reviewed-by: Bernd Schubert <[email protected]>
    Tested-by: J. Neuschäfer <[email protected]>
    Cc: Alexander Viro <[email protected]>
    Cc: Bernd Schubert <[email protected]>
    Cc: Bonaccorso Salvatore <[email protected]>
    Cc: Christian Brauner <[email protected]>
    Cc: David Hildenbrand <[email protected]>
    Cc: Jan Kara <[email protected]>
    Cc: "Liam R. Howlett" <[email protected]>
    Cc: Lorenzo Stoakes <[email protected]>
    Cc: "Matthew Wilcox (Oracle)" <[email protected]>
    Cc: Michal Hocko <[email protected]>
    Cc: Mike Rapoport <[email protected]>
    Cc: Miklos Szeredi <[email protected]>
    Cc: Suren Baghdasaryan <[email protected]>
    Cc: Vlastimil Babka <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
gpio: cdev: Correct return code on memory allocation failure [+ + +]
Author: Tzung-Bi Shih <[email protected]>
Date:   Fri Jan 16 08:10:18 2026 +0000

    gpio: cdev: Correct return code on memory allocation failure
    
    commit faff6846474e99295a139997f93ef6db222b5cee upstream.
    
    -ENOMEM is a more appropriate return code for memory allocation
    failures.  Correct it.
    
    Cc: [email protected]
    Fixes: 20bddcb40b2b ("gpiolib: cdev: replace locking wrappers for gpio_device with guards")
    Signed-off-by: Tzung-Bi Shih <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bartosz Golaszewski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

gpio: cdev: Fix resource leaks on errors in gpiolib_cdev_register() [+ + +]
Author: Tzung-Bi Shih <[email protected]>
Date:   Tue Jan 20 09:26:50 2026 +0000

    gpio: cdev: Fix resource leaks on errors in gpiolib_cdev_register()
    
    commit 8a8c942cad4cd12f739a8bb60cac77fd173c4e07 upstream.
    
    On error handling paths, gpiolib_cdev_register() doesn't free the
    allocated resources which results leaks.  Fix it.
    
    Cc: [email protected]
    Fixes: 7b9b77a8bba9 ("gpiolib: add a per-gpio_device line state notification workqueue")
    Fixes: d83cee3d2bb1 ("gpio: protect the pointer to gpio_chip in gpio_device with SRCU")
    Signed-off-by: Tzung-Bi Shih <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bartosz Golaszewski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

gpio: cdev: Fix resource leaks on errors in lineinfo_changed_notify() [+ + +]
Author: Tzung-Bi Shih <[email protected]>
Date:   Tue Jan 20 03:08:56 2026 +0000

    gpio: cdev: Fix resource leaks on errors in lineinfo_changed_notify()
    
    commit 70b3c280533167749a8f740acaa8ef720f78f984 upstream.
    
    On error handling paths, lineinfo_changed_notify() doesn't free the
    allocated resources which results leaks.  Fix it.
    
    Cc: [email protected]
    Fixes: d4cd0902c156 ("gpio: cdev: make sure the cdev fd is still active before emitting events")
    Signed-off-by: Tzung-Bi Shih <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bartosz Golaszewski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
gue: Fix skb memleak with inner IP protocol 0. [+ + +]
Author: Kuniyuki Iwashima <[email protected]>
Date:   Thu Jan 15 17:24:46 2026 +0000

    gue: Fix skb memleak with inner IP protocol 0.
    
    [ Upstream commit 9a56796ad258786d3624eef5aefba394fc9bdded ]
    
    syzbot reported skb memleak below. [0]
    
    The repro generated a GUE packet with its inner protocol 0.
    
    gue_udp_recv() returns -guehdr->proto_ctype for "resubmit"
    in ip_protocol_deliver_rcu(), but this only works with
    non-zero protocol number.
    
    Let's drop such packets.
    
    Note that 0 is a valid number (IPv6 Hop-by-Hop Option).
    
    I think it is not practical to encap HOPOPT in GUE, so once
    someone starts to complain, we could pass down a resubmit
    flag pointer to distinguish two zeros from the upper layer:
    
      * no error
      * resubmit HOPOPT
    
    [0]
    BUG: memory leak
    unreferenced object 0xffff888109695a00 (size 240):
      comm "syz.0.17", pid 6088, jiffies 4294943096
      hex dump (first 32 bytes):
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
        00 40 c2 10 81 88 ff ff 00 00 00 00 00 00 00 00  .@..............
      backtrace (crc a84b336f):
        kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
        slab_post_alloc_hook mm/slub.c:4958 [inline]
        slab_alloc_node mm/slub.c:5263 [inline]
        kmem_cache_alloc_noprof+0x3b4/0x590 mm/slub.c:5270
        __build_skb+0x23/0x60 net/core/skbuff.c:474
        build_skb+0x20/0x190 net/core/skbuff.c:490
        __tun_build_skb drivers/net/tun.c:1541 [inline]
        tun_build_skb+0x4a1/0xa40 drivers/net/tun.c:1636
        tun_get_user+0xc12/0x2030 drivers/net/tun.c:1770
        tun_chr_write_iter+0x71/0x120 drivers/net/tun.c:1999
        new_sync_write fs/read_write.c:593 [inline]
        vfs_write+0x45d/0x710 fs/read_write.c:686
        ksys_write+0xa7/0x170 fs/read_write.c:738
        do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
        do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94
        entry_SYSCALL_64_after_hwframe+0x77/0x7f
    
    Fixes: 37dd0247797b1 ("gue: Receive side for Generic UDP Encapsulation")
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/netdev/[email protected]/
    Signed-off-by: Kuniyuki Iwashima <[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]>

 
hinic3: Fix netif_queue_set_napi queue_index input parameter error [+ + +]
Author: Fan Gong <[email protected]>
Date:   Thu Jan 22 17:41:55 2026 +0800

    hinic3: Fix netif_queue_set_napi queue_index input parameter error
    
    [ Upstream commit fb2bb2a1ebf7b9514c32b03bb5c3be5d518d437b ]
    
    Incorrectly transmitted interrupt number instead of queue number
    when using netif_queue_set_napi. Besides, move this to appropriate
    code location to set napi.
    
    Remove redundant netif_stop_subqueue beacuase it is not part of the
    hinic3_send_one_skb process.
    
    Fixes: 17fcb3dc12bb ("hinic3: module initialization and tx/rx logic")
    Co-developed-by: Zhu Yikai <[email protected]>
    Signed-off-by: Zhu Yikai <[email protected]>
    Signed-off-by: Fan Gong <[email protected]>
    Link: https://patch.msgid.link/7b8e4eb5c53cbd873ee9aaefeb3d9dbbaff52deb.1769070766.git.zhuyikai1@h-partners.com
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
i2c: spacemit: drop IRQF_ONESHOT flag from IRQ request [+ + +]
Author: Yixun Lan <[email protected]>
Date:   Thu Jan 22 07:52:00 2026 +0800

    i2c: spacemit: drop IRQF_ONESHOT flag from IRQ request
    
    commit e351836a54e3b0b4483f896abcd6a0dc71097693 upstream.
    
    In commit aef30c8d569c ("genirq: Warn about using IRQF_ONESHOT without a
    threaded handler")[1], it will check IRQF_ONESHOT flag in IRQ request,
    and gives a warning if there is no threaded handler. Drop this flag to
    fix this warning.
    
    Link: https://lore.kernel.org/r/[email protected]/ [1]
    Fixes: 5ea558473fa3 ("i2c: spacemit: add support for SpacemiT K1 SoC")
    Signed-off-by: Yixun Lan <[email protected]>
    Cc: <[email protected]> # v6.15+
    Reviewed-by: Javier Martinez Canillas <[email protected]>
    Reviewed-by: Troy Mitchell <[email protected]>
    Signed-off-by: Andi Shyti <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
ice: add missing ice_deinit_hw() in devlink reinit path [+ + +]
Author: Paul Greenwalt <[email protected]>
Date:   Thu Dec 18 08:36:53 2025 -0500

    ice: add missing ice_deinit_hw() in devlink reinit path
    
    [ Upstream commit 42fb5f3deb582cb96440e4683745017dbabb83d6 ]
    
    devlink-reload results in ice_init_hw failed error, and then removing
    the ice driver causes a NULL pointer dereference.
    
    [  +0.102213] ice 0000:ca:00.0: ice_init_hw failed: -16
    ...
    [  +0.000001] Call Trace:
    [  +0.000003]  <TASK>
    [  +0.000006]  ice_unload+0x8f/0x100 [ice]
    [  +0.000081]  ice_remove+0xba/0x300 [ice]
    
    Commit 1390b8b3d2be ("ice: remove duplicate call to ice_deinit_hw() on
    error paths") removed ice_deinit_hw() from ice_deinit_dev(). As a result
    ice_devlink_reinit_down() no longer calls ice_deinit_hw(), but
    ice_devlink_reinit_up() still calls ice_init_hw(). Since the control
    queues are not uninitialized, ice_init_hw() fails with -EBUSY.
    
    Add ice_deinit_hw() to ice_devlink_reinit_down() to correspond with
    ice_init_hw() in ice_devlink_reinit_up().
    
    Fixes: 1390b8b3d2be ("ice: remove duplicate call to ice_deinit_hw() on error paths")
    Reviewed-by: Aleksandr Loktionov <[email protected]>
    Reviewed-by: Przemek Kitszel <[email protected]>
    Signed-off-by: Paul Greenwalt <[email protected]>
    Reviewed-by: Paul Menzel <[email protected]>
    Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)
    Signed-off-by: Tony Nguyen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ice: Avoid detrimental cleanup for bond during interface stop [+ + +]
Author: Dave Ertman <[email protected]>
Date:   Thu Nov 20 09:58:26 2025 -0800

    ice: Avoid detrimental cleanup for bond during interface stop
    
    [ Upstream commit a9d45c22ed120cdd15ff56d0a6e4700c46451901 ]
    
    When the user issues an administrative down to an interface that is the
    primary for an aggregate bond, the prune lists are being purged. This
    breaks communication to the secondary interface, which shares a prune
    list on the main switch block while bonded together.
    
    For the primary interface of an aggregate, avoid deleting these prune
    lists during stop, and since they are hardcoded to specific values for
    the default vlan and QinQ vlans, the attempt to re-add them during the
    up phase will quietly fail without any additional problem.
    
    Fixes: 1e0f9881ef79 ("ice: Flesh out implementation of support for SRIOV on bonded interface")
    Reviewed-by: Jacob Keller <[email protected]>
    Reviewed-by: Marcin Szycik <[email protected]>
    Signed-off-by: Dave Ertman <[email protected]>
    Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)
    Signed-off-by: Tony Nguyen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ice: fix devlink reload call trace [+ + +]
Author: Paul Greenwalt <[email protected]>
Date:   Mon Dec 29 03:52:34 2025 -0500

    ice: fix devlink reload call trace
    
    [ Upstream commit d3f867e7a04678640ebcbfb81893c59f4af48586 ]
    
    Commit 4da71a77fc3b ("ice: read internal temperature sensor") introduced
    internal temperature sensor reading via HWMON. ice_hwmon_init() was added
    to ice_init_feature() and ice_hwmon_exit() was added to ice_remove(). As a
    result if devlink reload is used to reinit the device and then the driver
    is removed, a call trace can occur.
    
    BUG: unable to handle page fault for address: ffffffffc0fd4b5d
    Call Trace:
     string+0x48/0xe0
     vsnprintf+0x1f9/0x650
     sprintf+0x62/0x80
     name_show+0x1f/0x30
     dev_attr_show+0x19/0x60
    
    The call trace repeats approximately every 10 minutes when system
    monitoring tools (e.g., sadc) attempt to read the orphaned hwmon sysfs
    attributes that reference freed module memory.
    
    The sequence is:
    1. Driver load, ice_hwmon_init() gets called from ice_init_feature()
    2. Devlink reload down, flow does not call ice_remove()
    3. Devlink reload up, ice_hwmon_init() gets called from
       ice_init_feature() resulting in a second instance
    4. Driver unload, ice_hwmon_exit() called from ice_remove() leaving the
       first hwmon instance orphaned with dangling pointer
    
    Fix this by moving ice_hwmon_exit() from ice_remove() to
    ice_deinit_features() to ensure proper cleanup symmetry with
    ice_hwmon_init().
    
    Fixes: 4da71a77fc3b ("ice: read internal temperature sensor")
    Reviewed-by: Aleksandr Loktionov <[email protected]>
    Signed-off-by: Paul Greenwalt <[email protected]>
    Reviewed-by: Paul Menzel <[email protected]>
    Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)
    Signed-off-by: Tony Nguyen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ice: Fix incorrect timeout ice_release_res() [+ + +]
Author: Ding Hui <[email protected]>
Date:   Sat Dec 6 21:46:09 2025 +0800

    ice: Fix incorrect timeout ice_release_res()
    
    [ Upstream commit 01139a2ce532d77379e1593230127caa261a8036 ]
    
    The commit 5f6df173f92e ("ice: implement and use rd32_poll_timeout for
    ice_sq_done timeout") converted ICE_CTL_Q_SQ_CMD_TIMEOUT from jiffies
    to microseconds.
    
    But the ice_release_res() function was missed, and its logic still
    treats ICE_CTL_Q_SQ_CMD_TIMEOUT as a jiffies value.
    
    So correct the issue by usecs_to_jiffies().
    
    Found by inspection of the DDP downloading process.
    Compile and modprobe tested only.
    
    Fixes: 5f6df173f92e ("ice: implement and use rd32_poll_timeout for ice_sq_done timeout")
    Signed-off-by: Ding Hui <[email protected]>
    Reviewed-by: Simon Horman <[email protected]>
    Reviewed-by: Aleksandr Loktionov <[email protected]>
    Reviewed-by: Jacob Keller <[email protected]>
    Reviewed-by: Paul Menzel <[email protected]>
    Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)
    Signed-off-by: Tony Nguyen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ice: Fix persistent failure in ice_get_rxfh [+ + +]
Author: Cody Haas <[email protected]>
Date:   Fri Dec 12 16:22:26 2025 -0800

    ice: Fix persistent failure in ice_get_rxfh
    
    [ Upstream commit f406220eb8e227ca344eef1a6d30aff53706b196 ]
    
    Several ioctl functions have the ability to call ice_get_rxfh, however
    all of these ioctl functions do not provide all of the expected
    information in ethtool_rxfh_param. For example, ethtool_get_rxfh_indir does
    not provide an rss_key. This previously caused ethtool_get_rxfh_indir to
    always fail with -EINVAL.
    
    This change draws inspiration from i40e_get_rss to handle this
    situation, by only calling the appropriate rss helpers when the
    necessary information has been provided via ethtool_rxfh_param.
    
    Fixes: b66a972abb6b ("ice: Refactor ice_set/get_rss into LUT and key specific functions")
    Signed-off-by: Cody Haas <[email protected]>
    Closes: https://lore.kernel.org/intel-wired-lan/CAH7f-UKkJV8MLY7zCdgCrGE55whRhbGAXvgkDnwgiZ9gUZT7_w@mail.gmail.com/
    Reviewed-by: Aleksandr Loktionov <[email protected]>
    Reviewed-by: Przemek Kitszel <[email protected]>
    Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)
    Signed-off-by: Tony Nguyen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

ice: initialize ring_stats->syncp [+ + +]
Author: Jacob Keller <[email protected]>
Date:   Thu Nov 20 12:20:41 2025 -0800

    ice: initialize ring_stats->syncp
    
    [ Upstream commit 8439016c3b8b5ab687c2420317b1691585106611 ]
    
    The u64_stats_sync structure is empty on 64-bit systems. However, on 32-bit
    systems it contains a seqcount_t which needs to be initialized. While the
    memory is zero-initialized, a lack of u64_stats_init means that lockdep
    won't get initialized properly. Fix this by adding u64_stats_init() calls
    to the rings just after allocation.
    
    Fixes: 2b245cb29421 ("ice: Implement transmit and NAPI support")
    Reviewed-by: Aleksandr Loktionov <[email protected]>
    Signed-off-by: Jacob Keller <[email protected]>
    Reviewed-by: Simon Horman <[email protected]>
    Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)
    Signed-off-by: Tony Nguyen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
idpf: Fix data race in idpf_net_dim [+ + +]
Author: David Yang <[email protected]>
Date:   Tue Jan 20 00:27:16 2026 +0800

    idpf: Fix data race in idpf_net_dim
    
    [ Upstream commit 5fbe395cd1fdbc883584e7f38369e4ba5ca778d2 ]
    
    In idpf_net_dim(), some statistics protected by u64_stats_sync, are read
    and accumulated in ignorance of possible u64_stats_fetch_retry() events.
    The correct way to copy statistics is already illustrated by
    idpf_add_queue_stats(). Fix this by reading them into temporary variables
    first.
    
    Fixes: c2d548cad150 ("idpf: add TX splitq napi poll support")
    Fixes: 3a8845af66ed ("idpf: add RX splitq napi poll support")
    Signed-off-by: David Yang <[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]>

idpf: read lower clock bits inside the time sandwich [+ + +]
Author: Mina Almasry <[email protected]>
Date:   Thu Dec 11 10:19:29 2025 +0000

    idpf: read lower clock bits inside the time sandwich
    
    [ Upstream commit bdfc7b55adcd04834ccc1b6b13e55e3fd7eaa789 ]
    
    PCIe reads need to be done inside the time sandwich because PCIe
    writes may get buffered in the PCIe fabric and posted to the device
    after the _postts completes. Doing the PCIe read inside the time
    sandwich guarantees that the write gets flushed before the _postts
    timestamp is taken.
    
    Cc: [email protected]
    Cc: [email protected]
    Cc: [email protected]
    Cc: [email protected]
    Cc: [email protected]
    Cc: [email protected]
    
    Fixes: 5cb8805d2366 ("idpf: negotiate PTP capabilities and get PTP clock")
    Suggested-by: Shachar Raindel <[email protected]>
    Signed-off-by: Mina Almasry <[email protected]>
    Reviewed-by: Jacob Keller <[email protected]>
    Reviewed-by: Aleksandr Loktionov <[email protected]>
    Tested-by: Samuel Salin <[email protected]>
    Signed-off-by: Tony Nguyen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
igc: fix race condition in TX timestamp read for register 0 [+ + +]
Author: Chwee-Lin Choong <[email protected]>
Date:   Fri Nov 28 18:53:04 2025 +0800

    igc: fix race condition in TX timestamp read for register 0
    
    [ Upstream commit 6990dc392a9ab10e52af37e0bee8c7b753756dc4 ]
    
    The current HW bug workaround checks the TXTT_0 ready bit first,
    then reads TXSTMPL_0 twice (before and after reading TXSTMPH_0)
    to detect whether a new timestamp was captured by timestamp
    register 0 during the workaround.
    
    This sequence has a race: if a new timestamp is captured after
    checking the TXTT_0 bit but before the first TXSTMPL_0 read, the
    detection fails because both the "old" and "new" values come from
    the same timestamp.
    
    Fix by reading TXSTMPL_0 first to establish a baseline, then
    checking the TXTT_0 bit. This ensures any timestamp captured
    during the race window will be detected.
    
    Old sequence:
      1. Check TXTT_0 ready bit
      2. Read TXSTMPL_0 (baseline)
      3. Read TXSTMPH_0 (interrupt workaround)
      4. Read TXSTMPL_0 (detect changes vs baseline)
    
    New sequence:
      1. Read TXSTMPL_0 (baseline)
      2. Check TXTT_0 ready bit
      3. Read TXSTMPH_0 (interrupt workaround)
      4. Read TXSTMPL_0 (detect changes vs baseline)
    
    Fixes: c789ad7cbebc ("igc: Work around HW bug causing missing timestamps")
    Suggested-by: Avi Shalev <[email protected]>
    Reviewed-by: Aleksandr Loktionov <[email protected]>
    Co-developed-by: Song Yoong Siang <[email protected]>
    Signed-off-by: Song Yoong Siang <[email protected]>
    Signed-off-by: Chwee-Lin Choong <[email protected]>
    Tested-by: Avigail Dahan <[email protected]>
    Signed-off-by: Tony Nguyen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

igc: Reduce TSN TX packet buffer from 7KB to 5KB per queue [+ + +]
Author: Chwee-Lin Choong <[email protected]>
Date:   Thu Dec 4 20:21:50 2025 +0800

    igc: Reduce TSN TX packet buffer from 7KB to 5KB per queue
    
    [ Upstream commit 8ad1b6c1e63d25f5465b7a8aa403bdcee84b86f9 ]
    
    The previous 7 KB per queue caused TX unit hangs under heavy
    timestamping load. Reducing to 5 KB avoids these hangs and matches
    the TSN recommendation in I225/I226 SW User Manual Section 7.5.4.
    
    The 8 KB "freed" by this change is currently unused. This reduction
    is not expected to impact throughput, as the i226 is PCIe-limited
    for small TSN packets rather than TX-buffer-limited.
    
    Fixes: 0d58cdc902da ("igc: optimize TX packet buffer utilization for TSN mode")
    Reported-by: Zdenek Bouska <[email protected]>
    Closes: https://lore.kernel.org/netdev/AS1PR10MB5675DBFE7CE5F2A9336ABFA4EBEAA@AS1PR10MB5675.EURPRD10.PROD.OUTLOOK.COM/
    Reviewed-by: Paul Menzel <[email protected]>
    Reviewed-by: Simon Horman <[email protected]>
    Reviewed-by: Aleksandr Loktionov <[email protected]>
    Signed-off-by: Chwee-Lin Choong <[email protected]>
    Tested-by: Avigail Dahan <[email protected]>
    Signed-off-by: Tony Nguyen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

igc: Restore default Qbv schedule when changing channels [+ + +]
Author: Kurt Kanzenbach <[email protected]>
Date:   Thu Nov 20 09:18:29 2025 +0100

    igc: Restore default Qbv schedule when changing channels
    
    [ Upstream commit 41a9a6826f20a524242a6c984845c4855f629841 ]
    
    The Multi-queue Priority (MQPRIO) and Earliest TxTime First (ETF) offloads
    utilize the Time Sensitive Networking (TSN) Tx mode. This mode is always
    coupled to IEEE 802.1Qbv time aware shaper (Qbv). Therefore, the driver
    sets a default Qbv schedule of all gates opened and a cycle time of
    1s. This schedule is set during probe.
    
    However, the following sequence of events lead to Tx issues:
    
     - Boot a dual core system
       igc_probe():
         igc_tsn_clear_schedule():
           -> Default Schedule is set
           Note: At this point the driver has allocated two Tx/Rx queues, because
           there are only two CPUs.
    
     - ethtool -L enp3s0 combined 4
       igc_ethtool_set_channels():
         igc_reinit_queues()
           -> Default schedule is gone, per Tx ring start and end time are zero
    
      - tc qdisc replace dev enp3s0 handle 100 parent root mqprio \
          num_tc 4 map 3 3 2 2 0 1 1 1 3 3 3 3 3 3 3 3 \
          queues 1@0 1@1 1@2 1@3 hw 1
        igc_tsn_offload_apply():
          igc_tsn_enable_offload():
            -> Writes zeros to IGC_STQT(i) and IGC_ENDQT(i), causing Tx to stall/fail
    
    Therefore, restore the default Qbv schedule after changing the number of
    channels.
    
    Furthermore, add a restriction to not allow queue reconfiguration when
    TSN/Qbv is enabled, because it may lead to inconsistent states.
    
    Fixes: c814a2d2d48f ("igc: Use default cycle 'start' and 'end' values for queues")
    Signed-off-by: Kurt Kanzenbach <[email protected]>
    Reviewed-by: Aleksandr Loktionov <[email protected]>
    Tested-by: Avigail Dahan <[email protected]>
    Acked-by: Vinicius Costa Gomes <[email protected]>
    Signed-off-by: Tony Nguyen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
iio: accel: adxl380: fix handling of unavailable "INT1" interrupt [+ + +]
Author: Francesco Lavra <[email protected]>
Date:   Fri Nov 28 18:21:38 2025 +0100

    iio: accel: adxl380: fix handling of unavailable "INT1" interrupt
    
    commit 4ff39d6de4bf359ec6d5cd2be34b36d077dd0a07 upstream.
    
    fwnode_irq_get_byname() returns a negative value on failure; if a negative
    value is returned, use it as `err` argument for dev_err_probe().
    While at it, add a missing trailing newline to the dev_err_probe() error
    message.
    
    Fixes: df36de13677a ("iio: accel: add ADXL380 driver")
    Signed-off-by: Francesco Lavra <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    Reviewed-by: Nuno Sá <[email protected]>
    Cc: [email protected]
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

iio: accel: iis328dq: fix gain values [+ + +]
Author: Markus Koeniger <[email protected]>
Date:   Wed Jan 7 16:32:18 2026 +0100

    iio: accel: iis328dq: fix gain values
    
    commit b8f15d1df2e73322e2112de21a4a7f3553c7fb60 upstream.
    
    The sensors IIS328DQ and H3LIS331DL share one configuration but
    H3LIS331DL has different gain parameters, configs therefore
    need to be split up.
    The gain parameters for the IIS328DQ are 0.98, 1.95 and 3.91,
    depending on the selected measurement range.
    
    See sensor manuals, chapter 2.1 "mechanical characteristics",
    parameter "Sensitivity".
    
    Datasheet: https://www.st.com/resource/en/datasheet/iis328dq.pdf
    Datasheet: https://www.st.com/resource/en/datasheet/h3lis331dl.pdf
    Fixes: 46e33707fe95 ("iio: accel: add support for IIS328DQ variant")
    Reviewed-by: Dimitri Fedrau <[email protected]>
    Signed-off-by: Markus Koeniger <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

iio: adc: ad7280a: handle spi_setup() errors in probe() [+ + +]
Author: Pavel Zhigulin <[email protected]>
Date:   Fri Nov 14 18:13:01 2025 +0300

    iio: adc: ad7280a: handle spi_setup() errors in probe()
    
    [ Upstream commit 6b39824ac4c15783787e6434449772bfb2e31214 ]
    
    The probe() function ignored the return value of spi_setup(), leaving SPI
    configuration failures undetected. If spi_setup() fails, the driver should
    stop initialization and propagate the error to the caller.
    
    Add proper error handling: check the return value of spi_setup() and return
    it on failure.
    
    Found by Linux Verification Center (linuxtesting.org) with SVACE.
    
    Fixes: 2051f25d2a26 ("iio: adc: New driver for AD7280A Lithium Ion Battery Monitoring System")
    Signed-off-by: Pavel Zhigulin <[email protected]>
    Reviewed-by: Marcelo Schmitt <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

iio: adc: ad7606: Fix incorrect type for error return variable [+ + +]
Author: Haotian Zhang <[email protected]>
Date:   Wed Dec 3 13:08:44 2025 +0800

    iio: adc: ad7606: Fix incorrect type for error return variable
    
    [ Upstream commit c5512e016817a150fd6de97fbb3e74aa799ea3c1 ]
    
    The variable ret is declared as unsigned int but is used to store return
    values from functions returning int, which may be negative error codes.
    
    Change ret from unsigned int to int.
    
    Fixes: 849cebf8dc67 ("iio: adc: ad7606: Add iio-backend support")
    Signed-off-by: Haotian Zhang <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

iio: adc: ad9467: fix ad9434 vref mask [+ + +]
Author: Tomas Melin <[email protected]>
Date:   Wed Dec 3 09:28:11 2025 +0000

    iio: adc: ad9467: fix ad9434 vref mask
    
    commit 92452b1760ff2d1d411414965d4d06f75e1bda9a upstream.
    
    The mask setting is 5 bits wide for the ad9434
    (ref. data sheet register 0x18 FLEX_VREF). Apparently the settings
    from ad9265 were copied by mistake when support for the device was added
    to the driver.
    
    Fixes: 4606d0f4b05f ("iio: adc: ad9467: add support for AD9434 high-speed ADC")
    Reviewed-by: Andy Shevchenko <[email protected]>
    Reviewed-by: Nuno Sá <[email protected]>
    Reviewed-by: David Lechner <[email protected]>
    Signed-off-by: Tomas Melin <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

iio: adc: at91-sama5d2_adc: Fix potential use-after-free in sama5d2_adc driver [+ + +]
Author: Pei Xiao <[email protected]>
Date:   Wed Oct 29 10:40:16 2025 +0800

    iio: adc: at91-sama5d2_adc: Fix potential use-after-free in sama5d2_adc driver
    
    commit dbdb442218cd9d613adeab31a88ac973f22c4873 upstream.
    
    at91_adc_interrupt can call at91_adc_touch_data_handler function
    to start the work by schedule_work(&st->touch_st.workq).
    
    If we remove the module which will call at91_adc_remove to
    make cleanup, it will free indio_dev through iio_device_unregister but
    quite a bit later. While the work mentioned above will be used. The
    sequence of operations that may lead to a UAF bug is as follows:
    
    CPU0                                      CPU1
    
                                         | at91_adc_workq_handler
    at91_adc_remove                      |
    iio_device_unregister(indio_dev)     |
    //free indio_dev a bit later         |
                                         | iio_push_to_buffers(indio_dev)
                                         | //use indio_dev
    
    Fix it by ensuring that the work is canceled before proceeding with
    the cleanup in at91_adc_remove.
    
    Fixes: 23ec2774f1cc ("iio: adc: at91-sama5d2_adc: add support for position and pressure channels")
    Signed-off-by: Pei Xiao <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

iio: adc: exynos_adc: fix OF populate on driver rebind [+ + +]
Author: Johan Hovold <[email protected]>
Date:   Fri Dec 19 12:05:45 2025 +0100

    iio: adc: exynos_adc: fix OF populate on driver rebind
    
    commit ea6b4feba85e996e840e0b661bc42793df6eb701 upstream.
    
    Since commit c6e126de43e7 ("of: Keep track of populated platform
    devices") child devices will not be created by of_platform_populate()
    if the devices had previously been deregistered individually so that the
    OF_POPULATED flag is still set in the corresponding OF nodes.
    
    Switch to using of_platform_depopulate() instead of open coding so that
    the child devices are created if the driver is rebound.
    
    Fixes: c6e126de43e7 ("of: Keep track of populated platform devices")
    Cc: [email protected]      # 3.16
    Signed-off-by: Johan Hovold <[email protected]>
    Reviewed-by: Krzysztof Kozlowski <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

iio: adc: pac1934: Fix clamped value in pac1934_reg_snapshot [+ + +]
Author: Thorsten Blum <[email protected]>
Date:   Tue Dec 2 19:13:06 2025 +0100

    iio: adc: pac1934: Fix clamped value in pac1934_reg_snapshot
    
    commit da934ef0fdff5ba21e82ec3ab3f95fe73137b0c9 upstream.
    
    The local variable 'curr_energy' was never clamped to
    PAC_193X_MIN_POWER_ACC or PAC_193X_MAX_POWER_ACC because the return
    value of clamp() was not used. Fix this by assigning the clamped value
    back to 'curr_energy'.
    
    Cc: [email protected]
    Fixes: 0fb528c8255b ("iio: adc: adding support for PAC193x")
    Signed-off-by: Thorsten Blum <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

iio: chemical: scd4x: fix reported channel endianness [+ + +]
Author: Fiona Klute <[email protected]>
Date:   Sat Dec 13 17:32:26 2025 +0100

    iio: chemical: scd4x: fix reported channel endianness
    
    commit 81d5a5366d3c20203fb9d7345e1aa46d668445a2 upstream.
    
    The driver converts values read from the sensor from BE to CPU
    endianness in scd4x_read_meas(). The result is then pushed into the
    buffer in scd4x_trigger_handler(), so on LE architectures parsing the
    buffer using the reported BE type gave wrong results.
    
    scd4x_read_raw() which provides sysfs *_raw values is not affected, it
    used the values returned by scd4x_read_meas() without further
    conversion.
    
    Fixes: 49d22b695cbb6 ("drivers: iio: chemical: Add support for Sensirion SCD4x CO2 sensor")
    Signed-off-by: Fiona Klute <[email protected]>
    Reviewed-by: David Lechner <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

iio: core: add separate lockdep class for info_exist_lock [+ + +]
Author: Rasmus Villemoes <[email protected]>
Date:   Mon Jan 26 11:53:03 2026 -0500

    iio: core: add separate lockdep class for info_exist_lock
    
    [ Upstream commit 9910159f06590c17df4fbddedaabb4c0201cc4cb ]
    
    When one iio device is a consumer of another, it is possible that
    the ->info_exist_lock of both ends up being taken when reading the
    value of the consumer device.
    
    Since they currently belong to the same lockdep class (being
    initialized in a single location with mutex_init()), that results in a
    lockdep warning
    
             CPU0
             ----
        lock(&iio_dev_opaque->info_exist_lock);
        lock(&iio_dev_opaque->info_exist_lock);
    
       *** DEADLOCK ***
    
       May be due to missing lock nesting notation
    
      4 locks held by sensors/414:
       #0: c31fd6dc (&p->lock){+.+.}-{3:3}, at: seq_read_iter+0x44/0x4e4
       #1: c4f5a1c4 (&of->mutex){+.+.}-{3:3}, at: kernfs_seq_start+0x1c/0xac
       #2: c2827548 (kn->active#34){.+.+}-{0:0}, at: kernfs_seq_start+0x30/0xac
       #3: c1dd2b68 (&iio_dev_opaque->info_exist_lock){+.+.}-{3:3}, at: iio_read_channel_processed_scale+0x24/0xd8
    
      stack backtrace:
      CPU: 0 UID: 0 PID: 414 Comm: sensors Not tainted 6.17.11 #5 NONE
      Hardware name: Generic AM33XX (Flattened Device Tree)
      Call trace:
       unwind_backtrace from show_stack+0x10/0x14
       show_stack from dump_stack_lvl+0x44/0x60
       dump_stack_lvl from print_deadlock_bug+0x2b8/0x334
       print_deadlock_bug from __lock_acquire+0x13a4/0x2ab0
       __lock_acquire from lock_acquire+0xd0/0x2c0
       lock_acquire from __mutex_lock+0xa0/0xe8c
       __mutex_lock from mutex_lock_nested+0x1c/0x24
       mutex_lock_nested from iio_read_channel_raw+0x20/0x6c
       iio_read_channel_raw from rescale_read_raw+0x128/0x1c4
       rescale_read_raw from iio_channel_read+0xe4/0xf4
       iio_channel_read from iio_read_channel_processed_scale+0x6c/0xd8
       iio_read_channel_processed_scale from iio_hwmon_read_val+0x68/0xbc
       iio_hwmon_read_val from dev_attr_show+0x18/0x48
       dev_attr_show from sysfs_kf_seq_show+0x80/0x110
       sysfs_kf_seq_show from seq_read_iter+0xdc/0x4e4
       seq_read_iter from vfs_read+0x238/0x2e4
       vfs_read from ksys_read+0x6c/0xec
       ksys_read from ret_fast_syscall+0x0/0x1c
    
    Just as the mlock_key already has its own lockdep class, add a
    lock_class_key for the info_exist mutex.
    
    Note that this has in theory been a problem since before IIO first
    left staging, but it only occurs when a chain of consumers is in use
    and that is not often done.
    
    Fixes: ac917a81117c ("staging:iio:core set the iio_dev.info pointer to null on unregister under lock.")
    Signed-off-by: Rasmus Villemoes <[email protected]>
    Reviewed-by: Peter Rosin <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

iio: core: Replace lockdep_set_class() + mutex_init() by combined call [+ + +]
Author: Andy Shevchenko <[email protected]>
Date:   Mon Jan 26 11:53:02 2026 -0500

    iio: core: Replace lockdep_set_class() + mutex_init() by combined call
    
    [ Upstream commit c76ba4b2644424b8dbacee80bb40991eac29d39e ]
    
    Replace lockdep_set_class() + mutex_init() by combined call
    mutex_init_with_key().
    
    Signed-off-by: Andy Shevchenko <[email protected]>
    Reviewed-by: Nuno Sá <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Stable-dep-of: 9910159f0659 ("iio: core: add separate lockdep class for info_exist_lock")
    Signed-off-by: Sasha Levin <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

iio: dac: ad3552r-hs: fix out-of-bound write in ad3552r_hs_write_data_source [+ + +]
Author: Miaoqian Lin <[email protected]>
Date:   Wed Jan 7 22:35:50 2026 +0800

    iio: dac: ad3552r-hs: fix out-of-bound write in ad3552r_hs_write_data_source
    
    commit 978d28136c53df38f8f0b747191930e2f95e9084 upstream.
    
    When simple_write_to_buffer() succeeds, it returns the number of bytes
    actually copied to the buffer. The code incorrectly uses 'count'
    as the index for null termination instead of the actual bytes copied.
    If count exceeds the buffer size, this leads to out-of-bounds write.
    Add a check for the count and use the return value as the index.
    
    The bug was validated using a demo module that mirrors the original
    code and was tested under QEMU.
    
    Pattern of the bug:
    - A fixed 64-byte stack buffer is filled using count.
    - If count > 64, the code still does buf[count] = '\0', causing an
    - out-of-bounds write on the stack.
    
    Steps for reproduce:
    - Opens the device node.
    - Writes 128 bytes of A to it.
    - This overflows the 64-byte stack buffer and KASAN reports the OOB.
    
    Found via static analysis. This is similar to the
    commit da9374819eb3 ("iio: backend: fix out-of-bound write")
    
    Fixes: b1c5d68ea66e ("iio: dac: ad3552r-hs: add support for internal ramp")
    Cc: [email protected]
    Signed-off-by: Miaoqian Lin <[email protected]>
    Reviewed-by: Nuno Sá <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    Reviewed-by: David Lechner <[email protected]>
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

iio: dac: ad5686: add AD5695R to ad5686_chip_info_tbl [+ + +]
Author: Kübrich, Andreas <[email protected]>
Date:   Mon Nov 17 12:35:13 2025 +0000

    iio: dac: ad5686: add AD5695R to ad5686_chip_info_tbl
    
    commit 441ac29923c9172bc5e4b2c4f52ae756192f5715 upstream.
    
    The chip info for this variant (I2C, four channels, 14 bit, internal
    reference) seems to have been left out due to oversight, so
    ad5686_chip_info_tbl[ID_AD5695R] is all zeroes. Initialisation of an
    AD5695R still succeeds, but the resulting IIO device has no channels and no
    /dev/iio:device* node.
    
    Add the missing chip info to the table.
    
    Fixes: 4177381b4401 ("iio:dac:ad5686: Add AD5671R/75R/94/94R/95R/96/96R support")
    Signed-off-by: Andreas Kübrich <[email protected]>
    Cc: [email protected]
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

iio: imu: st_lsm6dsx: fix iio_chan_spec for sensors without event detection [+ + +]
Author: Francesco Lavra <[email protected]>
Date:   Mon Dec 1 11:00:10 2025 +0100

    iio: imu: st_lsm6dsx: fix iio_chan_spec for sensors without event detection
    
    commit c34e2e2d67b3bb8d5a6d09b0d6dac845cdd13fb3 upstream.
    
    The st_lsm6dsx_acc_channels array of struct iio_chan_spec has a non-NULL
    event_spec field, indicating support for IIO events. However, event
    detection is not supported for all sensors, and if userspace tries to
    configure accelerometer wakeup events on a sensor device that does not
    support them (e.g. LSM6DS0), st_lsm6dsx_write_event() dereferences a NULL
    pointer when trying to write to the wakeup register.
    Define an additional struct iio_chan_spec array whose members have a NULL
    event_spec field, and use this array instead of st_lsm6dsx_acc_channels for
    sensors without event detection capability.
    
    Fixes: b5969abfa8b8 ("iio: imu: st_lsm6dsx: add motion events")
    Signed-off-by: Francesco Lavra <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    Acked-by: Lorenzo Bianconi <[email protected]>
    Cc: [email protected]
    Signed-off-by: Jonathan Cameron <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
Input: i8042 - add quirk for ASUS Zenbook UX425QA_UM425QA [+ + +]
Author: feng <[email protected]>
Date:   Sat Jan 24 21:44:12 2026 -0800

    Input: i8042 - add quirk for ASUS Zenbook UX425QA_UM425QA
    
    commit 2934325f56150ad8dab8ab92cbe2997242831396 upstream.
    
    The ASUS Zenbook UX425QA_UM425QA fails to initialize the keyboard after
    a cold boot.
    
    A quirk already exists for "ZenBook UX425", but some Zenbooks report
    "Zenbook" with a lowercase 'b'. Since DMI matching is case-sensitive,
    the existing quirk is not applied to these "extra special" Zenbooks.
    
    Testing confirms that this model needs the same quirks as the ZenBook
    UX425 variants.
    
    Signed-off-by: feng <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Cc: [email protected]
    Signed-off-by: Dmitry Torokhov <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

Input: i8042 - add quirks for MECHREVO Wujie 15X Pro [+ + +]
Author: gongqi <[email protected]>
Date:   Thu Jan 22 23:54:59 2026 +0800

    Input: i8042 - add quirks for MECHREVO Wujie 15X Pro
    
    commit 19a5d9ba6208e9006a2a9d5962aea4d6e427d8ab upstream.
    
    The MECHREVO Wujie 15X Pro requires several i8042 quirks to function
    correctly. Specifically, NOMUX, RESET_ALWAYS, NOLOOP, and NOPNP are
    needed to ensure the keyboard and touchpad work reliably.
    
    Signed-off-by: gongqi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Cc: [email protected]
    Signed-off-by: Dmitry Torokhov <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
intel_th: fix device leak on output open() [+ + +]
Author: Johan Hovold <[email protected]>
Date:   Mon Dec 8 16:35:23 2025 +0100

    intel_th: fix device leak on output open()
    
    commit 95fc36a234da24bbc5f476f8104a5a15f99ed3e3 upstream.
    
    Make sure to drop the reference taken when looking up the th device
    during output device open() on errors and on close().
    
    Note that a recent commit fixed the leak in a couple of open() error
    paths but not all of them, and the reference is still leaking on
    successful open().
    
    Fixes: 39f4034693b7 ("intel_th: Add driver infrastructure for Intel(R) Trace Hub devices")
    Fixes: 6d5925b667e4 ("intel_th: Fix error handling in intel_th_output_open")
    Cc: [email protected]      # 4.4: 6d5925b667e4
    Cc: Alexander Shishkin <[email protected]>
    Cc: Ma Ke <[email protected]>
    Signed-off-by: Johan Hovold <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
interconnect: debugfs: initialize src_node and dst_node to empty strings [+ + +]
Author: Georgi Djakov <[email protected]>
Date:   Fri Jan 9 14:25:23 2026 +0200

    interconnect: debugfs: initialize src_node and dst_node to empty strings
    
    [ Upstream commit 8cc27f5c6dd17dd090f3a696683f04336c162ff5 ]
    
    The debugfs_create_str() API assumes that the string pointer is either NULL
    or points to valid kmalloc() memory. Leaving the pointer uninitialized can
    cause problems.
    
    Initialize src_node and dst_node to empty strings before creating the
    debugfs entries to guarantee that reads and writes are safe.
    
    Fixes: 770c69f037c1 ("interconnect: Add debugfs test client")
    Signed-off-by: Georgi Djakov <[email protected]>
    Reviewed-by: Kuan-Wei Chiu <[email protected]>
    Tested-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]>

 
io_uring/io-wq: check IO_WQ_BIT_EXIT inside work run loop [+ + +]
Author: Jens Axboe <[email protected]>
Date:   Tue Jan 20 07:42:50 2026 -0700

    io_uring/io-wq: check IO_WQ_BIT_EXIT inside work run loop
    
    commit 10dc959398175736e495f71c771f8641e1ca1907 upstream.
    
    Currently this is checked before running the pending work. Normally this
    is quite fine, as work items either end up blocking (which will create a
    new worker for other items), or they complete fairly quickly. But syzbot
    reports an issue where io-wq takes seemingly forever to exit, and with a
    bit of debugging, this turns out to be because it queues a bunch of big
    (2GB - 4096b) reads with a /dev/msr* file. Since this file type doesn't
    support ->read_iter(), loop_rw_iter() ends up handling them. Each read
    returns 16MB of data read, which takes 20 (!!) seconds. With a bunch of
    these pending, processing the whole chain can take a long time. Easily
    longer than the syzbot uninterruptible sleep timeout of 140 seconds.
    This then triggers a complaint off the io-wq exit path:
    
    INFO: task syz.4.135:6326 blocked for more than 143 seconds.
          Not tainted syzkaller #0
          Blocked by coredump.
    "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    task:syz.4.135       state:D stack:26824 pid:6326  tgid:6324  ppid:5957   task_flags:0x400548 flags:0x00080000
    Call Trace:
     <TASK>
     context_switch kernel/sched/core.c:5256 [inline]
     __schedule+0x1139/0x6150 kernel/sched/core.c:6863
     __schedule_loop kernel/sched/core.c:6945 [inline]
     schedule+0xe7/0x3a0 kernel/sched/core.c:6960
     schedule_timeout+0x257/0x290 kernel/time/sleep_timeout.c:75
     do_wait_for_common kernel/sched/completion.c:100 [inline]
     __wait_for_common+0x2fc/0x4e0 kernel/sched/completion.c:121
     io_wq_exit_workers io_uring/io-wq.c:1328 [inline]
     io_wq_put_and_exit+0x271/0x8a0 io_uring/io-wq.c:1356
     io_uring_clean_tctx+0x10d/0x190 io_uring/tctx.c:203
     io_uring_cancel_generic+0x69c/0x9a0 io_uring/cancel.c:651
     io_uring_files_cancel include/linux/io_uring.h:19 [inline]
     do_exit+0x2ce/0x2bd0 kernel/exit.c:911
     do_group_exit+0xd3/0x2a0 kernel/exit.c:1112
     get_signal+0x2671/0x26d0 kernel/signal.c:3034
     arch_do_signal_or_restart+0x8f/0x7e0 arch/x86/kernel/signal.c:337
     __exit_to_user_mode_loop kernel/entry/common.c:41 [inline]
     exit_to_user_mode_loop+0x8c/0x540 kernel/entry/common.c:75
     __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline]
     syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline]
     syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline]
     syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline]
     do_syscall_64+0x4ee/0xf80 arch/x86/entry/syscall_64.c:100
     entry_SYSCALL_64_after_hwframe+0x77/0x7f
    RIP: 0033:0x7fa02738f749
    RSP: 002b:00007fa0281ae0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
    RAX: fffffffffffffe00 RBX: 00007fa0275e6098 RCX: 00007fa02738f749
    RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fa0275e6098
    RBP: 00007fa0275e6090 R08: 0000000000000000 R09: 0000000000000000
    R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
    R13: 00007fa0275e6128 R14: 00007fff14e4fcb0 R15: 00007fff14e4fd98
    
    There's really nothing wrong here, outside of processing these reads
    will take a LONG time. However, we can speed up the exit by checking the
    IO_WQ_BIT_EXIT inside the io_worker_handle_work() loop, as syzbot will
    exit the ring after queueing up all of these reads. Then once the first
    item is processed, io-wq will simply cancel the rest. That should avoid
    syzbot running into this complaint again.
    
    Cc: [email protected]
    Link: https://lore.kernel.org/all/[email protected]/
    Reported-by: [email protected]
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
iommu/amd: Fix error path in amd_iommu_probe_device() [+ + +]
Author: Vasant Hegde <[email protected]>
Date:   Fri Jan 16 05:53:32 2026 +0000

    iommu/amd: Fix error path in amd_iommu_probe_device()
    
    [ Upstream commit 3222b6de5145272c43a90cb8667377d676635ea0 ]
    
    Currently, the error path of amd_iommu_probe_device() unconditionally
    references dev_data, which may not be initialized if an early failure
    occurs (like iommu_init_device() fails).
    
    Move the out_err label to ensure the function exits immediately on
    failure without accessing potentially uninitialized dev_data.
    
    Fixes: 19e5cc156cb ("iommu/amd: Enable support for up to 2K interrupts per function")
    Cc: Rakuram Eswaran <[email protected]>
    Cc: Jörg Rödel <[email protected]>
    Reported-by: kernel test robot <[email protected]>
    Reported-by: Dan Carpenter <[email protected]>
    Closes: https://lore.kernel.org/r/[email protected]/
    Signed-off-by: Vasant Hegde <[email protected]>
    Signed-off-by: Joerg Roedel <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
iommu/io-pgtable-arm: fix size_t signedness bug in unmap path [+ + +]
Author: Chaitanya Kulkarni <[email protected]>
Date:   Fri Dec 19 15:28:58 2025 -0800

    iommu/io-pgtable-arm: fix size_t signedness bug in unmap path
    
    commit 374e7af67d9d9d6103c2cfc8eb32abfecf3a2fd8 upstream.
    
    __arm_lpae_unmap() returns size_t but was returning -ENOENT (negative
    error code) when encountering an unmapped PTE. Since size_t is unsigned,
    -ENOENT (typically -2) becomes a huge positive value (0xFFFFFFFFFFFFFFFE
    on 64-bit systems).
    
    This corrupted value propagates through the call chain:
      __arm_lpae_unmap() returns -ENOENT as size_t
      -> arm_lpae_unmap_pages() returns it
      -> __iommu_unmap() adds it to iova address
      -> iommu_pgsize() triggers BUG_ON due to corrupted iova
    
    This can cause IOVA address overflow in __iommu_unmap() loop and
    trigger BUG_ON in iommu_pgsize() from invalid address alignment.
    
    Fix by returning 0 instead of -ENOENT. The WARN_ON already signals
    the error condition, and returning 0 (meaning "nothing unmapped")
    is the correct semantic for size_t return type. This matches the
    behavior of other io-pgtable implementations (io-pgtable-arm-v7s,
    io-pgtable-dart) which return 0 on error conditions.
    
    Fixes: 3318f7b5cefb ("iommu/io-pgtable-arm: Add quirk to quiet WARN_ON()")
    Cc: [email protected]
    Signed-off-by: Chaitanya Kulkarni <[email protected]>
    Acked-by: Will Deacon <[email protected]>
    Reviewed-by: Jason Gunthorpe <[email protected]>
    Reviewed-by: Rob Clark <[email protected]>
    Signed-off-by: Joerg Roedel <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
ipv6: annotate data-race in ndisc_router_discovery() [+ + +]
Author: Eric Dumazet <[email protected]>
Date:   Sun Jan 18 15:29:41 2026 +0000

    ipv6: annotate data-race in ndisc_router_discovery()
    
    [ Upstream commit 9a063f96d87efc3a6cc667f8de096a3d38d74bb5 ]
    
    syzbot found that ndisc_router_discovery() could read and write
    in6_dev->ra_mtu without holding a lock [1]
    
    This looks fine, IFLA_INET6_RA_MTU is best effort.
    
    Add READ_ONCE()/WRITE_ONCE() to document the race.
    
    Note that we might also reject illegal MTU values
    (mtu < IPV6_MIN_MTU || mtu > skb->dev->mtu) in a future patch.
    
    [1]
    BUG: KCSAN: data-race in ndisc_router_discovery / ndisc_router_discovery
    
    read to 0xffff888119809c20 of 4 bytes by task 25817 on cpu 1:
      ndisc_router_discovery+0x151d/0x1c90 net/ipv6/ndisc.c:1558
      ndisc_rcv+0x2ad/0x3d0 net/ipv6/ndisc.c:1841
      icmpv6_rcv+0xe5a/0x12f0 net/ipv6/icmp.c:989
      ip6_protocol_deliver_rcu+0xb2a/0x10d0 net/ipv6/ip6_input.c:438
      ip6_input_finish+0xf0/0x1d0 net/ipv6/ip6_input.c:489
      NF_HOOK include/linux/netfilter.h:318 [inline]
      ip6_input+0x5e/0x140 net/ipv6/ip6_input.c:500
      ip6_mc_input+0x27c/0x470 net/ipv6/ip6_input.c:590
      dst_input include/net/dst.h:474 [inline]
      ip6_rcv_finish+0x336/0x340 net/ipv6/ip6_input.c:79
    ...
    
    write to 0xffff888119809c20 of 4 bytes by task 25816 on cpu 0:
      ndisc_router_discovery+0x155a/0x1c90 net/ipv6/ndisc.c:1559
      ndisc_rcv+0x2ad/0x3d0 net/ipv6/ndisc.c:1841
      icmpv6_rcv+0xe5a/0x12f0 net/ipv6/icmp.c:989
      ip6_protocol_deliver_rcu+0xb2a/0x10d0 net/ipv6/ip6_input.c:438
      ip6_input_finish+0xf0/0x1d0 net/ipv6/ip6_input.c:489
      NF_HOOK include/linux/netfilter.h:318 [inline]
      ip6_input+0x5e/0x140 net/ipv6/ip6_input.c:500
      ip6_mc_input+0x27c/0x470 net/ipv6/ip6_input.c:590
      dst_input include/net/dst.h:474 [inline]
      ip6_rcv_finish+0x336/0x340 net/ipv6/ip6_input.c:79
    ...
    
    value changed: 0x00000000 -> 0xe5400659
    
    Fixes: 49b99da2c9ce ("ipv6: add IFLA_INET6_RA_MTU to expose mtu value")
    Reported-by: syzbot <[email protected]>
    Signed-off-by: Eric Dumazet <[email protected]>
    Cc: Rocco Yue <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
ipvlan: Make the addrs_lock be per port [+ + +]
Author: Dmitry Skorodumov <[email protected]>
Date:   Mon Jan 12 17:24:06 2026 +0300

    ipvlan: Make the addrs_lock be per port
    
    [ Upstream commit d3ba32162488283c0a4c5bedd8817aec91748802 ]
    
    Make the addrs_lock be per port, not per ipvlan dev.
    
    Initial code seems to be written in the assumption,
    that any address change must occur under RTNL.
    But it is not so for the case of IPv6. So
    
    1) Introduce per-port addrs_lock.
    
    2) It was needed to fix places where it was forgotten
    to take lock (ipvlan_open/ipvlan_close)
    
    This appears to be a very minor problem though.
    Since it's highly unlikely that ipvlan_add_addr() will
    be called on 2 CPU simultaneously. But nevertheless,
    this could cause:
    
    1) False-negative of ipvlan_addr_busy(): one interface
    iterated through all port->ipvlans + ipvlan->addrs
    under some ipvlan spinlock, and another added IP
    under its own lock. Though this is only possible
    for IPv6, since looks like only ipvlan_addr6_event() can be
    called without rtnl_lock.
    
    2) Race since ipvlan_ht_addr_add(port) is called under
    different ipvlan->addrs_lock locks
    
    This should not affect performance, since add/remove IP
    is a rare situation and spinlock is not taken on fast
    paths.
    
    Fixes: 8230819494b3 ("ipvlan: use per device spinlock to protect addrs list updates")
    Signed-off-by: Dmitry Skorodumov <[email protected]>
    Reviewed-by: Paolo Abeni <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
irqchip/gic-v3-its: Avoid truncating memory addresses [+ + +]
Author: Arnd Bergmann <[email protected]>
Date:   Mon Jan 19 21:15:12 2026 +0100

    irqchip/gic-v3-its: Avoid truncating memory addresses
    
    commit 8d76a7d89c12d08382b66e2f21f20d0627d14859 upstream.
    
    On 32-bit machines with CONFIG_ARM_LPAE, it is possible for lowmem
    allocations to be backed by addresses physical memory above the 32-bit
    address limit, as found while experimenting with larger VMSPLIT
    configurations.
    
    This caused the qemu virt model to crash in the GICv3 driver, which
    allocates the 'itt' object using GFP_KERNEL. Since all memory below
    the 4GB physical address limit is in ZONE_DMA in this configuration,
    kmalloc() defaults to higher addresses for ZONE_NORMAL, and the
    ITS driver stores the physical address in a 32-bit 'unsigned long'
    variable.
    
    Change the itt_addr variable to the correct phys_addr_t type instead,
    along with all other variables in this driver that hold a physical
    address.
    
    The gicv5 driver correctly uses u64 variables, while all other irqchip
    drivers don't call virt_to_phys or similar interfaces. It's expected that
    other device drivers have similar issues, but fixing this one is
    sufficient for booting a virtio based guest.
    
    Fixes: cc2d3216f53c ("irqchip: GICv3: ITS command queue")
    Signed-off-by: Arnd Bergmann <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Reviewed-by: Marc Zyngier <[email protected]>
    Cc: [email protected]
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
irqchip/renesas-rzv2h: Prevent TINT spurious interrupt during resume [+ + +]
Author: Biju Das <[email protected]>
Date:   Tue Jan 27 17:48:15 2026 +0100

    irqchip/renesas-rzv2h: Prevent TINT spurious interrupt during resume
    
    [ Upstream commit cd4a3ced4d1cdb14ffe905657b98a91e9d239dfb ]
    
    A glitch in the edge detection circuit can cause a spurious interrupt. The
    hardware manual recommends clearing the status flag after setting the
    ICU_TSSRk register as a countermeasure.
    
    Currently, a spurious interrupt is generated on the resume path of s2idle
    for the PMIC RTC TINT interrupt due to a glitch related to unnecessary
    enabling/disabling of the TINT enable bit.
    
    Fix this issue by not setting TSSR(TINT Source) and TITSR(TINT Detection
    Method Selection) registers if the values are the same as those set
    in these registers.
    
    Fixes: 0d7605e75ac2 ("irqchip: Add RZ/V2H(P) Interrupt Control Unit (ICU) driver")
    Signed-off-by: Biju Das <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Cc: [email protected]
    Link: https://patch.msgid.link/[email protected]
    [tm: Added field_get() to avoid build error]
    Signed-off-by: Tommaso Merciai <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
kconfig: fix static linking of nconf [+ + +]
Author: Arkadiusz Kozdra <[email protected]>
Date:   Sat Jan 10 12:48:08 2026 +0100

    kconfig: fix static linking of nconf
    
    [ Upstream commit baaecfcac559bcac73206df447eb5c385fa22f2a ]
    
    When running make nconfig with a static linking host toolchain,
    the libraries are linked in an incorrect order,
    resulting in errors similar to the following:
    
    $ MAKEFLAGS='HOSTCC=cc\ -static' make nconfig
    /usr/bin/ld: /usr/lib64/gcc/x86_64-unknown-linux-gnu/14.2.1/../../../../lib64/libpanel.a(p_new.o): in function `new_panel':
    (.text+0x13): undefined reference to `_nc_panelhook_sp'
    /usr/bin/ld: (.text+0x6c): undefined reference to `_nc_panelhook_sp'
    
    Fixes: 1c5af5cf9308 ("kconfig: refactor ncurses package checks for building mconf and nconf")
    Signed-off-by: Arusekk <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    [nsc: Added comment about library order]
    Signed-off-by: Nicolas Schier <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
keys/trusted_keys: fix handle passed to tpm_buf_append_name during unseal [+ + +]
Author: Srish Srinivasan <[email protected]>
Date:   Fri Jan 23 22:25:03 2026 +0530

    keys/trusted_keys: fix handle passed to tpm_buf_append_name during unseal
    
    [ Upstream commit 6342969dafbc63597cfc221aa13c3b123c2800c5 ]
    
    TPM2_Unseal[1] expects the handle of a loaded data object, and not the
    handle of the parent key. But the tpm2_unseal_cmd provides the parent
    keyhandle instead of blob_handle for the session HMAC calculation. This
    causes unseal to fail.
    
    Fix this by passing blob_handle to tpm_buf_append_name().
    
    References:
    
    [1] trustedcomputinggroup.org/wp-content/uploads/
        Trusted-Platform-Module-2.0-Library-Part-3-Version-184_pub.pdf
    
    Fixes: 6e9722e9a7bf ("tpm2-sessions: Fix out of range indexing in name_size")
    Signed-off-by: Srish Srinivasan <[email protected]>
    Reviewed-by: Stefan Berger <[email protected]>
    Reviewed-by: Jarkko Sakkinen <[email protected]>
    Signed-off-by: Jarkko Sakkinen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
ksmbd: smbd: fix dma_unmap_sg() nents [+ + +]
Author: Thomas Fourier <[email protected]>
Date:   Fri Jan 9 11:38:39 2026 +0100

    ksmbd: smbd: fix dma_unmap_sg() nents
    
    commit 98e3e2b561bc88f4dd218d1c05890672874692f6 upstream.
    
    The dma_unmap_sg() functions should be called with the same nents as the
    dma_map_sg(), not the value the map function returned.
    
    Fixes: 0626e6641f6b ("cifsd: add server handler for central processing and tranport layers")
    Cc: <[email protected]>
    Signed-off-by: Thomas Fourier <[email protected]>
    Acked-by: Namjae Jeon <[email protected]>
    Signed-off-by: Steve French <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
l2tp: avoid one data-race in l2tp_tunnel_del_work() [+ + +]
Author: Eric Dumazet <[email protected]>
Date:   Thu Jan 15 09:21:39 2026 +0000

    l2tp: avoid one data-race in l2tp_tunnel_del_work()
    
    [ Upstream commit 7a29f6bf60f2590fe5e9c4decb451e19afad2bcf ]
    
    We should read sk->sk_socket only when dealing with kernel sockets.
    
    syzbot reported the following data-race:
    
    BUG: KCSAN: data-race in l2tp_tunnel_del_work / sk_common_release
    
    write to 0xffff88811c182b20 of 8 bytes by task 5365 on cpu 0:
      sk_set_socket include/net/sock.h:2092 [inline]
      sock_orphan include/net/sock.h:2118 [inline]
      sk_common_release+0xae/0x230 net/core/sock.c:4003
      udp_lib_close+0x15/0x20 include/net/udp.h:325
      inet_release+0xce/0xf0 net/ipv4/af_inet.c:437
      __sock_release net/socket.c:662 [inline]
      sock_close+0x6b/0x150 net/socket.c:1455
      __fput+0x29b/0x650 fs/file_table.c:468
      ____fput+0x1c/0x30 fs/file_table.c:496
      task_work_run+0x131/0x1a0 kernel/task_work.c:233
      resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
      __exit_to_user_mode_loop kernel/entry/common.c:44 [inline]
      exit_to_user_mode_loop+0x1fe/0x740 kernel/entry/common.c:75
      __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline]
      syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline]
      syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline]
      syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline]
      do_syscall_64+0x1e1/0x2b0 arch/x86/entry/syscall_64.c:100
     entry_SYSCALL_64_after_hwframe+0x77/0x7f
    
    read to 0xffff88811c182b20 of 8 bytes by task 827 on cpu 1:
      l2tp_tunnel_del_work+0x2f/0x1a0 net/l2tp/l2tp_core.c:1418
      process_one_work kernel/workqueue.c:3257 [inline]
      process_scheduled_works+0x4ce/0x9d0 kernel/workqueue.c:3340
      worker_thread+0x582/0x770 kernel/workqueue.c:3421
      kthread+0x489/0x510 kernel/kthread.c:463
      ret_from_fork+0x149/0x290 arch/x86/kernel/process.c:158
      ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246
    
    value changed: 0xffff88811b818000 -> 0x0000000000000000
    
    Fixes: d00fa9adc528 ("l2tp: fix races with tunnel socket close")
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/netdev/[email protected]/T/#u
    Signed-off-by: Eric Dumazet <[email protected]>
    Cc: James Chapman <[email protected]>
    Reviewed-by: Guillaume Nault <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

l2tp: Fix memleak in l2tp_udp_encap_recv(). [+ + +]
Author: Kuniyuki Iwashima <[email protected]>
Date:   Tue Jan 13 18:54:44 2026 +0000

    l2tp: Fix memleak in l2tp_udp_encap_recv().
    
    [ Upstream commit 4d10edfd1475b69dbd4c47f34b61a3772ece83ca ]
    
    syzbot reported memleak of struct l2tp_session, l2tp_tunnel,
    sock, etc. [0]
    
    The cited commit moved down the validation of the protocol
    version in l2tp_udp_encap_recv().
    
    The new place requires an extra error handling to avoid the
    memleak.
    
    Let's call l2tp_session_put() there.
    
    [0]:
    BUG: memory leak
    unreferenced object 0xffff88810a290200 (size 512):
      comm "syz.0.17", pid 6086, jiffies 4294944299
      hex dump (first 32 bytes):
        7d eb 04 0c 00 00 00 00 01 00 00 00 00 00 00 00  }...............
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
      backtrace (crc babb6a4f):
        kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
        slab_post_alloc_hook mm/slub.c:4958 [inline]
        slab_alloc_node mm/slub.c:5263 [inline]
        __do_kmalloc_node mm/slub.c:5656 [inline]
        __kmalloc_noprof+0x3e0/0x660 mm/slub.c:5669
        kmalloc_noprof include/linux/slab.h:961 [inline]
        kzalloc_noprof include/linux/slab.h:1094 [inline]
        l2tp_session_create+0x3a/0x3b0 net/l2tp/l2tp_core.c:1778
        pppol2tp_connect+0x48b/0x920 net/l2tp/l2tp_ppp.c:755
        __sys_connect_file+0x7a/0xb0 net/socket.c:2089
        __sys_connect+0xde/0x110 net/socket.c:2108
        __do_sys_connect net/socket.c:2114 [inline]
        __se_sys_connect net/socket.c:2111 [inline]
        __x64_sys_connect+0x1c/0x30 net/socket.c:2111
        do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
        do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94
        entry_SYSCALL_64_after_hwframe+0x77/0x7f
    
    Fixes: 364798056f518 ("l2tp: Support different protocol versions with same IP/port quadruple")
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/netdev/[email protected]/
    Signed-off-by: Kuniyuki Iwashima <[email protected]>
    Reviewed-by: Guillaume Nault <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
leds: led-class: Only Add LED to leds_list when it is fully ready [+ + +]
Author: Hans de Goede <[email protected]>
Date:   Thu Dec 11 17:37:27 2025 +0100

    leds: led-class: Only Add LED to leds_list when it is fully ready
    
    commit d1883cefd31752f0504b94c3bcfa1f6d511d6e87 upstream.
    
    Before this change the LED was added to leds_list before led_init_core()
    gets called adding it the list before led_classdev.set_brightness_work gets
    initialized.
    
    This leaves a window where led_trigger_register() of a LED's default
    trigger will call led_trigger_set() which calls led_set_brightness()
    which in turn will end up queueing the *uninitialized*
    led_classdev.set_brightness_work.
    
    This race gets hit by the lenovo-thinkpad-t14s EC driver which registers
    2 LEDs with a default trigger provided by snd_ctl_led.ko in quick
    succession. The first led_classdev_register() causes an async modprobe of
    snd_ctl_led to run and that async modprobe manages to exactly hit
    the window where the second LED is on the leds_list without led_init_core()
    being called for it, resulting in:
    
     ------------[ cut here ]------------
     WARNING: CPU: 11 PID: 5608 at kernel/workqueue.c:4234 __flush_work+0x344/0x390
     Hardware name: LENOVO 21N2S01F0B/21N2S01F0B, BIOS N42ET93W (2.23 ) 09/01/2025
     ...
     Call trace:
      __flush_work+0x344/0x390 (P)
      flush_work+0x2c/0x50
      led_trigger_set+0x1c8/0x340
      led_trigger_register+0x17c/0x1c0
      led_trigger_register_simple+0x84/0xe8
      snd_ctl_led_init+0x40/0xf88 [snd_ctl_led]
      do_one_initcall+0x5c/0x318
      do_init_module+0x9c/0x2b8
      load_module+0x7e0/0x998
    
    Close the race window by moving the adding of the LED to leds_list to
    after the led_init_core() call.
    
    Cc: [email protected]
    Fixes: d23a22a74fde ("leds: delay led_set_brightness if stopping soft-blink")
    Signed-off-by: Hans de Goede <[email protected]>
    Reviewed-by: Sebastian Reichel <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Lee Jones <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
Linux: Linux 6.18.8 [+ + +]
Author: Greg Kroah-Hartman <[email protected]>
Date:   Fri Jan 30 10:32:28 2026 +0100

    Linux 6.18.8
    
    Link: https://lore.kernel.org/r/[email protected]
    Tested-by: Brett A C Sheffield <[email protected]>
    Tested-by: Salvatore Bonaccorso <[email protected]>
    Tested-by: Florian Fainelli <[email protected]>
    Tested-by: Shung-Hsi Yu <[email protected]>
    Tested-by: Takeshi Ogasawara <[email protected]>
    Tested-by: Peter Schneider <[email protected]>
    Tested-by: Slade Watkins <[email protected]>
    Tested-by: Jon Hunter <[email protected]>
    Tested-by: Ron Economos <[email protected]>
    Tested-by: Mark Brown <[email protected]>
    Tested-by: Brett Mastbergen <[email protected]>
    Tested-by: Hardik Garg <[email protected]>
    Tested-by: Miguel Ojeda <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
mei: trace: treat reg parameter as string [+ + +]
Author: Alexander Usyskin <[email protected]>
Date:   Sun Jan 11 16:51:25 2026 +0200

    mei: trace: treat reg parameter as string
    
    commit 06d5a7afe1d0b47102936d8fba568572c2b4b941 upstream.
    
    The commit
    afd2627f727b ("tracing: Check "%s" dereference via the field and not the TP_printk format")
    forbids to emit event with a plain char* without a wrapper.
    
    The reg parameter always passed as static string and wrapper
    is not strictly required, contrary to dev parameter.
    Use the string wrapper anyway to check sanity of the reg parameters,
    store it value independently and prevent internal kernel data leaks.
    
    Since some code refactoring has taken place, explicit backporting may
    be needed for kernels older than 6.10.
    
    Cc: [email protected]  # v6.11+
    Fixes: a0a927d06d79 ("mei: me: add io register tracing")
    Signed-off-by: Alexander Usyskin <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
migrate: correct lock ordering for hugetlb file folios [+ + +]
Author: Matthew Wilcox (Oracle) <[email protected]>
Date:   Fri Jan 9 04:13:42 2026 +0000

    migrate: correct lock ordering for hugetlb file folios
    
    commit b7880cb166ab62c2409046b2347261abf701530e upstream.
    
    Syzbot has found a deadlock (analyzed by Lance Yang):
    
    1) Task (5749): Holds folio_lock, then tries to acquire i_mmap_rwsem(read lock).
    2) Task (5754): Holds i_mmap_rwsem(write lock), then tries to acquire
    folio_lock.
    
    migrate_pages()
      -> migrate_hugetlbs()
        -> unmap_and_move_huge_page()     <- Takes folio_lock!
          -> remove_migration_ptes()
            -> __rmap_walk_file()
              -> i_mmap_lock_read()       <- Waits for i_mmap_rwsem(read lock)!
    
    hugetlbfs_fallocate()
      -> hugetlbfs_punch_hole()           <- Takes i_mmap_rwsem(write lock)!
        -> hugetlbfs_zero_partial_page()
         -> filemap_lock_hugetlb_folio()
          -> filemap_lock_folio()
            -> __filemap_get_folio        <- Waits for folio_lock!
    
    The migration path is the one taking locks in the wrong order according to
    the documentation at the top of mm/rmap.c.  So expand the scope of the
    existing i_mmap_lock to cover the calls to remove_migration_ptes() too.
    
    This is (mostly) how it used to be after commit c0d0381ade79.  That was
    removed by 336bf30eb765 for both file & anon hugetlb pages when it should
    only have been removed for anon hugetlb pages.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
    Fixes: 336bf30eb765 ("hugetlbfs: fix anon huge page migration race")
    Reported-by: [email protected]
    Link: https://lore.kernel.org/all/[email protected]
    Debugged-by: Lance Yang <[email protected]>
    Acked-by: David Hildenbrand (Red Hat) <[email protected]>
    Acked-by: Zi Yan <[email protected]>
    Cc: Alistair Popple <[email protected]>
    Cc: Byungchul Park <[email protected]>
    Cc: Gregory Price <[email protected]>
    Cc: Jann Horn <[email protected]>
    Cc: Joshua Hahn <[email protected]>
    Cc: Liam Howlett <[email protected]>
    Cc: Lorenzo Stoakes <[email protected]>
    Cc: Matthew Brost <[email protected]>
    Cc: Rakie Kim <[email protected]>
    Cc: Rik van Riel <[email protected]>
    Cc: Vlastimil Babka <[email protected]>
    Cc: Ying Huang <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
mISDN: annotate data-race around dev->work [+ + +]
Author: Eric Dumazet <[email protected]>
Date:   Sun Jan 18 13:25:28 2026 +0000

    mISDN: annotate data-race around dev->work
    
    [ Upstream commit 8175dbf174d487afab81e936a862a8d9b8a1ccb6 ]
    
    dev->work can re read locklessly in mISDN_read()
    and mISDN_poll(). Add READ_ONCE()/WRITE_ONCE() annotations.
    
    BUG: KCSAN: data-race in mISDN_ioctl / mISDN_read
    
    write to 0xffff88812d848280 of 4 bytes by task 10864 on cpu 1:
      misdn_add_timer drivers/isdn/mISDN/timerdev.c:175 [inline]
      mISDN_ioctl+0x2fb/0x550 drivers/isdn/mISDN/timerdev.c:233
      vfs_ioctl fs/ioctl.c:51 [inline]
      __do_sys_ioctl fs/ioctl.c:597 [inline]
      __se_sys_ioctl+0xce/0x140 fs/ioctl.c:583
      __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:583
      x64_sys_call+0x14b0/0x3000 arch/x86/include/generated/asm/syscalls_64.h:17
      do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
      do_syscall_64+0xd8/0x2c0 arch/x86/entry/syscall_64.c:94
     entry_SYSCALL_64_after_hwframe+0x77/0x7f
    
    read to 0xffff88812d848280 of 4 bytes by task 10857 on cpu 0:
      mISDN_read+0x1f2/0x470 drivers/isdn/mISDN/timerdev.c:112
      do_loop_readv_writev fs/read_write.c:847 [inline]
      vfs_readv+0x3fb/0x690 fs/read_write.c:1020
      do_readv+0xe7/0x210 fs/read_write.c:1080
      __do_sys_readv fs/read_write.c:1165 [inline]
      __se_sys_readv fs/read_write.c:1162 [inline]
      __x64_sys_readv+0x45/0x50 fs/read_write.c:1162
      x64_sys_call+0x2831/0x3000 arch/x86/include/generated/asm/syscalls_64.h:20
      do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
      do_syscall_64+0xd8/0x2c0 arch/x86/entry/syscall_64.c:94
     entry_SYSCALL_64_after_hwframe+0x77/0x7f
    
    value changed: 0x00000000 -> 0x00000001
    
    Fixes: 1b2b03f8e514 ("Add mISDN core files")
    Reported-by: syzbot <[email protected]>
    Signed-off-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]>

 
mm/hugetlb: fix hugetlb_pmd_shared() [+ + +]
Author: David Hildenbrand (Red Hat) <[email protected]>
Date:   Tue Dec 23 22:40:34 2025 +0100

    mm/hugetlb: fix hugetlb_pmd_shared()
    
    commit ca1a47cd3f5f4c46ca188b1c9a27af87d1ab2216 upstream.
    
    Patch series "mm/hugetlb: fixes for PMD table sharing (incl.  using
    mmu_gather)", v3.
    
    One functional fix, one performance regression fix, and two related
    comment fixes.
    
    I cleaned up my prototype I recently shared [1] for the performance fix,
    deferring most of the cleanups I had in the prototype to a later point.
    While doing that I identified the other things.
    
    The goal of this patch set is to be backported to stable trees "fairly"
    easily. At least patch #1 and #4.
    
    Patch #1 fixes hugetlb_pmd_shared() not detecting any sharing
    Patch #2 + #3 are simple comment fixes that patch #4 interacts with.
    Patch #4 is a fix for the reported performance regression due to excessive
    IPI broadcasts during fork()+exit().
    
    The last patch is all about TLB flushes, IPIs and mmu_gather.
    Read: complicated
    
    There are plenty of cleanups in the future to be had + one reasonable
    optimization on x86. But that's all out of scope for this series.
    
    Runtime tested, with a focus on fixing the performance regression using
    the original reproducer [2] on x86.
    
    
    This patch (of 4):
    
    We switched from (wrongly) using the page count to an independent shared
    count.  Now, shared page tables have a refcount of 1 (excluding
    speculative references) and instead use ptdesc->pt_share_count to identify
    sharing.
    
    We didn't convert hugetlb_pmd_shared(), so right now, we would never
    detect a shared PMD table as such, because sharing/unsharing no longer
    touches the refcount of a PMD table.
    
    Page migration, like mbind() or migrate_pages() would allow for migrating
    folios mapped into such shared PMD tables, even though the folios are not
    exclusive.  In smaps we would account them as "private" although they are
    "shared", and we would be wrongly setting the PM_MMAP_EXCLUSIVE in the
    pagemap interface.
    
    Fix it by properly using ptdesc_pmd_is_shared() in hugetlb_pmd_shared().
    
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lore.kernel.org/all/[email protected]/ [1]
    Link: https://lore.kernel.org/all/[email protected]/ [2]
    Fixes: 59d9094df3d7 ("mm: hugetlb: independent PMD page table shared count")
    Signed-off-by: David Hildenbrand (Red Hat) <[email protected]>
    Reviewed-by: Rik van Riel <[email protected]>
    Reviewed-by: Lance Yang <[email protected]>
    Tested-by: Lance Yang <[email protected]>
    Reviewed-by: Harry Yoo <[email protected]>
    Tested-by: Laurence Oberman <[email protected]>
    Reviewed-by: Lorenzo Stoakes <[email protected]>
    Acked-by: Oscar Salvador <[email protected]>
    Cc: Liu Shixin <[email protected]>
    Cc: Uschakow, Stanislav" <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

mm/hugetlb: fix two comments related to huge_pmd_unshare() [+ + +]
Author: David Hildenbrand (Red Hat) <[email protected]>
Date:   Mon Jan 26 14:12:21 2026 -0500

    mm/hugetlb: fix two comments related to huge_pmd_unshare()
    
    [ Upstream commit 3937027caecb4f8251e82dd857ba1d749bb5a428 ]
    
    Ever since we stopped using the page count to detect shared PMD page
    tables, these comments are outdated.
    
    The only reason we have to flush the TLB early is because once we drop the
    i_mmap_rwsem, the previously shared page table could get freed (to then
    get reallocated and used for other purpose).  So we really have to flush
    the TLB before that could happen.
    
    So let's simplify the comments a bit.
    
    The "If we unshared PMDs, the TLB flush was not recorded in mmu_gather."
    part introduced as in commit a4a118f2eead ("hugetlbfs: flush TLBs
    correctly after huge_pmd_unshare") was confusing: sure it is recorded in
    the mmu_gather, otherwise tlb_flush_mmu_tlbonly() wouldn't do anything.
    So let's drop that comment while at it as well.
    
    We'll centralize these comments in a single helper as we rework the code
    next.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Fixes: 59d9094df3d7 ("mm: hugetlb: independent PMD page table shared count")
    Signed-off-by: David Hildenbrand (Red Hat) <[email protected]>
    Reviewed-by: Rik van Riel <[email protected]>
    Tested-by: Laurence Oberman <[email protected]>
    Reviewed-by: Lorenzo Stoakes <[email protected]>
    Acked-by: Oscar Salvador <[email protected]>
    Reviewed-by: Harry Yoo <[email protected]>
    Cc: Liu Shixin <[email protected]>
    Cc: Lance Yang <[email protected]>
    Cc: "Uschakow, Stanislav" <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
mm/rmap: fix two comments related to huge_pmd_unshare() [+ + +]
Author: David Hildenbrand (Red Hat) <[email protected]>
Date:   Tue Dec 23 22:40:36 2025 +0100

    mm/rmap: fix two comments related to huge_pmd_unshare()
    
    commit a8682d500f691b6dfaa16ae1502d990aeb86e8be upstream.
    
    PMD page table unsharing no longer touches the refcount of a PMD page
    table.  Also, it is not about dropping the refcount of a "PMD page" but
    the "PMD page table".
    
    Let's just simplify by saying that the PMD page table was unmapped,
    consequently also unmapping the folio that was mapped into this page.
    
    This code should be deduplicated in the future.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Fixes: 59d9094df3d7 ("mm: hugetlb: independent PMD page table shared count")
    Signed-off-by: David Hildenbrand (Red Hat) <[email protected]>
    Reviewed-by: Rik van Riel <[email protected]>
    Tested-by: Laurence Oberman <[email protected]>
    Reviewed-by: Lorenzo Stoakes <[email protected]>
    Acked-by: Oscar Salvador <[email protected]>
    Cc: Liu Shixin <[email protected]>
    Cc: Harry Yoo <[email protected]>
    Cc: Lance Yang <[email protected]>
    Cc: "Uschakow, Stanislav" <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
mm/vma: enforce VMA fork limit on unfaulted,faulted mremap merge too [+ + +]
Author: Lorenzo Stoakes <[email protected]>
Date:   Thu Jan 22 19:00:22 2026 +0000

    mm/vma: enforce VMA fork limit on unfaulted,faulted mremap merge too
    
    [ Upstream commit 3b617fd3d317bf9dd7e2c233e56eafef05734c9d ]
    
    The is_mergeable_anon_vma() function uses vmg->middle as the source VMA.
    However when merging a new VMA, this field is NULL.
    
    In all cases except mremap(), the new VMA will either be newly established
    and thus lack an anon_vma, or will be an expansion of an existing VMA thus
    we do not care about whether VMA is CoW'd or not.
    
    In the case of an mremap(), we can end up in a situation where we can
    accidentally allow an unfaulted/faulted merge with a VMA that has been
    forked, violating the general rule that we do not permit this for reasons
    of anon_vma lock scalability.
    
    Now we have the ability to be aware of the fact we are copying a VMA and
    also know which VMA that is, we can explicitly check for this, so do so.
    
    This is pertinent since commit 879bca0a2c4f ("mm/vma: fix incorrectly
    disallowed anonymous VMA merges"), as this patch permits unfaulted/faulted
    merges that were previously disallowed running afoul of this issue.
    
    While we are here, vma_had_uncowed_parents() is a confusing name, so make
    it simple and rename it to vma_is_fork_child().
    
    Link: https://lkml.kernel.org/r/6e2b9b3024ae1220961c8b81d74296d4720eaf2b.1767638272.git.lorenzo.stoakes@oracle.com
    Fixes: 879bca0a2c4f ("mm/vma: fix incorrectly disallowed anonymous VMA merges")
    Signed-off-by: Lorenzo Stoakes <[email protected]>
    Reviewed-by: Harry Yoo <[email protected]>
    Reviewed-by: Jeongjun Park <[email protected]>
    Acked-by: Vlastimil Babka <[email protected]>
    Cc: David Hildenbrand (Red Hat) <[email protected]>
    Cc: Jann Horn <[email protected]>
    Cc: Liam Howlett <[email protected]>
    Cc: Pedro Falcato <[email protected]>
    Cc: Rik van Riel <[email protected]>
    Cc: Yeoreum Yun <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    [ with upstream commit 61f67c230a5e backported, this simply applied correctly. Built + tested ]
    Signed-off-by: Lorenzo Stoakes <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

mm/vma: fix anon_vma UAF on mremap() faulted, unfaulted merge [+ + +]
Author: Lorenzo Stoakes <[email protected]>
Date:   Thu Jan 22 19:00:21 2026 +0000

    mm/vma: fix anon_vma UAF on mremap() faulted, unfaulted merge
    
    [ upstream commit 61f67c230a5e7c741c352349ea80147fbe65bfae ]
    
    Patch series "mm/vma: fix anon_vma UAF on mremap() faulted, unfaulted
    merge", v2.
    
    Commit 879bca0a2c4f ("mm/vma: fix incorrectly disallowed anonymous VMA
    merges") introduced the ability to merge previously unavailable VMA merge
    scenarios.
    
    However, it is handling merges incorrectly when it comes to mremap() of a
    faulted VMA adjacent to an unfaulted VMA.  The issues arise in three
    cases:
    
    1. Previous VMA unfaulted:
    
                  copied -----|
                              v
            |-----------|.............|
            | unfaulted |(faulted VMA)|
            |-----------|.............|
                 prev
    
    2. Next VMA unfaulted:
    
                  copied -----|
                              v
                        |.............|-----------|
                        |(faulted VMA)| unfaulted |
                        |.............|-----------|
                                          next
    
    3. Both adjacent VMAs unfaulted:
    
                  copied -----|
                              v
            |-----------|.............|-----------|
            | unfaulted |(faulted VMA)| unfaulted |
            |-----------|.............|-----------|
                 prev                      next
    
    This series fixes each of these cases, and introduces self tests to assert
    that the issues are corrected.
    
    I also test a further case which was already handled, to assert that my
    changes continues to correctly handle it:
    
    4. prev unfaulted, next faulted:
    
                  copied -----|
                              v
            |-----------|.............|-----------|
            | unfaulted |(faulted VMA)|  faulted  |
            |-----------|.............|-----------|
                 prev                      next
    
    This bug was discovered via a syzbot report, linked to in the first patch
    in the series, I confirmed that this series fixes the bug.
    
    I also discovered that we are failing to check that the faulted VMA was
    not forked when merging a copied VMA in cases 1-3 above, an issue this
    series also addresses.
    
    I also added self tests to assert that this is resolved (and confirmed
    that the tests failed prior to this).
    
    I also cleaned up vma_expand() as part of this work, renamed
    vma_had_uncowed_parents() to vma_is_fork_child() as the previous name was
    unduly confusing, and simplified the comments around this function.
    
    This patch (of 4):
    
    Commit 879bca0a2c4f ("mm/vma: fix incorrectly disallowed anonymous VMA
    merges") introduced the ability to merge previously unavailable VMA merge
    scenarios.
    
    The key piece of logic introduced was the ability to merge a faulted VMA
    immediately next to an unfaulted VMA, which relies upon dup_anon_vma() to
    correctly handle anon_vma state.
    
    In the case of the merge of an existing VMA (that is changing properties
    of a VMA and then merging if those properties are shared by adjacent
    VMAs), dup_anon_vma() is invoked correctly.
    
    However in the case of the merge of a new VMA, a corner case peculiar to
    mremap() was missed.
    
    The issue is that vma_expand() only performs dup_anon_vma() if the target
    (the VMA that will ultimately become the merged VMA): is not the next VMA,
    i.e.  the one that appears after the range in which the new VMA is to be
    established.
    
    A key insight here is that in all other cases other than mremap(), a new
    VMA merge either expands an existing VMA, meaning that the target VMA will
    be that VMA, or would have anon_vma be NULL.
    
    Specifically:
    
    * __mmap_region() - no anon_vma in place, initial mapping.
    * do_brk_flags() - expanding an existing VMA.
    * vma_merge_extend() - expanding an existing VMA.
    * relocate_vma_down() - no anon_vma in place, initial mapping.
    
    In addition, we are in the unique situation of needing to duplicate
    anon_vma state from a VMA that is neither the previous or next VMA being
    merged with.
    
    dup_anon_vma() deals exclusively with the target=unfaulted, src=faulted
    case.  This leaves four possibilities, in each case where the copied VMA
    is faulted:
    
    1. Previous VMA unfaulted:
    
                  copied -----|
                              v
            |-----------|.............|
            | unfaulted |(faulted VMA)|
            |-----------|.............|
                 prev
    
    target = prev, expand prev to cover.
    
    2. Next VMA unfaulted:
    
                  copied -----|
                              v
                        |.............|-----------|
                        |(faulted VMA)| unfaulted |
                        |.............|-----------|
                                          next
    
    target = next, expand next to cover.
    
    3. Both adjacent VMAs unfaulted:
    
                  copied -----|
                              v
            |-----------|.............|-----------|
            | unfaulted |(faulted VMA)| unfaulted |
            |-----------|.............|-----------|
                 prev                      next
    
    target = prev, expand prev to cover.
    
    4. prev unfaulted, next faulted:
    
                  copied -----|
                              v
            |-----------|.............|-----------|
            | unfaulted |(faulted VMA)|  faulted  |
            |-----------|.............|-----------|
                 prev                      next
    
    target = prev, expand prev to cover.  Essentially equivalent to 3, but
    with additional requirement that next's anon_vma is the same as the copied
    VMA's.  This is covered by the existing logic.
    
    To account for this very explicitly, we introduce
    vma_merge_copied_range(), which sets a newly introduced vmg->copied_from
    field, then invokes vma_merge_new_range() which handles the rest of the
    logic.
    
    We then update the key vma_expand() function to clean up the logic and
    make what's going on clearer, making the 'remove next' case less special,
    before invoking dup_anon_vma() unconditionally should we be copying from a
    VMA.
    
    Note that in case 3, the if (remove_next) ...  branch will be a no-op, as
    next=src in this instance and src is unfaulted.
    
    In case 4, it won't be, but since in this instance next=src and it is
    faulted, this will have required tgt=faulted, src=faulted to be
    compatible, meaning that next->anon_vma == vmg->copied_from->anon_vma, and
    thus a single dup_anon_vma() of next suffices to copy anon_vma state for
    the copied-from VMA also.
    
    If we are copying from a VMA in a successful merge we must _always_
    propagate anon_vma state.
    
    This issue can be observed most directly by invoked mremap() to move
    around a VMA and cause this kind of merge with the MREMAP_DONTUNMAP flag
    specified.
    
    This will result in unlink_anon_vmas() being called after failing to
    duplicate anon_vma state to the target VMA, which results in the anon_vma
    itself being freed with folios still possessing dangling pointers to the
    anon_vma and thus a use-after-free bug.
    
    This bug was discovered via a syzbot report, which this patch resolves.
    
    We further make a change to update the mergeable anon_vma check to assert
    the copied-from anon_vma did not have CoW parents, as otherwise
    dup_anon_vma() might incorrectly propagate CoW ancestors from the next VMA
    in case 4 despite the anon_vma's being identical for both VMAs.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Link: https://lkml.kernel.org/r/b7930ad2b1503a657e29fe928eb33061d7eadf5b.1767638272.git.lorenzo.stoakes@oracle.com
    Signed-off-by: Lorenzo Stoakes <[email protected]>
    Fixes: 879bca0a2c4f ("mm/vma: fix incorrectly disallowed anonymous VMA merges")
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/all/[email protected]/
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/all/[email protected]/
    Reviewed-by: Harry Yoo <[email protected]>
    Reviewed-by: Jeongjun Park <[email protected]>
    Acked-by: Vlastimil Babka <[email protected]>
    Cc: David Hildenbrand (Red Hat) <[email protected]>
    Cc: Jann Horn <[email protected]>
    Cc: Yeoreum Yun <[email protected]>
    Cc: Liam Howlett <[email protected]>
    Cc: Liam R. Howlett <[email protected]>
    Cc: Pedro Falcato <[email protected]>
    Cc: Rik van Riel <[email protected]>
    Cc: [email protected]
    Signed-off-by: Andrew Morton <[email protected]>
    [ updated to account for lack of sticky VMA flags + built, tested confirmed working ]
    Signed-off-by: Lorenzo Stoakes <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
mm: fix some typos in mm module [+ + +]
Author: jianyun.gao <[email protected]>
Date:   Mon Jan 26 14:12:20 2026 -0500

    mm: fix some typos in mm module
    
    [ Upstream commit b6c46600bfb28b4be4e9cff7bad4f2cf357e0fb7 ]
    
    Below are some typos in the code comments:
    
      intevals ==> intervals
      addesses ==> addresses
      unavaliable ==> unavailable
      facor ==> factor
      droping ==> dropping
      exlusive ==> exclusive
      decription ==> description
      confict ==> conflict
      desriptions ==> descriptions
      otherwize ==> otherwise
      vlaue ==> value
      cheching ==> checking
      exisitng ==> existing
      modifed ==> modified
      differenciate ==> differentiate
      refernece ==> reference
      permissons ==> permissions
      indepdenent ==> independent
      spliting ==> splitting
    
    Just fix it.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Signed-off-by: jianyun.gao <[email protected]>
    Reviewed-by: SeongJae Park <[email protected]>
    Reviewed-by: Wei Yang <[email protected]>
    Reviewed-by: Dev Jain <[email protected]>
    Reviewed-by: Liam R. Howlett <[email protected]>
    Acked-by: Chris Li <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Stable-dep-of: 3937027caecb ("mm/hugetlb: fix two comments related to huge_pmd_unshare()")
    Signed-off-by: Sasha Levin <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

mm: restore per-memcg proactive reclaim with !CONFIG_NUMA [+ + +]
Author: Yosry Ahmed <[email protected]>
Date:   Fri Jan 16 20:52:47 2026 +0000

    mm: restore per-memcg proactive reclaim with !CONFIG_NUMA
    
    commit 16aca2c98a6fdf071e5a1a765a295995d7c7e346 upstream.
    
    Commit 2b7226af730c ("mm/memcg: make memory.reclaim interface generic")
    moved proactive reclaim logic from memory.reclaim handler to a generic
    user_proactive_reclaim() helper to be used for per-node proactive reclaim.
    
    However, user_proactive_reclaim() was only defined under CONFIG_NUMA, with
    a stub always returning 0 otherwise.  This broke memory.reclaim on
    !CONFIG_NUMA configs, causing it to report success without actually
    attempting reclaim.
    
    Move the definition of user_proactive_reclaim() outside CONFIG_NUMA, and
    instead define a stub for __node_reclaim() in the !CONFIG_NUMA case.
    __node_reclaim() is only called from user_proactive_reclaim() when a write
    is made to sys/devices/system/node/nodeX/reclaim, which is only defined
    with CONFIG_NUMA.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Fixes: 2b7226af730c ("mm/memcg: make memory.reclaim interface generic")
    Signed-off-by: Yosry Ahmed <[email protected]>
    Acked-by: Shakeel Butt <[email protected]>
    Acked-by: Michal Hocko <[email protected]>
    Cc: Axel Rasmussen <[email protected]>
    Cc: David Hildenbrand <[email protected]>
    Cc: Davidlohr Bueso <[email protected]>
    Cc: Johannes Weiner <[email protected]>
    Cc: Liam Howlett <[email protected]>
    Cc: Lorenzo Stoakes <[email protected]>
    Cc: Mike Rapoport <[email protected]>
    Cc: Qi Zheng <[email protected]>
    Cc: Suren Baghdasaryan <[email protected]>
    Cc: Vlastimil Babka <[email protected]>
    Cc: Wei Xu <[email protected]>
    Cc: Yuanchu Xie <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
mmc: rtsx_pci_sdmmc: implement sdmmc_card_busy function [+ + +]
Author: Matthew Schwartz <[email protected]>
Date:   Mon Dec 29 12:45:26 2025 -0800

    mmc: rtsx_pci_sdmmc: implement sdmmc_card_busy function
    
    commit 122610220134b32c742cc056eaf64f7017ac8cd9 upstream.
    
    rtsx_pci_sdmmc does not have an sdmmc_card_busy function, so any voltage
    switches cause a kernel warning, "mmc0: cannot verify signal voltage
    switch."
    
    Copy the sdmmc_card_busy function from rtsx_pci_usb to rtsx_pci_sdmmc to
    fix this.
    
    Fixes: ff984e57d36e ("mmc: Add realtek pcie sdmmc host driver")
    Signed-off-by: Matthew Schwartz <[email protected]>
    Tested-by: Ricky WU <[email protected]>
    Reviewed-by: Ricky WU <[email protected]>
    Cc: [email protected]
    Signed-off-by: Ulf Hansson <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

mmc: sdhci-of-dwcmshc: Prevent illegal clock reduction in HS200/HS400 mode [+ + +]
Author: Shawn Lin <[email protected]>
Date:   Mon Dec 22 15:11:25 2025 +0800

    mmc: sdhci-of-dwcmshc: Prevent illegal clock reduction in HS200/HS400 mode
    
    commit 3009738a855cf938bbfc9078bec725031ae623a4 upstream.
    
    When operating in HS200 or HS400 timing modes, reducing the clock frequency
    below 52MHz will lead to link broken as the Rockchip DWC MSHC controller
    requires maintaining a minimum clock of 52MHz in these modes.
    
    Add a check to prevent illegal clock reduction through debugfs:
    
    root@debian:/# echo 50000000 > /sys/kernel/debug/mmc0/clock
    root@debian:/# [   30.090146] mmc0: running CQE recovery
    mmc0: cqhci: Failed to halt
    mmc0: cqhci: spurious TCN for tag 0
    WARNING: drivers/mmc/host/cqhci-core.c:797 at cqhci_irq+0x254/0x818, CPU#1: kworker/1:0H/24
    Modules linked in:
    CPU: 1 UID: 0 PID: 24 Comm: kworker/1:0H Not tainted 6.19.0-rc1-00001-g09db0998649d-dirty #204 PREEMPT
    Hardware name: Rockchip RK3588 EVB1 V10 Board (DT)
    Workqueue: kblockd blk_mq_run_work_fn
    pstate: 604000c9 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    pc : cqhci_irq+0x254/0x818
    lr : cqhci_irq+0x254/0x818
    ...
    
    Fixes: c6f361cba51c ("mmc: sdhci-of-dwcmshc: add support for rk3588")
    Cc: Sebastian Reichel <[email protected]>
    Cc: Yifeng Zhao <[email protected]>
    Signed-off-by: Shawn Lin <[email protected]>
    Cc: [email protected]
    Signed-off-by: Ulf Hansson <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
net/sched: act_ife: avoid possible NULL deref [+ + +]
Author: Eric Dumazet <[email protected]>
Date:   Wed Jan 21 13:37:24 2026 +0000

    net/sched: act_ife: avoid possible NULL deref
    
    [ Upstream commit 27880b0b0d35ad1c98863d09788254e36f874968 ]
    
    tcf_ife_encode() must make sure ife_encode() does not return NULL.
    
    syzbot reported:
    
    Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI
    KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
     RIP: 0010:ife_tlv_meta_encode+0x41/0xa0 net/ife/ife.c:166
    CPU: 3 UID: 0 PID: 8990 Comm: syz.0.696 Not tainted syzkaller #0 PREEMPT(full)
    Call Trace:
     <TASK>
      ife_encode_meta_u32+0x153/0x180 net/sched/act_ife.c:101
      tcf_ife_encode net/sched/act_ife.c:841 [inline]
      tcf_ife_act+0x1022/0x1de0 net/sched/act_ife.c:877
      tc_act include/net/tc_wrapper.h:130 [inline]
      tcf_action_exec+0x1c0/0xa20 net/sched/act_api.c:1152
      tcf_exts_exec include/net/pkt_cls.h:349 [inline]
      mall_classify+0x1a0/0x2a0 net/sched/cls_matchall.c:42
      tc_classify include/net/tc_wrapper.h:197 [inline]
      __tcf_classify net/sched/cls_api.c:1764 [inline]
      tcf_classify+0x7f2/0x1380 net/sched/cls_api.c:1860
      multiq_classify net/sched/sch_multiq.c:39 [inline]
      multiq_enqueue+0xe0/0x510 net/sched/sch_multiq.c:66
      dev_qdisc_enqueue+0x45/0x250 net/core/dev.c:4147
      __dev_xmit_skb net/core/dev.c:4262 [inline]
      __dev_queue_xmit+0x2998/0x46c0 net/core/dev.c:4798
    
    Fixes: 295a6e06d21e ("net/sched: act_ife: Change to use ife module")
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/netdev/[email protected]/T/#u
    Signed-off-by: Eric Dumazet <[email protected]>
    Cc: Yotam Gigi <[email protected]>
    Reviewed-by: Jamal Hadi Salim <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net/sched: Enforce that teql can only be used as root qdisc [+ + +]
Author: Jamal Hadi Salim <[email protected]>
Date:   Wed Jan 14 11:02:41 2026 -0500

    net/sched: Enforce that teql can only be used as root qdisc
    
    [ Upstream commit 50da4b9d07a7a463e2cfb738f3ad4cff6b2c9c3b ]
    
    Design intent of teql is that it is only supposed to be used as root qdisc.
    We need to check for that constraint.
    
    Although not important, I will describe the scenario that unearthed this
    issue for the curious.
    
    GangMin Kim <[email protected]> managed to concot a scenario as follows:
    
    ROOT qdisc 1:0 (QFQ)
      ├── class 1:1 (weight=15, lmax=16384) netem with delay 6.4s
      └── class 1:2 (weight=1, lmax=1514) teql
    
    GangMin sends a packet which is enqueued to 1:1 (netem).
    Any invocation of dequeue by QFQ from this class will not return a packet
    until after 6.4s. In the meantime, a second packet is sent and it lands on
    1:2. teql's enqueue will return success and this will activate class 1:2.
    Main issue is that teql only updates the parent visible qlen (sch->q.qlen)
    at dequeue. Since QFQ will only call dequeue if peek succeeds (and teql's
    peek always returns NULL), dequeue will never be called and thus the qlen
    will remain as 0. With that in mind, when GangMin updates 1:2's lmax value,
    the qfq_change_class calls qfq_deact_rm_from_agg. Since the child qdisc's
    qlen was not incremented, qfq fails to deactivate the class, but still
    frees its pointers from the aggregate. So when the first packet is
    rescheduled after 6.4 seconds (netem's delay), a dangling pointer is
    accessed causing GangMin's causing a UAF.
    
    Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
    Reported-by: GangMin Kim <[email protected]>
    Tested-by: Victor Nogueira <[email protected]>
    Signed-off-by: Jamal Hadi Salim <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net/sched: qfq: Use cl_is_active to determine whether class is active in qfq_rm_from_ag [+ + +]
Author: Jamal Hadi Salim <[email protected]>
Date:   Wed Jan 14 11:02:42 2026 -0500

    net/sched: qfq: Use cl_is_active to determine whether class is active in qfq_rm_from_ag
    
    [ Upstream commit d837fbee92453fbb829f950c8e7cf76207d73f33 ]
    
    This is more of a preventive patch to make the code more consistent and
    to prevent possible exploits that employ child qlen manipulations on qfq.
    use cl_is_active instead of relying on the child qdisc's qlen to determine
    class activation.
    
    Fixes: 462dbc9101acd ("pkt_sched: QFQ Plus: fair-queueing service at DRR cost")
    Signed-off-by: Jamal Hadi Salim <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
net: bcmasp: Fix network filter wake for asp-3.0 [+ + +]
Author: Justin Chen <[email protected]>
Date:   Tue Jan 20 11:23:39 2026 -0800

    net: bcmasp: Fix network filter wake for asp-3.0
    
    [ Upstream commit bbb11b8d758d17a4ce34b8ed0b49de150568265b ]
    
    We need to apply the tx_chan_offset to the netfilter cfg channel or the
    output channel will be incorrect for asp-3.0 and newer.
    
    Fixes: e9f31435ee7d ("net: bcmasp: Add support for asp-v3.0")
    Signed-off-by: Justin Chen <[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: fix off-by-one in maximum bridge ID determination [+ + +]
Author: Vladimir Oltean <[email protected]>
Date:   Tue Jan 20 23:10:39 2026 +0200

    net: dsa: fix off-by-one in maximum bridge ID determination
    
    [ Upstream commit dfca045cd4d0ea07ff4198ba392be3e718acaddc ]
    
    Prior to the blamed commit, the bridge_num range was from
    0 to ds->max_num_bridges - 1. After the commit, it is from
    1 to ds->max_num_bridges.
    
    So this check:
            if (bridge_num >= max)
                    return 0;
    must be updated to:
            if (bridge_num > max)
                    return 0;
    
    in order to allow the last bridge_num value (==max) to be used.
    
    This is easiest visible when a driver sets ds->max_num_bridges=1.
    The observed behaviour is that even the first created bridge triggers
    the netlink extack "Range of offloadable bridges exceeded" warning, and
    is handled in software rather than being offloaded.
    
    Fixes: 3f9bb0301d50 ("net: dsa: make dp->bridge_num one-based")
    Signed-off-by: Vladimir Oltean <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: fec: account for VLAN header in frame length calculations [+ + +]
Author: Clemens Gruber <[email protected]>
Date:   Wed Jan 21 09:37:51 2026 +0100

    net: fec: account for VLAN header in frame length calculations
    
    commit ca1bb3fedf26a08ed31974131bc0064d4fe33649 upstream.
    
    The MAX_FL (maximum frame length) and related calculations used ETH_HLEN,
    which does not account for the 4-byte VLAN tag in tagged frames. This
    caused the hardware to reject valid VLAN frames as oversized, resulting
    in RX errors and dropped packets.
    
    Use VLAN_ETH_HLEN instead of ETH_HLEN in the MAX_FL register setup,
    cut-through mode threshold, buffer allocation, and max_mtu calculation.
    
    Cc: [email protected] # v6.18+
    Fixes: 62b5bb7be7bc ("net: fec: update MAX_FL based on the current MTU")
    Fixes: d466c16026e9 ("net: fec: enable the Jumbo frame support for i.MX8QM")
    Fixes: 59e9bf037d75 ("net: fec: add change_mtu to support dynamic buffer allocation")
    Fixes: ec2a1681ed4f ("net: fec: use a member variable for maximum buffer size")
    Signed-off-by: Clemens Gruber <[email protected]>
    Reviewed-by: Wei Fang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Paolo Abeni <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

net: freescale: ucc_geth: Return early when TBI PHY can't be found [+ + +]
Author: Maxime Chevallier <[email protected]>
Date:   Wed Jan 14 09:02:46 2026 +0100

    net: freescale: ucc_geth: Return early when TBI PHY can't be found
    
    [ Upstream commit a74c7a58ca2ca1cbb93f4c01421cf24b8642b962 ]
    
    In ucc_geth's .mac_config(), we configure the TBI Serdes block represented by a
    struct phy_device that we get from firmware.
    
    While porting to phylink, a check was missed to make sure we don't try
    to access the TBI PHY if we can't get it. Let's add it and return early
    in case of error
    
    Reported-by: kernel test robot <[email protected]>
    Reported-by: Dan Carpenter <[email protected]>
    Closes: https://lore.kernel.org/r/[email protected]/
    Fixes: 53036aa8d031 ("net: freescale: ucc_geth: phylink conversion")
    Signed-off-by: Maxime Chevallier <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: hns3: fix data race in hns3_fetch_stats [+ + +]
Author: David Yang <[email protected]>
Date:   Tue Jan 20 00:07:37 2026 +0800

    net: hns3: fix data race in hns3_fetch_stats
    
    [ Upstream commit 748a81c8ceda1fdbdcd0af595947422e810442aa ]
    
    In hns3_fetch_stats(), ring statistics, protected by u64_stats_sync, are
    read and accumulated in ignorance of possible u64_stats_fetch_retry()
    events. These statistics are already accumulated by
    hns3_ring_stats_update(). Fix this by reading them into a temporary
    buffer first.
    
    Fixes: b20d7fe51e0d ("net: hns3: add some statitics info to tx process")
    Signed-off-by: David Yang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: hns3: fix the HCLGE_FD_AD_NXT_KEY error setting issue [+ + +]
Author: Jijie Shao <[email protected]>
Date:   Mon Jan 19 21:28:40 2026 +0800

    net: hns3: fix the HCLGE_FD_AD_NXT_KEY error setting issue
    
    [ Upstream commit f87e034d16e43af984380a95c32c25201b7759a7 ]
    
    Use next_input_key instead of counter_id to set HCLGE_FD_AD_NXT_KEY.
    
    Fixes: 117328680288 ("net: hns3: Add input key and action config support for flow director")
    Signed-off-by: Jijie Shao <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: hns3: fix wrong GENMASK() for HCLGE_FD_AD_COUNTER_NUM_M [+ + +]
Author: Jijie Shao <[email protected]>
Date:   Mon Jan 19 21:28:39 2026 +0800

    net: hns3: fix wrong GENMASK() for HCLGE_FD_AD_COUNTER_NUM_M
    
    [ Upstream commit d57c67c956a1bad15115eba6e59d77a6dfeba01d ]
    
    HCLGE_FD_AD_COUNTER_NUM_M should be at GENMASK(19, 13),
    rather than at GENMASK(20, 13), because bit 20 is
    HCLGE_FD_AD_NXT_STEP_B.
    
    This patch corrects the wrong definition.
    
    Fixes: 117328680288 ("net: hns3: Add input key and action config support for flow director")
    Signed-off-by: Jijie Shao <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: openvswitch: fix data race in ovs_vport_get_upcall_stats [+ + +]
Author: David Yang <[email protected]>
Date:   Wed Jan 21 15:29:26 2026 +0800

    net: openvswitch: fix data race in ovs_vport_get_upcall_stats
    
    [ Upstream commit cc4816bdb08639e5cd9acb295a02d6f0f09736b4 ]
    
    In ovs_vport_get_upcall_stats(), some statistics protected by
    u64_stats_sync, are read and accumulated in ignorance of possible
    u64_stats_fetch_retry() events. These statistics are already accumulated
    by u64_stats_inc(). Fix this by reading them into temporary variables
    first.
    
    Fixes: 1933ea365aa7 ("net: openvswitch: Add support to count upcall packets")
    Signed-off-by: David Yang <[email protected]>
    Acked-by: Ilya Maximets <[email protected]>
    Reviewed-by: Eric Dumazet <[email protected]>
    Reviewed-by: Aaron Conole <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Paolo Abeni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: pcs: pcs-mtk-lynxi: report in-band capability for 2500Base-X [+ + +]
Author: Daniel Golle <[email protected]>
Date:   Wed Jan 21 02:23:17 2026 +0000

    net: pcs: pcs-mtk-lynxi: report in-band capability for 2500Base-X
    
    [ Upstream commit e8ca461f7d19464b47c64fe4cf2f83162421bcc0 ]
    
    It turns out that 2500Base-X actually works fine with in-band status on
    MediaTek's LynxI PCS -- I wrongly concluded it didn't because it is
    broken in all the copper SFP modules and GPON sticks I used for testing.
    
    Hence report LINK_INBAND_ENABLE also for 2500Base-X mode.
    
    This reverts most of commit a003c38d9bbb ("net: pcs: pcs-mtk-lynxi:
    correctly report in-band status capabilities").
    
    The removal of the QSGMII interface mode was correct and is left
    untouched.
    
    Link: https://github.com/openwrt/openwrt/issues/21436
    Fixes: a003c38d9bbb ("net: pcs: pcs-mtk-lynxi: correctly report in-band status capabilities")
    Signed-off-by: Daniel Golle <[email protected]>
    Link: https://patch.msgid.link/b1cf26157b63fee838be09ae810497fb22fd8104.1768961746.git.daniel@makrotopia.org
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: phy: intel-xway: fix OF node refcount leakage [+ + +]
Author: Daniel Golle <[email protected]>
Date:   Mon Jan 19 00:41:54 2026 +0000

    net: phy: intel-xway: fix OF node refcount leakage
    
    [ Upstream commit 79912b256e14054e6ba177d7e7e631485ce23dbe ]
    
    Automated review spotted am OF node reference count leakage when
    checking if the 'leds' child node exists.
    
    Call of_put_node() to correctly maintain the refcount.
    
    Link: https://netdev-ai.bots.linux.dev/ai-review.html?id=20f173ba-0c64-422b-a663-fea4b4ad01d0
    Fixes: 1758af47b98c1 ("net: phy: intel-xway: add support for PHY LEDs")
    Signed-off-by: Daniel Golle <[email protected]>
    Link: https://patch.msgid.link/e3275e1c1cdca7e6426bb9c11f33bd84b8d900c8.1768783208.git.daniel@makrotopia.org
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

net: sfp: add potron quirk to the H-COM SPP425H-GAB4 SFP+ Stick [+ + +]
Author: Hamza Mahfooz <[email protected]>
Date:   Tue Jan 13 18:29:57 2026 -0500

    net: sfp: add potron quirk to the H-COM SPP425H-GAB4 SFP+ Stick
    
    commit a92a6c50e35b75a8021265507f3c2a9084df0b94 upstream.
    
    This is another one of those XGSPON ONU sticks that's using the
    X-ONU-SFPP internally, thus it also requires the potron quirk to avoid tx
    faults. So, add an entry for it in sfp_quirks[].
    
    Cc: [email protected]
    Signed-off-by: Hamza Mahfooz <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

net: txgbe: remove the redundant data return in SW-FW mailbox [+ + +]
Author: Jiawen Wu <[email protected]>
Date:   Mon Jan 19 14:59:35 2026 +0800

    net: txgbe: remove the redundant data return in SW-FW mailbox
    
    commit 3d778e65b4f44c6af4901d83020bb8a0a010f39e upstream.
    
    For these two firmware mailbox commands, in txgbe_test_hostif() and
    txgbe_set_phy_link_hostif(), there is no need to read data from the
    buffer.
    
    Under the current setting, OEM firmware will cause the driver to fail to
    probe. Because OEM firmware returns more link information, with a larger
    OEM structure txgbe_hic_ephy_getlink. However, the current driver does
    not support the OEM function. So just fix it in the way that does not
    involve reading the returned data.
    
    Fixes: d84a3ff9aae8 ("net: txgbe: Restrict the use of mismatched FW versions")
    Cc: [email protected]
    Signed-off-by: Jiawen Wu <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

net: usb: dm9601: remove broken SR9700 support [+ + +]
Author: Ethan Nelson-Moore <[email protected]>
Date:   Mon Jan 12 22:39:24 2026 -0800

    net: usb: dm9601: remove broken SR9700 support
    
    [ Upstream commit 7d7dbafefbe74f5a25efc4807af093b857a7612e ]
    
    The SR9700 chip sends more than one packet in a USB transaction,
    like the DM962x chips can optionally do, but the dm9601 driver does not
    support this mode, and the hardware does not have the DM962x
    MODE_CTL register to disable it, so this driver drops packets on SR9700
    devices. The sr9700 driver correctly handles receiving more than one
    packet per transaction.
    
    While the dm9601 driver could be improved to handle this, the easiest
    way to fix this issue in the short term is to remove the SR9700 device
    ID from the dm9601 driver so the sr9700 driver is always used. This
    device ID should not have been in more than one driver to begin with.
    
    The "Fixes" commit was chosen so that the patch is automatically
    included in all kernels that have the sr9700 driver, even though the
    issue affects dm9601.
    
    Fixes: c9b37458e956 ("USB2NET : SR9700 : One chip USB 1.1 USB2NET SR9700Device Driver Support")
    Signed-off-by: Ethan Nelson-Moore <[email protected]>
    Acked-by: Peter Korsgaard <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
netdevsim: fix a race issue related to the operation on bpf_bound_progs list [+ + +]
Author: Yun Lu <[email protected]>
Date:   Fri Jan 16 17:53:08 2026 +0800

    netdevsim: fix a race issue related to the operation on bpf_bound_progs list
    
    [ Upstream commit b97d5eedf4976cc94321243be83b39efe81a0e15 ]
    
    The netdevsim driver lacks a protection mechanism for operations on the
    bpf_bound_progs list. When the nsim_bpf_create_prog() performs
    list_add_tail, it is possible that nsim_bpf_destroy_prog() is
    simultaneously performs list_del. Concurrent operations on the list may
    lead to list corruption and trigger a kernel crash as follows:
    
    [  417.290971] kernel BUG at lib/list_debug.c:62!
    [  417.290983] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
    [  417.290992] CPU: 10 PID: 168 Comm: kworker/10:1 Kdump: loaded Not tainted 6.19.0-rc5 #1
    [  417.291003] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
    [  417.291007] Workqueue: events bpf_prog_free_deferred
    [  417.291021] RIP: 0010:__list_del_entry_valid_or_report+0xa7/0xc0
    [  417.291034] Code: a8 ff 0f 0b 48 89 fe 48 89 ca 48 c7 c7 48 a1 eb ae e8 ed fb a8 ff 0f 0b 48 89 fe 48 89 c2 48 c7 c7 80 a1 eb ae e8 d9 fb a8 ff <0f> 0b 48 89 d1 48 c7 c7 d0 a1 eb ae 48 89 f2 48 89 c6 e8 c2 fb a8
    [  417.291040] RSP: 0018:ffffb16a40807df8 EFLAGS: 00010246
    [  417.291046] RAX: 000000000000006d RBX: ffff8e589866f500 RCX: 0000000000000000
    [  417.291051] RDX: 0000000000000000 RSI: ffff8e59f7b23180 RDI: ffff8e59f7b23180
    [  417.291055] RBP: ffffb16a412c9000 R08: 0000000000000000 R09: 0000000000000003
    [  417.291059] R10: ffffb16a40807c80 R11: ffffffffaf9edce8 R12: ffff8e594427ac20
    [  417.291063] R13: ffff8e59f7b44780 R14: ffff8e58800b7a05 R15: 0000000000000000
    [  417.291074] FS:  0000000000000000(0000) GS:ffff8e59f7b00000(0000) knlGS:0000000000000000
    [  417.291079] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [  417.291083] CR2: 00007fc4083efe08 CR3: 00000001c3626006 CR4: 0000000000770ee0
    [  417.291088] PKRU: 55555554
    [  417.291091] Call Trace:
    [  417.291096]  <TASK>
    [  417.291103]  nsim_bpf_destroy_prog+0x31/0x80 [netdevsim]
    [  417.291154]  __bpf_prog_offload_destroy+0x2a/0x80
    [  417.291163]  bpf_prog_dev_bound_destroy+0x6f/0xb0
    [  417.291171]  bpf_prog_free_deferred+0x18e/0x1a0
    [  417.291178]  process_one_work+0x18a/0x3a0
    [  417.291188]  worker_thread+0x27b/0x3a0
    [  417.291197]  ? __pfx_worker_thread+0x10/0x10
    [  417.291207]  kthread+0xe5/0x120
    [  417.291214]  ? __pfx_kthread+0x10/0x10
    [  417.291221]  ret_from_fork+0x31/0x50
    [  417.291230]  ? __pfx_kthread+0x10/0x10
    [  417.291236]  ret_from_fork_asm+0x1a/0x30
    [  417.291246]  </TASK>
    
    Add a mutex lock, to prevent simultaneous addition and deletion operations
    on the list.
    
    Fixes: 31d3ad832948 ("netdevsim: add bpf offload support")
    Reported-by: Yinhao Hu <[email protected]>
    Reported-by: Kaiyan Mei <[email protected]>
    Signed-off-by: Yun Lu <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Paolo Abeni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
netrom: fix double-free in nr_route_frame() [+ + +]
Author: Jeongjun Park <[email protected]>
Date:   Mon Jan 19 15:33:59 2026 +0900

    netrom: fix double-free in nr_route_frame()
    
    commit ba1096c315283ee3292765f6aea4cca15816c4f7 upstream.
    
    In nr_route_frame(), old_skb is immediately freed without checking if
    nr_neigh->ax25 pointer is NULL. Therefore, if nr_neigh->ax25 is NULL,
    the caller function will free old_skb again, causing a double-free bug.
    
    Therefore, to prevent this, we need to modify it to check whether
    nr_neigh->ax25 is NULL before freeing old_skb.
    
    Cc: <[email protected]>
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/all/[email protected]/
    Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
    Signed-off-by: Jeongjun Park <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
ntb: transport: Fix uninitialized mutex [+ + +]
Author: Dave Jiang <[email protected]>
Date:   Thu Jan 8 14:09:33 2026 -0700

    ntb: transport: Fix uninitialized mutex
    
    [ Upstream commit 2ccb5e8dbcd2dedf13e0270165ac48bd79b7f673 ]
    
    When the mutex 'link_event_lock' was introduced, it was never
    initialized and it triggers kernel warnings when used with locking
    debug turned on. Add initialization for the mutex.
    
    Fixes: 3db835dd8f9a ("ntb: Add mutex to make link_event_callback executed linearly.")
    Cc: fuyuanli <[email protected]>
    Signed-off-by: Dave Jiang <[email protected]>
    Signed-off-by: Jon Mason <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
Octeontx2-af: Add proper checks for fwdata [+ + +]
Author: Hariprasad Kelam <[email protected]>
Date:   Wed Jan 21 15:18:19 2026 +0530

    Octeontx2-af: Add proper checks for fwdata
    
    [ Upstream commit 4a3dba48188208e4f66822800e042686784d29d1 ]
    
    firmware populates MAC address, link modes (supported, advertised)
    and EEPROM data in shared firmware structure which kernel access
    via MAC block(CGX/RPM).
    
    Accessing fwdata, on boards booted with out MAC block leading to
    kernel panics.
    
    Internal error: Oops: 0000000096000005 [#1]  SMP
    [   10.460721] Modules linked in:
    [   10.463779] CPU: 0 UID: 0 PID: 174 Comm: kworker/0:3 Not tainted 6.19.0-rc5-00154-g76ec646abdf7-dirty #3 PREEMPT
    [   10.474045] Hardware name: Marvell OcteonTX CN98XX board (DT)
    [   10.479793] Workqueue: events work_for_cpu_fn
    [   10.484159] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [   10.491124] pc : rvu_sdp_init+0x18/0x114
    [   10.495051] lr : rvu_probe+0xe58/0x1d18
    
    Fixes: 997814491cee ("Octeontx2-af: Fetch MAC channel info from firmware")
    Fixes: 5f21226b79fd ("Octeontx2-pf: ethtool: support multi advertise mode")
    Signed-off-by: Hariprasad Kelam <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
octeontx2-af: Fix error handling [+ + +]
Author: Ratheesh Kannoth <[email protected]>
Date:   Wed Jan 21 09:09:34 2026 +0530

    octeontx2-af: Fix error handling
    
    [ Upstream commit 19e4175e997a5b85eab97d522f00cc99abd1873c ]
    
    This commit adds error handling and rollback logic to
    rvu_mbox_handler_attach_resources() to properly clean up partially
    attached resources when rvu_attach_block() fails.
    
    Fixes: 746ea74241fa0 ("octeontx2-af: Add RVU block LF provisioning support")
    Signed-off-by: Ratheesh Kannoth <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
Octeontx2-pf: Update xdp features [+ + +]
Author: Hariprasad Kelam <[email protected]>
Date:   Mon Jan 19 15:32:22 2026 +0530

    Octeontx2-pf: Update xdp features
    
    [ Upstream commit cdf8de9c6bfe94508d251cb290ee66e34e6f3368 ]
    
    In recent testing, verification of XDP_REDIRECT and zero-copy features
    failed because the driver is not setting the corresponding feature flags.
    
    Fixes: efabce290151 ("octeontx2-pf: AF_XDP zero copy receive support")
    Fixes: 66c0e13ad236 ("drivers: net: turn on XDP features")
    Signed-off-by: Hariprasad Kelam <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
octeontx2: cn10k: fix RX flowid TCAM mask handling [+ + +]
Author: Alok Tiwari <[email protected]>
Date:   Fri Jan 16 08:47:12 2026 -0800

    octeontx2: cn10k: fix RX flowid TCAM mask handling
    
    [ Upstream commit ab9b218a1521133a4410722907fa7189566be9bc ]
    
    The RX flowid programming initializes the TCAM mask to all ones, but
    then overwrites it when clearing the MAC DA mask bits. This results
    in losing the intended initialization and may affect other match fields.
    
    Update the code to clear the MAC DA bits using an AND operation, making
    the handling of mask[0] consistent with mask[1], where the field-specific
    bits are cleared after initializing the mask to ~0ULL.
    
    Fixes: 57d00d4364f3 ("octeontx2-pf: mcs: Match macsec ethertype along with DMAC")
    Signed-off-by: Alok Tiwari <[email protected]>
    Reviewed-by: Subbaraya Sundeep <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

octeontx2: Fix otx2_dma_map_page() error return code [+ + +]
Author: Thomas Fourier <[email protected]>
Date:   Wed Jan 14 13:31:06 2026 +0100

    octeontx2: Fix otx2_dma_map_page() error return code
    
    commit d998b0e5afffa90d0f03770bad31083767079858 upstream.
    
    0 is a valid DMA address [1] so using it as the error value can lead to
    errors.  The error value of dma_map_XXX() functions is DMA_MAPPING_ERROR
    which is ~0.  The callers of otx2_dma_map_page() use dma_mapping_error()
    to test the return value of otx2_dma_map_page(). This means that they
    would not detect an error in otx2_dma_map_page().
    
    Make otx2_dma_map_page() return the raw value of dma_map_page_attrs().
    
    [1] https://lore.kernel.org/all/[email protected]
    
    Fixes: caa2da34fd25 ("octeontx2-pf: Initialize and config queues")
    Cc: <[email protected]>
    Signed-off-by: Thomas Fourier <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
of: fix reference count leak in of_alias_scan() [+ + +]
Author: Weigang He <[email protected]>
Date:   Sat Jan 17 09:12:38 2026 +0000

    of: fix reference count leak in of_alias_scan()
    
    commit 81122fba08fa3ccafab6ed272a5c6f2203923a7e upstream.
    
    of_find_node_by_path() returns a device_node with its refcount
    incremented. When kstrtoint() fails or dt_alloc() fails, the function
    continues to the next iteration without calling of_node_put(), causing
    a reference count leak.
    
    Add of_node_put(np) before continue on both error paths to properly
    release the device_node reference.
    
    Fixes: 611cad720148 ("dt: add of_alias_scan and of_alias_get_id")
    Cc: [email protected]
    Signed-off-by: Weigang He <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Rob Herring (Arm) <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

of: platform: Use default match table for /firmware [+ + +]
Author: Rob Herring (Arm) <[email protected]>
Date:   Tue Jan 13 19:51:58 2026 -0600

    of: platform: Use default match table for /firmware
    
    commit 48e6a9c4a20870e09f85ff1a3628275d6bce31c0 upstream.
    
    Calling of_platform_populate() without a match table will only populate
    the immediate child nodes under /firmware. This is usually fine, but in
    the case of something like a "simple-mfd" node such as
    "raspberrypi,bcm2835-firmware", those child nodes will not be populated.
    And subsequent calls won't work either because the /firmware node is
    marked as processed already.
    
    Switch the call to of_platform_default_populate() to solve this problem.
    It should be a nop for existing cases.
    
    Fixes: 3aa0582fdb82 ("of: platform: populate /firmware/ node from of_platform_default_populate_init()")
    Cc: [email protected]
    Reviewed-by: Sudeep Holla <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Rob Herring (Arm) <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
panic: only warn about deprecated panic_print on write access [+ + +]
Author: Gal Pressman <[email protected]>
Date:   Tue Jan 6 18:33:21 2026 +0200

    panic: only warn about deprecated panic_print on write access
    
    commit 90f3c123247e9564f2ecf861946ec41ceaf5e198 upstream.
    
    The panic_print_deprecated() warning is being triggered on both read and
    write operations to the panic_print parameter.
    
    This causes spurious warnings when users run 'sysctl -a' to list all
    sysctl values, since that command reads /proc/sys/kernel/panic_print and
    triggers the deprecation notice.
    
    Modify the handlers to only emit the deprecation warning when the
    parameter is actually being set:
    
     - sysctl_panic_print_handler(): check 'write' flag before warning.
     - panic_print_get(): remove the deprecation call entirely.
    
    This way, users are only warned when they actively try to use the
    deprecated parameter, not when passively querying system state.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Fixes: ee13240cd78b ("panic: add note that panic_print sysctl interface is deprecated")
    Fixes: 2683df6539cb ("panic: add note that 'panic_print' parameter is deprecated")
    Signed-off-by: Gal Pressman <[email protected]>
    Reviewed-by: Mark Bloch <[email protected]>
    Reviewed-by: Nimrod Oren <[email protected]>
    Cc: Feng Tang <[email protected]>
    Cc: Joel Granados <[email protected]>
    Cc: Petr Mladek <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
perf parse-events: Fix evsel allocation failure [+ + +]
Author: Faisal Bukhari <[email protected]>
Date:   Mon Sep 22 23:38:34 2025 +0530

    perf parse-events: Fix evsel allocation failure
    
    [ Upstream commit 1eb217ab2e737609f8a861b517649e82e7236d05 ]
    
    If evsel__new_idx() returns NULL, the function currently jumps to label
    'out_err'.  Here, references to `cpus` and `pmu_cpus` are dropped.
    Also, resources held by evsel->name and evsel->metric_id are freed.
    
    But if evsel__new_idx() returns NULL, it can lead to NULL pointer
    dereference.
    
    Fixes: cd63c22168257a0b ("perf parse-events: Minor __add_event refactoring")
    Signed-off-by: Faisal Bukhari <[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/x86/intel: Do not enable BTS for guests [+ + +]
Author: Fernand Sieber <[email protected]>
Date:   Thu Dec 11 20:36:04 2025 +0200

    perf/x86/intel: Do not enable BTS for guests
    
    commit 91dcfae0ff2b9b9ab03c1ec95babaceefbffb9f4 upstream.
    
    By default when users program perf to sample branch instructions
    (PERF_COUNT_HW_BRANCH_INSTRUCTIONS) with a sample period of 1, perf
    interprets this as a special case and enables BTS (Branch Trace Store)
    as an optimization to avoid taking an interrupt on every branch.
    
    Since BTS doesn't virtualize, this optimization doesn't make sense when
    the request originates from a guest. Add an additional check that
    prevents this optimization for virtualized events (exclude_host).
    
    Reported-by: Jan H. Schönherr <[email protected]>
    Suggested-by: Peter Zijlstra <[email protected]>
    Signed-off-by: Fernand Sieber <[email protected]>
    Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
    Cc: <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
perf: Fix refcount warning on event->mmap_count increment [+ + +]
Author: Will Rosenberg <[email protected]>
Date:   Mon Jan 19 11:49:56 2026 -0700

    perf: Fix refcount warning on event->mmap_count increment
    
    [ Upstream commit d06bf78e55d5159c1b00072e606ab924ffbbad35 ]
    
    When calling refcount_inc(&event->mmap_count) inside perf_mmap_rb(), the
    following warning is triggered:
    
            refcount_t: addition on 0; use-after-free.
            WARNING: lib/refcount.c:25
    
    PoC:
    
        struct perf_event_attr attr = {0};
        int fd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, 0);
        mmap(NULL, 0x3000, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
        int victim = syscall(__NR_perf_event_open, &attr, 0, -1, fd,
                             PERF_FLAG_FD_OUTPUT);
        mmap(NULL, 0x3000, PROT_READ | PROT_WRITE, MAP_SHARED, victim, 0);
    
    This occurs when creating a group member event with the flag
    PERF_FLAG_FD_OUTPUT. The group leader should be mmap-ed and then mmap-ing
    the event triggers the warning.
    
    Since the event has copied the output_event in perf_event_set_output(),
    event->rb is set. As a result, perf_mmap_rb() calls
    refcount_inc(&event->mmap_count) when event->mmap_count = 0.
    
    Disallow the case when event->mmap_count = 0. This also prevents two
    events from updating the same user_page.
    
    Fixes: 448f97fba901 ("perf: Convert mmap() refcounts to refcount_t")
    Suggested-by: Peter Zijlstra <[email protected]>
    Signed-off-by: Will Rosenberg <[email protected]>
    Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
platform/mellanox: Fix SN5640/SN5610 LED platform data [+ + +]
Author: Oleksandr Shamray <[email protected]>
Date:   Wed Jan 7 16:25:48 2026 +0200

    platform/mellanox: Fix SN5640/SN5610 LED platform data
    
    [ Upstream commit 3113bcf4ccf06c938f0bc0c34cf6efe03278badc ]
    
    In SN5640/SN5610 platforms should be used XDR style LED data with
    predefined slot index per led_fan.
    
    Fixes: 317bbe169c46 ("platform: mellanox: mlx-platform: Add support for new Nvidia system")
    
    Signed-off-by: Oleksandr Shamray <[email protected]>
    Reviewed-by: Vadim Pasternak <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Ilpo Järvinen <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
platform/x86/amd: Fix memory leak in wbrf_record() [+ + +]
Author: Zilin Guan <[email protected]>
Date:   Tue Jan 6 09:13:17 2026 +0000

    platform/x86/amd: Fix memory leak in wbrf_record()
    
    [ Upstream commit 2bf1877b7094c684e1d652cac6912cfbc507ad3e ]
    
    The tmp buffer is allocated using kcalloc() but is not freed if
    acpi_evaluate_dsm() fails. This causes a memory leak in the error path.
    
    Fix this by explicitly freeing the tmp buffer in the error handling
    path of acpi_evaluate_dsm().
    
    Fixes: 58e82a62669d ("platform/x86/amd: Add support for AMD ACPI based Wifi band RFI mitigation feature")
    Suggested-by: Ilpo Järvinen <[email protected]>
    Co-developed-by: Jianhao Xu <[email protected]>
    Signed-off-by: Jianhao Xu <[email protected]>
    Signed-off-by: Zilin Guan <[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]>

 
platform/x86: hp-bioscfg: Fix automatic module loading [+ + +]
Author: Mario Limonciello <[email protected]>
Date:   Thu Jan 15 14:31:12 2026 -0600

    platform/x86: hp-bioscfg: Fix automatic module loading
    
    commit 467d4afc6caa64b84a6db1634f8091e931f4a7cb upstream.
    
    hp-bioscfg has a MODULE_DEVICE_TABLE with a GUID in it that looks
    plausible, but the module doesn't automatically load on applicable
    systems.
    
    This is because the GUID has some lower case characters and so it
    doesn't match the modalias during boot. Update the GUIDs to be all
    uppercase.
    
    Cc: [email protected]
    Fixes: 5f94f181ca25 ("platform/x86: hp-bioscfg: bioscfg-h")
    Signed-off-by: Mario Limonciello <[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: Greg Kroah-Hartman <[email protected]>

platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro [+ + +]
Author: Mario Limonciello <[email protected]>
Date:   Thu Jan 15 14:31:11 2026 -0600

    platform/x86: hp-bioscfg: Fix kernel panic in GET_INSTANCE_ID macro
    
    commit 25150715e0b049b99df664daf05dab12f41c3e13 upstream.
    
    The GET_INSTANCE_ID macro that caused a kernel panic when accessing sysfs
    attributes:
    
    1. Off-by-one error: The loop condition used '<=' instead of '<',
       causing access beyond array bounds. Since array indices are 0-based
       and go from 0 to instances_count-1, the loop should use '<'.
    
    2. Missing NULL check: The code dereferenced attr_name_kobj->name
       without checking if attr_name_kobj was NULL, causing a null pointer
       dereference in min_length_show() and other attribute show functions.
    
    The panic occurred when fwupd tried to read BIOS configuration attributes:
    
      Oops: general protection fault [#1] SMP KASAN NOPTI
      KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
      RIP: 0010:min_length_show+0xcf/0x1d0 [hp_bioscfg]
    
    Add a NULL check for attr_name_kobj before dereferencing and corrects
    the loop boundary to match the pattern used elsewhere in the driver.
    
    Cc: [email protected]
    Fixes: 5f94f181ca25 ("platform/x86: hp-bioscfg: bioscfg-h")
    Signed-off-by: Mario Limonciello <[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: Greg Kroah-Hartman <[email protected]>

platform/x86: hp-bioscfg: Fix kobject warnings for empty attribute names [+ + +]
Author: Mario Limonciello <[email protected]>
Date:   Thu Jan 15 14:31:10 2026 -0600

    platform/x86: hp-bioscfg: Fix kobject warnings for empty attribute names
    
    commit fdee1b09721605f532352628d0a24623e7062efb upstream.
    
    The hp-bioscfg driver attempts to register kobjects with empty names when
    the HP BIOS returns attributes with empty name strings. This causes
    multiple kernel warnings:
    
      kobject: (00000000135fb5e6): attempted to be registered with empty name!
      WARNING: CPU: 14 PID: 3336 at lib/kobject.c:219 kobject_add_internal+0x2eb/0x310
    
    Add validation in hp_init_bios_buffer_attribute() to check if the
    attribute name is empty after parsing it from the WMI buffer. If empty,
    log a debug message and skip registration of that attribute, allowing the
    module to continue processing other valid attributes.
    
    Cc: [email protected]
    Fixes: a34fc329b189 ("platform/x86: hp-bioscfg: bioscfg")
    Signed-off-by: Mario Limonciello <[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: Greg Kroah-Hartman <[email protected]>

 
pmdomain: imx8m-blk-ctrl: Remove separate rst and clk mask for 8mq vpu [+ + +]
Author: Ming Qian <[email protected]>
Date:   Fri Dec 5 09:54:25 2025 +0800

    pmdomain: imx8m-blk-ctrl: Remove separate rst and clk mask for 8mq vpu
    
    commit 3de49966499634454fd59e0e6fecd50baab7febd upstream.
    
    For i.MX8MQ platform, the ADB in the VPUMIX domain has no separate reset
    and clock enable bits, but is ungated and reset together with the VPUs.
    So we can't reset G1 or G2 separately, it may led to the system hang.
    Remove rst_mask and clk_mask of imx8mq_vpu_blk_ctl_domain_data.
    Let imx8mq_vpu_power_notifier() do really vpu reset.
    
    Fixes: 608d7c325e85 ("soc: imx: imx8m-blk-ctrl: add i.MX8MQ VPU blk-ctrl")
    Signed-off-by: Ming Qian <[email protected]>
    Reviewed-by: Benjamin Gaignard <[email protected]>
    Reviewed-by: Peng Fan <[email protected]>
    Reviewed-by: Frank Li <[email protected]>
    Cc: [email protected]
    Signed-off-by: Ulf Hansson <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

pmdomain: qcom: rpmhpd: Add MXC to SC8280XP [+ + +]
Author: Konrad Dybcio <[email protected]>
Date:   Tue Dec 2 18:36:21 2025 +0100

    pmdomain: qcom: rpmhpd: Add MXC to SC8280XP
    
    [ Upstream commit 5bc3e720e725cd5fa34875fa1e5434d565858067 ]
    
    This was apparently accounted for in dt-bindings, but never made its
    way into the driver.
    
    Fix it for SC8280XP and its VDD_GFX-less cousin, SA8540P.
    
    Fixes: f68f1cb3437d ("soc: qcom: rpmhpd: add sc8280xp & sa8540p rpmh power-domains")
    Reviewed-by: Dmitry Baryshkov <[email protected]>
    Signed-off-by: Konrad Dybcio <[email protected]>
    Reviewed-by: Ulf Hansson <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Bjorn Andersson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
Linux: pmdomain:rockchip: Fix init genpd as GENPD_STATE_ON before regulator ready [+ + +]
Author: Frank Zhang <[email protected]>
Date:   Tue Dec 16 13:52:47 2025 +0800

    pmdomain:rockchip: Fix init genpd as GENPD_STATE_ON before regulator ready
    
    commit 861d21c43c98478eef70e68e31d4ff86400c6ef7 upstream.
    
    RK3588_PD_NPU initialize as GENPD_STATE_ON before regulator ready.
    rknn_iommu initlized success and suspend RK3588_PD_NPU. When rocket
    driver register, it will resume rknn_iommu.
    
    If regulator is still not ready at this point, rknn_iommu resume fail,
    pm runtime status will be error: -EPROBE_DEFER.
    
    This patch set pmdomain to off if it need regulator during probe,
    consumer device can power on pmdomain after regulator ready.
    
    Signed-off-by: Frank Zhang <[email protected]>
    Tested-by: Chaoyi Chen <[email protected]>
    Tested-by: Quentin Schulz <[email protected]>
    Reviewed-by: Sebastian Reichel <[email protected]>
    Fixes: db6df2e3fc16 ("pmdomain: rockchip: add regulator support")
    Cc: [email protected]
    Signed-off-by: Ulf Hansson <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
pwm: Ensure ioctl() returns a negative errno on error [+ + +]
Author: Uwe Kleine-König <[email protected]>
Date:   Mon Jan 19 16:13:26 2026 +0100

    pwm: Ensure ioctl() returns a negative errno on error
    
    [ Upstream commit c198b7773ca5bc3bdfb15b85e414fb9a99a5e5ba ]
    
    copy_to_user() returns the number of bytes not copied, thus if there is
    a problem a positive number. However the ioctl callback is supposed to
    return a negative error code on error.
    
    This error is a unfortunate as strictly speaking it became ABI with the
    introduction of pwm character devices. However I never saw the issue in
    real life -- I found this by code inspection -- and it only affects an
    error case where readonly memory is passed to the ioctls or the address
    mapping changes while the ioctl is active. Also there are already error
    cases returning negative values, so the calling code must be prepared to
    see such values already.
    
    Fixes: 9c06f26ba5f5 ("pwm: Add support for pwmchip devices for faster and easier userspace access")
    Signed-off-by: Uwe Kleine-König <[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]>

pwm: max7360: Populate missing .sizeof_wfhw in max7360_pwm_ops [+ + +]
Author: Richard Genoud <[email protected]>
Date:   Tue Jan 13 17:39:07 2026 +0100

    pwm: max7360: Populate missing .sizeof_wfhw in max7360_pwm_ops
    
    [ Upstream commit 63faf32666e03a78cc985bcbae196418cf7d7938 ]
    
    The sizeof_wfhw field wasn't populated in max7360_pwm_ops so it was set
    to 0 by default.
    While this is ok for now because:
    sizeof(struct max7360_pwm_waveform) < PWM_WFHWSIZE
    in the future, if struct max7360_pwm_waveform grows, it could lead to
    stack corruption.
    
    Fixes: d93a75d94b79 ("pwm: max7360: Add MAX7360 PWM support")
    Signed-off-by: Richard Genoud <[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]>

 
regmap: Fix race condition in hwspinlock irqsave routine [+ + +]
Author: Cheng-Yu Lee <[email protected]>
Date:   Fri Jan 9 11:26:33 2026 +0800

    regmap: Fix race condition in hwspinlock irqsave routine
    
    [ Upstream commit 4b58aac989c1e3fafb1c68a733811859df388250 ]
    
    Previously, the address of the shared member '&map->spinlock_flags' was
    passed directly to 'hwspin_lock_timeout_irqsave'. This creates a race
    condition where multiple contexts contending for the lock could overwrite
    the shared flags variable, potentially corrupting the state for the
    current lock owner.
    
    Fix this by using a local stack variable 'flags' to store the IRQ state
    temporarily.
    
    Fixes: 8698b9364710 ("regmap: Add hardware spinlock support")
    Signed-off-by: Cheng-Yu Lee <[email protected]>
    Co-developed-by: Yu-Chun Lin <[email protected]>
    Signed-off-by: Yu-Chun Lin <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
Revert "nfc/nci: Add the inconsistency check between the input data length and count" [+ + +]
Author: Thadeu Lima de Souza Cascardo <[email protected]>
Date:   Tue Jan 13 17:24:58 2026 -0300

    Revert "nfc/nci: Add the inconsistency check between the input data length and count"
    
    commit f40ddcc0c0ca1a0122a7f4440b429f97d5832bdf upstream.
    
    This reverts commit 068648aab72c9ba7b0597354ef4d81ffaac7b979.
    
    NFC packets may have NUL-bytes. Checking for string length is not a correct
    assumption here. As long as there is a check for the length copied from
    copy_from_user, all should be fine.
    
    The fix only prevented the syzbot reproducer from triggering the bug
    because the packet is not enqueued anymore and the code that triggers the
    bug is not exercised.
    
    The fix even broke
    testing/selftests/nci/nci_dev, making all tests there fail. After the
    revert, 6 out of 8 tests pass.
    
    Fixes: 068648aab72c ("nfc/nci: Add the inconsistency check between the input data length and count")
    Cc: [email protected]
    Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
riscv: clocksource: Fix stimecmp update hazard on RV32 [+ + +]
Author: Naohiko Shimizu <[email protected]>
Date:   Sun Jan 4 22:59:36 2026 +0900

    riscv: clocksource: Fix stimecmp update hazard on RV32
    
    [ Upstream commit eaa9bb1d39d59e7c17b06cec12622b7c586ab629 ]
    
    On RV32, updating the 64-bit stimecmp (or vstimecmp) CSR requires two
    separate 32-bit writes. A race condition exists if the timer triggers
    during these two writes.
    
    The RISC-V Privileged Specification (e.g., Section 3.2.1 for mtimecmp)
    recommends a specific 3-step sequence to avoid spurious interrupts
    when updating 64-bit comparison registers on 32-bit systems:
    
    1. Set the low-order bits (stimecmp) to all ones (ULONG_MAX).
    2. Set the high-order bits (stimecmph) to the desired value.
    3. Set the low-order bits (stimecmp) to the desired value.
    
    Current implementation writes the LSB first without ensuring a future
    value, which may lead to a transient state where the 64-bit comparison
    is incorrectly evaluated as "expired" by the hardware. This results in
    spurious timer interrupts.
    
    This patch adopts the spec-recommended 3-step sequence to ensure the
    intermediate 64-bit state is never smaller than the current time.
    
    Fixes: 9f7a8ff6391f ("RISC-V: Prefer sstc extension if available")
    Signed-off-by: Naohiko Shimizu <[email protected]>
    Reviewed-by: Anup Patel <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Paul Walmsley <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

riscv: suspend: Fix stimecmp update hazard on RV32 [+ + +]
Author: Naohiko Shimizu <[email protected]>
Date:   Sun Jan 4 22:59:38 2026 +0900

    riscv: suspend: Fix stimecmp update hazard on RV32
    
    [ Upstream commit 344c5281f43851b22c7cc223fd0250c143fcbc79 ]
    
    On RV32, updating the 64-bit stimecmp (or vstimecmp) CSR requires two
    separate 32-bit writes. A race condition exists if the timer triggers
    during these two writes.
    
    The RISC-V Privileged Specification (e.g., Section 3.2.1 for mtimecmp)
    recommends a specific 3-step sequence to avoid spurious interrupts
    when updating 64-bit comparison registers on 32-bit systems:
    
    1. Set the low-order bits (stimecmp) to all ones (ULONG_MAX).
    2. Set the high-order bits (stimecmph) to the desired value.
    3. Set the low-order bits (stimecmp) to the desired value.
    
    Current implementation writes the LSB first without ensuring a future
    value, which may lead to a transient state where the 64-bit comparison
    is incorrectly evaluated as "expired" by the hardware. This results in
    spurious timer interrupts.
    
    This patch adopts the spec-recommended 3-step sequence to ensure the
    intermediate 64-bit state is never smaller than the current time.
    
    Fixes: ffef54ad4110 ("riscv: Add stimecmp save and restore")
    Signed-off-by: Naohiko Shimizu <[email protected]>
    Reviewed-by: Anup Patel <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Paul Walmsley <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
rust: io: always inline functions using build_assert with arguments [+ + +]
Author: Alexandre Courbot <[email protected]>
Date:   Mon Dec 8 11:47:00 2025 +0900

    rust: io: always inline functions using build_assert with arguments
    
    commit 33d19f621641de1b6ec6fe1bb2ac68a7d2c61f6a upstream.
    
    `build_assert` relies on the compiler to optimize out its error path.
    Functions using it with its arguments must thus always be inlined,
    otherwise the error path of `build_assert` might not be optimized out,
    triggering a build error.
    
    Cc: [email protected]
    Fixes: ce30d94e6855 ("rust: add `io::{Io, IoRaw}` base types")
    Reviewed-by: Daniel Almeida <[email protected]>
    Signed-off-by: Alexandre Courbot <[email protected]>
    Tested-by: Timur Tabi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Danilo Krummrich <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

rust: irq: always inline functions using build_assert with arguments [+ + +]
Author: Alexandre Courbot <[email protected]>
Date:   Mon Dec 8 11:47:04 2025 +0900

    rust: irq: always inline functions using build_assert with arguments
    
    commit 5d9c4c272ba06055d19e05c2a02e16e58acc8943 upstream.
    
    `build_assert` relies on the compiler to optimize out its error path.
    Functions using it with its arguments must thus always be inlined,
    otherwise the error path of `build_assert` might not be optimized out,
    triggering a build error.
    
    Cc: [email protected]
    Fixes: 746680ec6696 ("rust: irq: add flags module")
    Reviewed-by: Daniel Almeida <[email protected]>
    Signed-off-by: Alexandre Courbot <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Danilo Krummrich <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
rxrpc: Fix data-race warning and potential load/store tearing [+ + +]
Author: David Howells <[email protected]>
Date:   Tue Jan 20 10:13:05 2026 +0000

    rxrpc: Fix data-race warning and potential load/store tearing
    
    commit 5d5fe8bcd331f1e34e0943ec7c18432edfcf0e8b upstream.
    
    Fix the following:
    
            BUG: KCSAN: data-race in rxrpc_peer_keepalive_worker / rxrpc_send_data_packet
    
    which is reporting an issue with the reads and writes to ->last_tx_at in:
    
            conn->peer->last_tx_at = ktime_get_seconds();
    
    and:
    
            keepalive_at = peer->last_tx_at + RXRPC_KEEPALIVE_TIME;
    
    The lockless accesses to these to values aren't actually a problem as the
    read only needs an approximate time of last transmission for the purposes
    of deciding whether or not the transmission of a keepalive packet is
    warranted yet.
    
    Also, as ->last_tx_at is a 64-bit value, tearing can occur on a 32-bit
    arch.
    
    Fix both of these by switching to an unsigned int for ->last_tx_at and only
    storing the LSW of the time64_t.  It can then be reconstructed at need
    provided no more than 68 years has elapsed since the last transmission.
    
    Fixes: ace45bec6d77 ("rxrpc: Fix firewall route keepalive")
    Reported-by: [email protected]
    Closes: https://lore.kernel.org/r/[email protected]/
    Signed-off-by: David Howells <[email protected]>
    cc: Marc Dionne <[email protected]>
    cc: Simon Horman <[email protected]>
    cc: [email protected]
    cc: [email protected]
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

rxrpc: Fix recvmsg() unconditional requeue [+ + +]
Author: David Howells <[email protected]>
Date:   Wed Jan 14 22:03:23 2026 +0000

    rxrpc: Fix recvmsg() unconditional requeue
    
    commit 2c28769a51deb6022d7fbd499987e237a01dd63a upstream.
    
    If rxrpc_recvmsg() fails because MSG_DONTWAIT was specified but the call at
    the front of the recvmsg queue already has its mutex locked, it requeues
    the call - whether or not the call is already queued.  The call may be on
    the queue because MSG_PEEK was also passed and so the call was not dequeued
    or because the I/O thread requeued it.
    
    The unconditional requeue may then corrupt the recvmsg queue, leading to
    things like UAFs or refcount underruns.
    
    Fix this by only requeuing the call if it isn't already on the queue - and
    moving it to the front if it is already queued.  If we don't queue it, we
    have to put the ref we obtained by dequeuing it.
    
    Also, MSG_PEEK doesn't dequeue the call so shouldn't call
    rxrpc_notify_socket() for the call if we didn't use up all the data on the
    queue, so fix that also.
    
    Fixes: 540b1c48c37a ("rxrpc: Fix deadlock between call creation and sendmsg/recvmsg")
    Reported-by: Faith <[email protected]>
    Reported-by: Pumpkin Chang <[email protected]>
    Signed-off-by: David Howells <[email protected]>
    Acked-by: Marc Dionne <[email protected]>
    cc: Nir Ohfeld <[email protected]>
    cc: Willy Tarreau <[email protected]>
    cc: Simon Horman <[email protected]>
    cc: [email protected]
    cc: [email protected]
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
s390/ap: Fix wrong APQN fill calculation [+ + +]
Author: Harald Freudenberger <[email protected]>
Date:   Mon Jan 19 10:37:28 2026 +0100

    s390/ap: Fix wrong APQN fill calculation
    
    commit 3317785a8803db629efc759d811d0f589d3a0b2d upstream.
    
    The upper limit of the firmware queue fill state for each APQN
    is reported by the hwinfo.qd field. This field shows the
    numbers 0-7 for 1-8 queue spaces available. But the exploiting
    code assumed the real boundary is stored there and thus stoppes
    queuing in messages one tick too early.
    
    Correct the limit calculation and thus offer a boost
    of 12.5% performance for high traffic on one APQN.
    
    Fixes: d4c53ae8e4948 ("s390/ap: store TAPQ hwinfo in struct ap_card")
    Cc: [email protected]
    Reported-by: Ingo Franzki <[email protected]>
    Reviewed-by: Ingo Franzki <[email protected]>
    Signed-off-by: Harald Freudenberger <[email protected]>
    Signed-off-by: Heiko Carstens <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
s390/boot/vmlinux.lds.S: Ensure bzImage ends with SecureBoot trailer [+ + +]
Author: Alexander Egorenkov <[email protected]>
Date:   Wed Jan 21 14:59:50 2026 +0100

    s390/boot/vmlinux.lds.S: Ensure bzImage ends with SecureBoot trailer
    
    commit ddc6cbef3ef10359b5640b4ee810a520edc73586 upstream.
    
    Since commit 3e86e4d74c04 ("kbuild: keep .modinfo section in
    vmlinux.unstripped") the .modinfo section which has SHF_ALLOC ends up
    in bzImage after the SecureBoot trailer. This breaks SecureBoot because
    the bootloader can no longer find the SecureBoot trailer with kernel's
    signature at the expected location in bzImage. To fix the bug,
    move discarded sections before the ELF_DETAILS macro and discard
    the .modinfo section which is not needed by the decompressor.
    
    Fixes: 3e86e4d74c04 ("kbuild: keep .modinfo section in vmlinux.unstripped")
    Cc: [email protected]
    Suggested-by: Vasily Gorbik <[email protected]>
    Reviewed-by: Vasily Gorbik <[email protected]>
    Tested-by: Vasily Gorbik <[email protected]>
    Signed-off-by: Alexander Egorenkov <[email protected]>
    Signed-off-by: Heiko Carstens <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
sched/fair: Fix pelt clock sync when entering idle [+ + +]
Author: Vincent Guittot <[email protected]>
Date:   Wed Jan 21 17:33:17 2026 +0100

    sched/fair: Fix pelt clock sync when entering idle
    
    [ Upstream commit 98c88dc8a1ace642d9021b103b28cba7b51e3abc ]
    
    Samuel and Alex reported regressions of the util_avg of RT rq with
    commit 17e3e88ed0b6 ("sched/fair: Fix pelt lost idle time detection").
    It happens that fair is updating and syncing the pelt clock with task one
    when pick_next_task_fair() fails to pick a task but before the prev
    scheduling class got a chance to update its pelt signals.
    
    Move update_idle_rq_clock_pelt() in set_next_task_idle() which is called
    after prev class has been called.
    
    Fixes: 17e3e88ed0b6 ("sched/fair: Fix pelt lost idle time detection")
    Closes: https://lore.kernel.org/all/CAG2KctpO6VKS6GN4QWDji0t92_gNBJ7HjjXrE+6H+RwRXt=iLg@mail.gmail.com/
    Closes: https://lore.kernel.org/all/[email protected]/
    Reported-by: Samuel Wu <[email protected]>
    Reported-by: Alex Hoh <[email protected]>
    Signed-off-by: Vincent Guittot <[email protected]>
    Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
    Tested-by: Samuel Wu <[email protected]>
    Tested-by: Alex Hoh <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Sasha Levin <[email protected]>

 
scsi: core: Wake up the error handler when final completions race against each other [+ + +]
Author: David Jeffery <[email protected]>
Date:   Tue Jan 13 11:08:13 2026 -0500

    scsi: core: Wake up the error handler when final completions race against each other
    
    [ Upstream commit fe2f8ad6f0999db3b318359a01ee0108c703a8c3 ]
    
    The fragile ordering between marking commands completed or failed so
    that the error handler only wakes when the last running command
    completes or times out has race conditions. These race conditions can
    cause the SCSI layer to fail to wake the error handler, leaving I/O
    through the SCSI host stuck as the error state cannot advance.
    
    First, there is an memory ordering issue within scsi_dec_host_busy().
    The write which clears SCMD_STATE_INFLIGHT may be reordered with reads
    counting in scsi_host_busy(). While the local CPU will see its own
    write, reordering can allow other CPUs in scsi_dec_host_busy() or
    scsi_eh_inc_host_failed() to see a raised busy count, causing no CPU to
    see a host busy equal to the host_failed count.
    
    This race condition can be prevented with a memory barrier on the error
    path to force the write to be visible before counting host busy
    commands.
    
    Second, there is a general ordering issue with scsi_eh_inc_host_failed(). By
    counting busy commands before incrementing host_failed, it can race with a
    final command in scsi_dec_host_busy(), such that scsi_dec_host_busy() does
    not see host_failed incremented but scsi_eh_inc_host_failed() counts busy
    commands before SCMD_STATE_INFLIGHT is cleared by scsi_dec_host_busy(),
    resulting in neither waking the error handler task.
    
    This needs the call to scsi_host_busy() to be moved after host_failed is
    incremented to close the race condition.
    
    Fixes: 6eb045e092ef ("scsi: core: avoid host-wide host_busy counter for scsi_mq")
    Signed-off-by: David Jeffery <[email protected]>
    Reviewed-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: qla2xxx: Sanitize payload size to prevent member overflow [+ + +]
Author: Jiasheng Jiang <[email protected]>
Date:   Tue Jan 6 20:53:44 2026 +0000

    scsi: qla2xxx: Sanitize payload size to prevent member overflow
    
    [ Upstream commit 19bc5f2a6962dfaa0e32d0e0bc2271993d85d414 ]
    
    In qla27xx_copy_fpin_pkt() and qla27xx_copy_multiple_pkt(), the frame_size
    reported by firmware is used to calculate the copy length into
    item->iocb. However, the iocb member is defined as a fixed-size 64-byte
    array within struct purex_item.
    
    If the reported frame_size exceeds 64 bytes, subsequent memcpy calls will
    overflow the iocb member boundary. While extra memory might be allocated,
    this cross-member write is unsafe and triggers warnings under
    CONFIG_FORTIFY_SOURCE.
    
    Fix this by capping total_bytes to the size of the iocb member (64 bytes)
    before allocation and copying. This ensures all copies remain within the
    bounds of the destination structure member.
    
    Fixes: 875386b98857 ("scsi: qla2xxx: Add Unsolicited LS Request and Response Support for NVMe")
    Signed-off-by: Jiasheng Jiang <[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: storvsc: Process unsupported MODE_SENSE_10 [+ + +]
Author: Long Li <[email protected]>
Date:   Fri Jan 16 17:03:02 2026 -0800

    scsi: storvsc: Process unsupported MODE_SENSE_10
    
    commit 9eacec5d18f98f89be520eeeef4b377acee3e4b8 upstream.
    
    The Hyper-V host does not support MODE_SENSE_10 and MODE_SENSE.  The
    driver handles MODE_SENSE as unsupported command, but not for
    MODE_SENSE_10. Add MODE_SENSE_10 to the same handling logic and return
    correct code to SCSI layer.
    
    Fixes: 89ae7d709357 ("Staging: hv: storvsc: Move the storage driver out of the staging area")
    Cc: [email protected]
    Signed-off-by: Long Li <[email protected]>
    Reviewed-by: Michael Kelley <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

scsi: xen: scsiback: Fix potential memory leak in scsiback_remove() [+ + +]
Author: Abdun Nihaal <[email protected]>
Date:   Tue Dec 23 12:00:11 2025 +0530

    scsi: xen: scsiback: Fix potential memory leak in scsiback_remove()
    
    commit 901a5f309daba412e2a30364d7ec1492fa11c32c upstream.
    
    Memory allocated for struct vscsiblk_info in scsiback_probe() is not
    freed in scsiback_remove() leading to potential memory leaks on remove,
    as well as in the scsiback_probe() error paths. Fix that by freeing it
    in scsiback_remove().
    
    Cc: [email protected]
    Fixes: d9d660f6e562 ("xen-scsiback: Add Xen PV SCSI backend driver")
    Signed-off-by: Abdun Nihaal <[email protected]>
    Reviewed-by: Juergen Gross <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Martin K. Petersen <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
sctp: move SCTP_CMD_ASSOC_SHKEY right after SCTP_CMD_PEER_INIT [+ + +]
Author: Xin Long <[email protected]>
Date:   Tue Jan 13 12:10:26 2026 -0500

    sctp: move SCTP_CMD_ASSOC_SHKEY right after SCTP_CMD_PEER_INIT
    
    [ Upstream commit a80c9d945aef55b23b54838334345f20251dad83 ]
    
    A null-ptr-deref was reported in the SCTP transmit path when SCTP-AUTH key
    initialization fails:
    
      ==================================================================
      KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
      CPU: 0 PID: 16 Comm: ksoftirqd/0 Tainted: G W 6.6.0 #2
      RIP: 0010:sctp_packet_bundle_auth net/sctp/output.c:264 [inline]
      RIP: 0010:sctp_packet_append_chunk+0xb36/0x1260 net/sctp/output.c:401
      Call Trace:
    
      sctp_packet_transmit_chunk+0x31/0x250 net/sctp/output.c:189
      sctp_outq_flush_data+0xa29/0x26d0 net/sctp/outqueue.c:1111
      sctp_outq_flush+0xc80/0x1240 net/sctp/outqueue.c:1217
      sctp_cmd_interpreter.isra.0+0x19a5/0x62c0 net/sctp/sm_sideeffect.c:1787
      sctp_side_effects net/sctp/sm_sideeffect.c:1198 [inline]
      sctp_do_sm+0x1a3/0x670 net/sctp/sm_sideeffect.c:1169
      sctp_assoc_bh_rcv+0x33e/0x640 net/sctp/associola.c:1052
      sctp_inq_push+0x1dd/0x280 net/sctp/inqueue.c:88
      sctp_rcv+0x11ae/0x3100 net/sctp/input.c:243
      sctp6_rcv+0x3d/0x60 net/sctp/ipv6.c:1127
    
    The issue is triggered when sctp_auth_asoc_init_active_key() fails in
    sctp_sf_do_5_1C_ack() while processing an INIT_ACK. In this case, the
    command sequence is currently:
    
    - SCTP_CMD_PEER_INIT
    - SCTP_CMD_TIMER_STOP (T1_INIT)
    - SCTP_CMD_TIMER_START (T1_COOKIE)
    - SCTP_CMD_NEW_STATE (COOKIE_ECHOED)
    - SCTP_CMD_ASSOC_SHKEY
    - SCTP_CMD_GEN_COOKIE_ECHO
    
    If SCTP_CMD_ASSOC_SHKEY fails, asoc->shkey remains NULL, while
    asoc->peer.auth_capable and asoc->peer.peer_chunks have already been set by
    SCTP_CMD_PEER_INIT. This allows a DATA chunk with auth = 1 and shkey = NULL
    to be queued by sctp_datamsg_from_user().
    
    Since command interpretation stops on failure, no COOKIE_ECHO should been
    sent via SCTP_CMD_GEN_COOKIE_ECHO. However, the T1_COOKIE timer has already
    been started, and it may enqueue a COOKIE_ECHO into the outqueue later. As
    a result, the DATA chunk can be transmitted together with the COOKIE_ECHO
    in sctp_outq_flush_data(), leading to the observed issue.
    
    Similar to the other places where it calls sctp_auth_asoc_init_active_key()
    right after sctp_process_init(), this patch moves the SCTP_CMD_ASSOC_SHKEY
    immediately after SCTP_CMD_PEER_INIT, before stopping T1_INIT and starting
    T1_COOKIE. This ensures that if shared key generation fails, authenticated
    DATA cannot be sent. It also allows the T1_INIT timer to retransmit INIT,
    giving the client another chance to process INIT_ACK and retry key setup.
    
    Fixes: 730fc3d05cd4 ("[SCTP]: Implete SCTP-AUTH parameter processing")
    Reported-by: Zhen Chen <[email protected]>
    Tested-by: Zhen Chen <[email protected]>
    Signed-off-by: Xin Long <[email protected]>
    Link: https://patch.msgid.link/44881224b375aa8853f5e19b4055a1a56d895813.1768324226.git.lucien.xin@gmail.com
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
selftests/ublk: fix error handling for starting device [+ + +]
Author: Ming Lei <[email protected]>
Date:   Tue Jan 13 16:58:01 2026 +0800

    selftests/ublk: fix error handling for starting device
    
    [ Upstream commit 23e62cf75518825aac12e9a22bdc40f062428898 ]
    
    Fix error handling in ublk_start_daemon() when start_dev fails:
    
    1. Call ublk_ctrl_stop_dev() to cancel inflight uring_cmd before
       cleanup. Without this, the device deletion may hang waiting for
       I/O completion that will never happen.
    
    2. Add fail_start label so that pthread_join() is called on the
       error path. This ensures proper thread cleanup when startup fails.
    
    Fixes: 6aecda00b7d1 ("selftests: ublk: add kernel selftests for ublk")
    Signed-off-by: Ming Lei <[email protected]>
    Reviewed-by: Caleb Sander Mateos <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

selftests/ublk: fix garbage output in foreground mode [+ + +]
Author: Ming Lei <[email protected]>
Date:   Tue Jan 13 16:58:02 2026 +0800

    selftests/ublk: fix garbage output in foreground mode
    
    [ Upstream commit e7e1cc18f120a415646be12470169a978a1adcd9 ]
    
    Initialize _evtfd to -1 in struct dev_ctx to prevent garbage output
    when running kublk in foreground mode. Without this, _evtfd is
    zero-initialized to 0 (stdin), and ublk_send_dev_event() writes
    binary data to stdin which appears as garbage on the terminal.
    
    Also fix debug message format string.
    
    Fixes: 6aecda00b7d1 ("selftests: ublk: add kernel selftests for ublk")
    Signed-off-by: Ming Lei <[email protected]>
    Reviewed-by: Caleb Sander Mateos <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

selftests/ublk: fix IO thread idle check [+ + +]
Author: Ming Lei <[email protected]>
Date:   Tue Jan 13 16:58:00 2026 +0800

    selftests/ublk: fix IO thread idle check
    
    [ Upstream commit 75aad5ffe099a1b1a342257236dc260493917ed2 ]
    
    Include cmd_inflight in ublk_thread_is_done() check. Without this,
    the thread may exit before all FETCH commands are completed, which
    may cause device deletion to hang.
    
    Fixes: 6aecda00b7d1 ("selftests: ublk: add kernel selftests for ublk")
    Signed-off-by: Ming Lei <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
selftests: net: amt: wait longer for connection before sending packets [+ + +]
Author: Taehee Yoo <[email protected]>
Date:   Tue Jan 20 13:39:30 2026 +0000

    selftests: net: amt: wait longer for connection before sending packets
    
    [ Upstream commit 04708606fd7bdc34b69089a4ff848ff36d7088f9 ]
    
    Both send_mcast4() and send_mcast6() use sleep 2 to wait for the tunnel
    connection between the gateway and the relay, and for the listener
    socket to be created in the LISTENER namespace.
    
    However, tests sometimes fail because packets are sent before the
    connection is fully established.
    
    Increase the waiting time to make the tests more reliable, and use
    wait_local_port_listen() to explicitly wait for the listener socket.
    
    Fixes: c08e8baea78e ("selftests: add amt interface selftest script")
    Signed-off-by: Taehee Yoo <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

selftests: net: fib-onlink-tests: Convert to use namespaces by default [+ + +]
Author: Ricardo B. Marlière <[email protected]>
Date:   Tue Jan 13 12:37:44 2026 -0300

    selftests: net: fib-onlink-tests: Convert to use namespaces by default
    
    [ Upstream commit 4f5f148dd7c0459229d2ab9a769b2e820f9ee6a2 ]
    
    Currently, the test breaks if the SUT already has a default route
    configured for IPv6. Fix by avoiding the use of the default namespace.
    
    Fixes: 4ed591c8ab44 ("net/ipv6: Allow onlink routes to have a device mismatch if it is the default route")
    Suggested-by: Fernando Fernandez Mancera <[email protected]>
    Signed-off-by: Ricardo B. Marlière <[email protected]>
    Reviewed-by: Ido Schimmel <[email protected]>
    Reviewed-by: Fernando Fernandez Mancera <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
serial: 8250_pci: Fix broken RS485 for F81504/508/512 [+ + +]
Author: Marnix Rijnart <[email protected]>
Date:   Mon Jan 12 01:08:23 2026 +0100

    serial: 8250_pci: Fix broken RS485 for F81504/508/512
    
    commit 27aff0a56b3c77ea1a73641c9b3c4172a8f7238f upstream.
    
    Fintek F81504/508/512 can support both RTS_ON_SEND and RTS_AFTER_SEND,
    but pci_fintek_rs485_supported only announces the former.
    
    This makes it impossible to unset SER_RS485_RTS_ON_SEND from
    userspace because of uart_sanitize_serial_rs485(). Some devices
    with these chips need RTS low on TX, so they are effectively broken.
    
    Fix this by announcing the support for SER_RS485_RTS_AFTER_SEND,
    similar to commit 068d35a7be65 ("serial: sc16is7xx: announce support
    for SER_RS485_RTS_ON_SEND").
    
    Fixes: 4afeced55baa ("serial: core: fix sanitizing check for RTS settings")
    Cc: stable <[email protected]>
    Signed-off-by: Marnix Rijnart <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

serial: Fix not set tty->port race condition [+ + +]
Author: Krzysztof Kozlowski <[email protected]>
Date:   Fri Jan 23 08:21:40 2026 +0100

    serial: Fix not set tty->port race condition
    
    commit 32f37e57583f869140cff445feedeea8a5fea986 upstream.
    
    Revert commit bfc467db60b7 ("serial: remove redundant
    tty_port_link_device()") because the tty_port_link_device() is not
    redundant: the tty->port has to be confured before we call
    uart_configure_port(), otherwise user-space can open console without TTY
    linked to the driver.
    
    This tty_port_link_device() was added explicitly to avoid this exact
    issue in commit fb2b90014d78 ("tty: link tty and port before configuring
    it as console"), so offending commit basically reverted the fix saying
    it is redundant without addressing the actual race condition presented
    there.
    
    Reproducible always as tty->port warning on Qualcomm SoC with most of
    devices disabled, so with very fast boot, and one serial device being
    the console:
    
      printk: legacy console [ttyMSM0] enabled
      printk: legacy console [ttyMSM0] enabled
      printk: legacy bootconsole [qcom_geni0] disabled
      printk: legacy bootconsole [qcom_geni0] disabled
      ------------[ cut here ]------------
      tty_init_dev: ttyMSM driver does not set tty->port. This would crash the kernel. Fix the driver!
      WARNING: drivers/tty/tty_io.c:1414 at tty_init_dev.part.0+0x228/0x25c, CPU#2: systemd/1
      Modules linked in: socinfo tcsrcc_eliza gcc_eliza sm3_ce fuse ipv6
      CPU: 2 UID: 0 PID: 1 Comm: systemd Tainted: G S                  6.19.0-rc4-next-20260108-00024-g2202f4d30aa8 #73 PREEMPT
      Tainted: [S]=CPU_OUT_OF_SPEC
      Hardware name: Qualcomm Technologies, Inc. Eliza (DT)
      ...
      tty_init_dev.part.0 (drivers/tty/tty_io.c:1414 (discriminator 11)) (P)
      tty_open (arch/arm64/include/asm/atomic_ll_sc.h:95 (discriminator 3) drivers/tty/tty_io.c:2073 (discriminator 3) drivers/tty/tty_io.c:2120 (discriminator 3))
      chrdev_open (fs/char_dev.c:411)
      do_dentry_open (fs/open.c:962)
      vfs_open (fs/open.c:1094)
      do_open (fs/namei.c:4634)
      path_openat (fs/namei.c:4793)
      do_filp_open (fs/namei.c:4820)
      do_sys_openat2 (fs/open.c:1391 (discriminator 3))
      ...
      Starting Network Name Resolution...
    
    Apparently the flow with this small Yocto-based ramdisk user-space is:
    
    driver (qcom_geni_serial.c):                  user-space:
    ============================                  ===========
    qcom_geni_serial_probe()
     uart_add_one_port()
      serial_core_register_port()
       serial_core_add_one_port()
        uart_configure_port()
         register_console()
        |
        |                                         open console
        |                                          ...
        |                                          tty_init_dev()
        |                                           driver->ports[idx] is NULL
        |
        tty_port_register_device_attr_serdev()
         tty_port_link_device() <- set driver->ports[idx]
    
    Fixes: bfc467db60b7 ("serial: remove redundant tty_port_link_device()")
    Cc: [email protected]
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Reviewed-by: Jiri Slaby <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
slab: fix kmalloc_nolock() context check for PREEMPT_RT [+ + +]
Author: Swaraj Gaikwad <[email protected]>
Date:   Tue Jan 13 20:36:39 2026 +0530

    slab: fix kmalloc_nolock() context check for PREEMPT_RT
    
    commit 99a3e3a1cfc93b8fe318c0a3a5cfb01f1d4ad53c upstream.
    
    On PREEMPT_RT kernels, local_lock becomes a sleeping lock. The current
    check in kmalloc_nolock() only verifies we're not in NMI or hard IRQ
    context, but misses the case where preemption is disabled.
    
    When a BPF program runs from a tracepoint with preemption disabled
    (preempt_count > 0), kmalloc_nolock() proceeds to call
    local_lock_irqsave() which attempts to acquire a sleeping lock,
    triggering:
    
      BUG: sleeping function called from invalid context
      in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6128
      preempt_count: 2, expected: 0
    
    Fix this by checking !preemptible() on PREEMPT_RT, which directly
    expresses the constraint that we cannot take a sleeping lock when
    preemption is disabled. This encompasses the previous checks for NMI
    and hard IRQ contexts while also catching cases where preemption is
    disabled.
    
    Fixes: af92793e52c3 ("slab: Introduce kmalloc_nolock() and kfree_nolock().")
    Reported-by: [email protected]
    Closes: https://syzkaller.appspot.com/bug?extid=b1546ad4a95331b2101e
    Signed-off-by: Swaraj Gaikwad <[email protected]>
    Acked-by: Sebastian Andrzej Siewior <[email protected]>
    Acked-by: Alexei Starovoitov <[email protected]>
    Acked-by: Harry Yoo <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Cc: <[email protected]>
    Signed-off-by: Vlastimil Babka <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
slimbus: core: fix device reference leak on report present [+ + +]
Author: Johan Hovold <[email protected]>
Date:   Wed Nov 26 15:53:26 2025 +0100

    slimbus: core: fix device reference leak on report present
    
    commit 9391380eb91ea5ac792aae9273535c8da5b9aa01 upstream.
    
    Slimbus devices can be allocated dynamically upon reception of
    report-present messages.
    
    Make sure to drop the reference taken when looking up already registered
    devices.
    
    Note that this requires taking an extra reference in case the device has
    not yet been registered and has to be allocated.
    
    Fixes: 46a2bb5a7f7e ("slimbus: core: Add slim controllers support")
    Cc: [email protected]      # 4.16
    Signed-off-by: Johan Hovold <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

slimbus: core: fix runtime PM imbalance on report present [+ + +]
Author: Johan Hovold <[email protected]>
Date:   Wed Nov 26 15:53:25 2025 +0100

    slimbus: core: fix runtime PM imbalance on report present
    
    commit 0eb4ff6596114aabba1070a66afa2c2f5593739f upstream.
    
    Make sure to balance the runtime PM usage count in case slimbus device
    or address allocation fails on report present, which would otherwise
    prevent the controller from suspending.
    
    Fixes: 4b14e62ad3c9 ("slimbus: Add support for 'clock-pause' feature")
    Cc: [email protected]      # 4.16
    Signed-off-by: Johan Hovold <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
spi: spi-sprd-adi: Fix double free in probe error path [+ + +]
Author: Felix Gu <[email protected]>
Date:   Fri Jan 9 20:49:53 2026 +0800

    spi: spi-sprd-adi: Fix double free in probe error path
    
    [ Upstream commit 383d4f5cffcc8df930d95b06518a9d25a6d74aac ]
    
    The driver currently uses spi_alloc_host() to allocate the controller
    but registers it using devm_spi_register_controller().
    
    If devm_register_restart_handler() fails, the code jumps to the
    put_ctlr label and calls spi_controller_put(). However, since the
    controller was registered via a devm function, the device core will
    automatically call spi_controller_put() again when the probe fails.
    This results in a double-free of the spi_controller structure.
    
    Fix this by switching to devm_spi_alloc_host() and removing the
    manual spi_controller_put() call.
    
    Fixes: ac17750 ("spi: sprd: Add the support of restarting the system")
    Signed-off-by: Felix Gu <[email protected]>
    Reviewed-by: Baolin Wang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Mark Brown <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
timekeeping: Adjust the leap state for the correct auxiliary timekeeper [+ + +]
Author: Thomas Weißschuh <[email protected]>
Date:   Tue Jan 20 07:55:55 2026 +0100

    timekeeping: Adjust the leap state for the correct auxiliary timekeeper
    
    commit e806f7dde8ba28bc72a7a0898589cac79f6362ac upstream.
    
    When __do_ajdtimex() was introduced to handle adjtimex for any
    timekeeper, this reference to tk_core was not updated. When called on an
    auxiliary timekeeper, the core timekeeper would be updated incorrectly.
    
    This gets caught by the lock debugging diagnostics because the
    timekeepers sequence lock gets written to without holding its
    associated spinlock:
    
    WARNING: include/linux/seqlock.h:226 at __do_adjtimex+0x394/0x3b0, CPU#2: test/125
    aux_clock_adj (kernel/time/timekeeping.c:2979)
    __do_sys_clock_adjtime (kernel/time/posix-timers.c:1161 kernel/time/posix-timers.c:1173)
    do_syscall_64 (arch/x86/entry/syscall_64.c:63 (discriminator 1) arch/x86/entry/syscall_64.c:94 (discriminator 1))
    entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:131)
    
    Update the correct auxiliary timekeeper.
    
    Fixes: 775f71ebedd3 ("timekeeping: Make do_adjtimex() reusable")
    Fixes: ecf3e7030491 ("timekeeping: Provide adjtimex() for auxiliary clocks")
    Signed-off-by: Thomas Weißschuh <[email protected]>
    Signed-off-by: Thomas Gleixner <[email protected]>
    Cc: [email protected]
    Link: https://patch.msgid.link/20260120-timekeeper-auxclock-leapstate-v1-1-5b358c6b3cfd@linutronix.de
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
tools: ynl: Specify --no-line-number in ynl-regen.sh. [+ + +]
Author: Kuniyuki Iwashima <[email protected]>
Date:   Thu Jan 15 17:24:47 2026 +0000

    tools: ynl: Specify --no-line-number in ynl-regen.sh.
    
    [ Upstream commit 68578370f9b3a2aba5964b273312d51c581b6aad ]
    
    If grep.lineNumber is enabled in .gitconfig,
    
      [grep]
      lineNumber = true
    
    ynl-regen.sh fails with the following error:
    
      $ ./tools/net/ynl/ynl-regen.sh -f
      ...
      ynl_gen_c.py: error: argument --mode: invalid choice: '4:' (choose from user, kernel, uapi)
            GEN 4:  net/ipv4/fou_nl.c
    
    Let's specify --no-line-number explicitly.
    
    Fixes: be5bea1cc0bf ("net: add basic C code generators for Netlink")
    Suggested-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Kuniyuki Iwashima <[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]>

 
tracing: Fix crash on synthetic stacktrace field usage [+ + +]
Author: Steven Rostedt <[email protected]>
Date:   Thu Jan 22 19:48:24 2026 -0500

    tracing: Fix crash on synthetic stacktrace field usage
    
    commit 90f9f5d64cae4e72defd96a2a22760173cb3c9ec upstream.
    
    When creating a synthetic event based on an existing synthetic event that
    had a stacktrace field and the new synthetic event used that field a
    kernel crash occurred:
    
     ~# cd /sys/kernel/tracing
     ~# echo 's:stack unsigned long stack[];' > dynamic_events
     ~# echo 'hist:keys=prev_pid:s0=common_stacktrace if prev_state & 3' >> events/sched/sched_switch/trigger
     ~# echo 'hist:keys=next_pid:s1=$s0:onmatch(sched.sched_switch).trace(stack,$s1)' >> events/sched/sched_switch/trigger
    
    The above creates a synthetic event that takes a stacktrace when a task
    schedules out in a non-running state and passes that stacktrace to the
    sched_switch event when that task schedules back in. It triggers the
    "stack" synthetic event that has a stacktrace as its field (called "stack").
    
     ~# echo 's:syscall_stack s64 id; unsigned long stack[];' >> dynamic_events
     ~# echo 'hist:keys=common_pid:s2=stack' >> events/synthetic/stack/trigger
     ~# echo 'hist:keys=common_pid:s3=$s2,i0=id:onmatch(synthetic.stack).trace(syscall_stack,$i0,$s3)' >> events/raw_syscalls/sys_exit/trigger
    
    The above makes another synthetic event called "syscall_stack" that
    attaches the first synthetic event (stack) to the sys_exit trace event and
    records the stacktrace from the stack event with the id of the system call
    that is exiting.
    
    When enabling this event (or using it in a historgram):
    
     ~# echo 1 > events/synthetic/syscall_stack/enable
    
    Produces a kernel crash!
    
     BUG: unable to handle page fault for address: 0000000000400010
     #PF: supervisor read access in kernel mode
     #PF: error_code(0x0000) - not-present page
     PGD 0 P4D 0
     Oops: Oops: 0000 [#1] SMP PTI
     CPU: 6 UID: 0 PID: 1257 Comm: bash Not tainted 6.16.3+deb14-amd64 #1 PREEMPT(lazy)  Debian 6.16.3-1
     Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.17.0-debian-1.17.0-1 04/01/2014
     RIP: 0010:trace_event_raw_event_synth+0x90/0x380
     Code: c5 00 00 00 00 85 d2 0f 84 e1 00 00 00 31 db eb 34 0f 1f 00 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 2e 0f 1f 84 00 00 00 00 00 <49> 8b 04 24 48 83 c3 01 8d 0c c5 08 00 00 00 01 cd 41 3b 5d 40 0f
     RSP: 0018:ffffd2670388f958 EFLAGS: 00010202
     RAX: ffff8ba1065cc100 RBX: 0000000000000000 RCX: 0000000000000000
     RDX: 0000000000000001 RSI: fffff266ffda7b90 RDI: ffffd2670388f9b0
     RBP: 0000000000000010 R08: ffff8ba104e76000 R09: ffffd2670388fa50
     R10: ffff8ba102dd42e0 R11: ffffffff9a908970 R12: 0000000000400010
     R13: ffff8ba10a246400 R14: ffff8ba10a710220 R15: fffff266ffda7b90
     FS:  00007fa3bc63f740(0000) GS:ffff8ba2e0f48000(0000) knlGS:0000000000000000
     CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
     CR2: 0000000000400010 CR3: 0000000107f9e003 CR4: 0000000000172ef0
     Call Trace:
      <TASK>
      ? __tracing_map_insert+0x208/0x3a0
      action_trace+0x67/0x70
      event_hist_trigger+0x633/0x6d0
      event_triggers_call+0x82/0x130
      trace_event_buffer_commit+0x19d/0x250
      trace_event_raw_event_sys_exit+0x62/0xb0
      syscall_exit_work+0x9d/0x140
      do_syscall_64+0x20a/0x2f0
      ? trace_event_raw_event_sched_switch+0x12b/0x170
      ? save_fpregs_to_fpstate+0x3e/0x90
      ? _raw_spin_unlock+0xe/0x30
      ? finish_task_switch.isra.0+0x97/0x2c0
      ? __rseq_handle_notify_resume+0xad/0x4c0
      ? __schedule+0x4b8/0xd00
      ? restore_fpregs_from_fpstate+0x3c/0x90
      ? switch_fpu_return+0x5b/0xe0
      ? do_syscall_64+0x1ef/0x2f0
      ? do_fault+0x2e9/0x540
      ? __handle_mm_fault+0x7d1/0xf70
      ? count_memcg_events+0x167/0x1d0
      ? handle_mm_fault+0x1d7/0x2e0
      ? do_user_addr_fault+0x2c3/0x7f0
      entry_SYSCALL_64_after_hwframe+0x76/0x7e
    
    The reason is that the stacktrace field is not labeled as such, and is
    treated as a normal field and not as a dynamic event that it is.
    
    In trace_event_raw_event_synth() the event is field is still treated as a
    dynamic array, but the retrieval of the data is considered a normal field,
    and the reference is just the meta data:
    
    // Meta data is retrieved instead of a dynamic array
      str_val = (char *)(long)var_ref_vals[val_idx];
    
    // Then when it tries to process it:
      len = *((unsigned long *)str_val) + 1;
    
    It triggers a kernel page fault.
    
    To fix this, first when defining the fields of the first synthetic event,
    set the filter type to FILTER_STACKTRACE. This is used later by the second
    synthetic event to know that this field is a stacktrace. When creating
    the field of the new synthetic event, have it use this FILTER_STACKTRACE
    to know to create a stacktrace field to copy the stacktrace into.
    
    Cc: [email protected]
    Cc: Masami Hiramatsu <[email protected]>
    Cc: Mathieu Desnoyers <[email protected]>
    Cc: Tom Zanussi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Fixes: 00cf3d672a9d ("tracing: Allow synthetic events to pass around stacktraces")
    Signed-off-by: Steven Rostedt (Google) <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
uacce: ensure safe queue release with state management [+ + +]
Author: Chenghai Huang <[email protected]>
Date:   Tue Dec 2 14:12:56 2025 +0800

    uacce: ensure safe queue release with state management
    
    commit 26c08dabe5475d99a13f353d8dd70e518de45663 upstream.
    
    Directly calling `put_queue` carries risks since it cannot
    guarantee that resources of `uacce_queue` have been fully released
    beforehand. So adding a `stop_queue` operation for the
    UACCE_CMD_PUT_Q command and leaving the `put_queue` operation to
    the final resource release ensures safety.
    
    Queue states are defined as follows:
    - UACCE_Q_ZOMBIE: Initial state
    - UACCE_Q_INIT: After opening `uacce`
    - UACCE_Q_STARTED: After `start` is issued via `ioctl`
    
    When executing `poweroff -f` in virt while accelerator are still
    working, `uacce_fops_release` and `uacce_remove` may execute
    concurrently. This can cause `uacce_put_queue` within
    `uacce_fops_release` to access a NULL `ops` pointer. Therefore, add
    state checks to prevent accessing freed pointers.
    
    Fixes: 015d239ac014 ("uacce: add uacce driver")
    Cc: [email protected]
    Signed-off-by: Chenghai Huang <[email protected]>
    Signed-off-by: Yang Shen <[email protected]>
    Acked-by: Zhangfei Gao <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

uacce: fix cdev handling in the cleanup path [+ + +]
Author: Wenkai Lin <[email protected]>
Date:   Tue Dec 2 14:12:53 2025 +0800

    uacce: fix cdev handling in the cleanup path
    
    commit a3bece3678f6c88db1f44c602b2a63e84b4040ac upstream.
    
    When cdev_device_add fails, it internally releases the cdev memory,
    and if cdev_device_del is then executed, it will cause a hang error.
    To fix it, we check the return value of cdev_device_add() and clear
    uacce->cdev to avoid calling cdev_device_del in the uacce_remove.
    
    Fixes: 015d239ac014 ("uacce: add uacce driver")
    Cc: [email protected]
    Signed-off-by: Wenkai Lin <[email protected]>
    Signed-off-by: Chenghai Huang <[email protected]>
    Acked-by: Zhangfei Gao <[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]>

uacce: fix isolate sysfs check condition [+ + +]
Author: Chenghai Huang <[email protected]>
Date:   Tue Dec 2 14:12:54 2025 +0800

    uacce: fix isolate sysfs check condition
    
    commit 98eec349259b1fd876f350b1c600403bcef8f85d upstream.
    
    uacce supports the device isolation feature. If the driver
    implements the isolate_err_threshold_read and
    isolate_err_threshold_write callback functions, uacce will create
    sysfs files now. Users can read and configure the isolation policy
    through sysfs. Currently, sysfs files are created as long as either
    isolate_err_threshold_read or isolate_err_threshold_write callback
    functions are present.
    
    However, accessing a non-existent callback function may cause the
    system to crash. Therefore, intercept the creation of sysfs if
    neither read nor write exists; create sysfs if either is supported,
    but intercept unsupported operations at the call site.
    
    Fixes: e3e289fbc0b5 ("uacce: supports device isolation feature")
    Cc: [email protected]
    Signed-off-by: Chenghai Huang <[email protected]>
    Acked-by: Zhangfei Gao <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

uacce: implement mremap in uacce_vm_ops to return -EPERM [+ + +]
Author: Yang Shen <[email protected]>
Date:   Tue Dec 2 14:12:55 2025 +0800

    uacce: implement mremap in uacce_vm_ops to return -EPERM
    
    commit 02695347be532b628f22488300d40c4eba48b9b7 upstream.
    
    The current uacce_vm_ops does not support the mremap operation of
    vm_operations_struct. Implement .mremap to return -EPERM to remind
    users.
    
    The reason we need to explicitly disable mremap is that when the
    driver does not implement .mremap, it uses the default mremap
    method. This could lead to a risk scenario:
    
    An application might first mmap address p1, then mremap to p2,
    followed by munmap(p1), and finally munmap(p2). Since the default
    mremap copies the original vma's vm_private_data (i.e., q) to the
    new vma, both munmap operations would trigger vma_close, causing
    q->qfr to be freed twice(qfr will be set to null here, so repeated
    release is ok).
    
    Fixes: 015d239ac014 ("uacce: add uacce driver")
    Cc: [email protected]
    Signed-off-by: Yang Shen <[email protected]>
    Signed-off-by: Chenghai Huang <[email protected]>
    Acked-by: Zhangfei Gao <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
ublk: fix ublksrv pid handling for pid namespaces [+ + +]
Author: Seamus Connor <[email protected]>
Date:   Wed Jan 14 18:59:52 2026 -0800

    ublk: fix ublksrv pid handling for pid namespaces
    
    [ Upstream commit 47bdf1d29caec7207b7f112230055db36602dfc0 ]
    
    When ublksrv runs inside a pid namespace, START/END_RECOVERY compared
    the stored init-ns tgid against the userspace pid (getpid vnr), so the
    check failed and control ops could not proceed. Compare against the
    caller’s init-ns tgid and store that value, then translate it back to
    the caller’s pid namespace when reporting GET_DEV_INFO so ublk list
    shows a sensible pid.
    
    Testing: start/recover in a pid namespace; `ublk list` shows
    reasonable pid values in init, child, and sibling namespaces.
    
    Fixes: c2c8089f325e ("ublk: validate ublk server pid")
    Signed-off-by: Seamus Connor <[email protected]>
    Reviewed-by: Caleb Sander Mateos <[email protected]>
    Reviewed-by: Ming Lei <[email protected]>
    Signed-off-by: Jens Axboe <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
usbnet: limit max_mtu based on device's hard_mtu [+ + +]
Author: Laurent Vivier <[email protected]>
Date:   Mon Jan 19 08:55:18 2026 +0100

    usbnet: limit max_mtu based on device's hard_mtu
    
    [ Upstream commit c7159e960f1472a5493ac99aff0086ab1d683594 ]
    
    The usbnet driver initializes net->max_mtu to ETH_MAX_MTU before calling
    the device's bind() callback. When the bind() callback sets
    dev->hard_mtu based the device's actual capability (from CDC Ethernet's
    wMaxSegmentSize descriptor), max_mtu is never updated to reflect this
    hardware limitation).
    
    This allows userspace (DHCP or IPv6 RA) to configure MTU larger than the
    device can handle, leading to silent packet drops when the backend sends
    packet exceeding the device's buffer size.
    
    Fix this by limiting net->max_mtu to the device's hard_mtu after the
    bind callback returns.
    
    See https://gitlab.com/qemu-project/qemu/-/issues/3268 and
        https://bugs.passt.top/attachment.cgi?bugid=189
    
    Fixes: f77f0aee4da4 ("net: use core MTU range checking in USB NIC drivers")
    Signed-off-by: Laurent Vivier <[email protected]>
    Link: https://bugs.passt.top/show_bug.cgi?id=189
    Reviewed-by: Stefano Brivio <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
veth: fix data race in veth_get_ethtool_stats [+ + +]
Author: David Yang <[email protected]>
Date:   Wed Jan 14 20:24:45 2026 +0800

    veth: fix data race in veth_get_ethtool_stats
    
    [ Upstream commit b47adaab8b3d443868096bac08fdbb3d403194ba ]
    
    In veth_get_ethtool_stats(), some statistics protected by
    u64_stats_sync, are read and accumulated in ignorance of possible
    u64_stats_fetch_retry() events. These statistics, peer_tq_xdp_xmit and
    peer_tq_xdp_xmit_err, are already accumulated by veth_xdp_xmit(). Fix
    this by reading them into a temporary buffer first.
    
    Fixes: 5fe6e56776ba ("veth: rely on peer veth_rq for ndo_xdp_xmit accounting")
    Signed-off-by: David Yang <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
vsock/test: Do not filter kallsyms by symbol type [+ + +]
Author: Michal Luczaj <[email protected]>
Date:   Fri Jan 16 09:52:36 2026 +0100

    vsock/test: Do not filter kallsyms by symbol type
    
    [ Upstream commit 5d54aa40c7b7e9dee5746cca99e9ddbcca13e895 ]
    
    Blamed commit implemented logic to discover available vsock transports by
    grepping /proc/kallsyms for known symbols. It incorrectly filtered entries
    by type 'd'.
    
    For some kernel configs having
    
        CONFIG_VIRTIO_VSOCKETS=m
        CONFIG_VSOCKETS_LOOPBACK=y
    
    kallsyms reports
    
        0000000000000000 d virtio_transport [vmw_vsock_virtio_transport]
        0000000000000000 t loopback_transport
    
    Overzealous filtering might have affected vsock test suit, resulting in
    insufficient/misleading testing.
    
    Do not filter symbols by type. It never helped much.
    
    Fixes: 3070c05b7afd ("vsock/test: Introduce get_transports()")
    Signed-off-by: Michal Luczaj <[email protected]>
    Reviewed-by: Stefano Garzarella <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Paolo Abeni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

vsock/test: fix seqpacket message bounds test [+ + +]
Author: Stefano Garzarella <[email protected]>
Date:   Wed Jan 21 10:36:26 2026 +0100

    vsock/test: fix seqpacket message bounds test
    
    [ Upstream commit 0a98de80136968bab7db37b16282b37f044694d3 ]
    
    The test requires the sender (client) to send all messages before waking
    up the receiver (server).
    Since virtio-vsock had a bug and did not respect the size of the TX
    buffer, this test worked, but now that we are going to fix the bug, the
    test hangs because the sender would fill the TX buffer before waking up
    the receiver.
    
    Set the buffer size in the sender (client) as well, as we already do for
    the receiver (server).
    
    Fixes: 5c338112e48a ("test/vsock: rework message bounds test")
    Signed-off-by: Stefano Garzarella <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Acked-by: Michael S. Tsirkin <[email protected]>
    Signed-off-by: Paolo Abeni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
vsock/virtio: cap TX credit to local buffer size [+ + +]
Author: Melbin K Mathew <[email protected]>
Date:   Wed Jan 21 10:36:27 2026 +0100

    vsock/virtio: cap TX credit to local buffer size
    
    [ Upstream commit 8ee784fdf006cbe8739cfa093f54d326cbf54037 ]
    
    The virtio transports derives its TX credit directly from peer_buf_alloc,
    which is set from the remote endpoint's SO_VM_SOCKETS_BUFFER_SIZE value.
    
    On the host side this means that the amount of data we are willing to
    queue for a connection is scaled by a guest-chosen buffer size, rather
    than the host's own vsock configuration. A malicious guest can advertise
    a large buffer and read slowly, causing the host to allocate a
    correspondingly large amount of sk_buff memory.
    The same thing would happen in the guest with a malicious host, since
    virtio transports share the same code base.
    
    Introduce a small helper, virtio_transport_tx_buf_size(), that
    returns min(peer_buf_alloc, buf_alloc), and use it wherever we consume
    peer_buf_alloc.
    
    This ensures the effective TX window is bounded by both the peer's
    advertised buffer and our own buf_alloc (already clamped to
    buffer_max_size via SO_VM_SOCKETS_BUFFER_MAX_SIZE), so a remote peer
    cannot force the other to queue more data than allowed by its own
    vsock settings.
    
    On an unpatched Ubuntu 22.04 host (~64 GiB RAM), running a PoC with
    32 guest vsock connections advertising 2 GiB each and reading slowly
    drove Slab/SUnreclaim from ~0.5 GiB to ~57 GiB; the system only
    recovered after killing the QEMU process. That said, if QEMU memory is
    limited with cgroups, the maximum memory used will be limited.
    
    With this patch applied:
    
      Before:
        MemFree:        ~61.6 GiB
        Slab:           ~142 MiB
        SUnreclaim:     ~117 MiB
    
      After 32 high-credit connections:
        MemFree:        ~61.5 GiB
        Slab:           ~178 MiB
        SUnreclaim:     ~152 MiB
    
    Only ~35 MiB increase in Slab/SUnreclaim, no host OOM, and the guest
    remains responsive.
    
    Compatibility with non-virtio transports:
    
      - VMCI uses the AF_VSOCK buffer knobs to size its queue pairs per
        socket based on the local vsk->buffer_* values; the remote side
        cannot enlarge those queues beyond what the local endpoint
        configured.
    
      - Hyper-V's vsock transport uses fixed-size VMBus ring buffers and
        an MTU bound; there is no peer-controlled credit field comparable
        to peer_buf_alloc, and the remote endpoint cannot drive in-flight
        kernel memory above those ring sizes.
    
      - The loopback path reuses virtio_transport_common.c, so it
        naturally follows the same semantics as the virtio transport.
    
    This change is limited to virtio_transport_common.c and thus affects
    virtio-vsock, vhost-vsock, and loopback, bringing them in line with the
    "remote window intersected with local policy" behaviour that VMCI and
    Hyper-V already effectively have.
    
    Fixes: 06a8fc78367d ("VSOCK: Introduce virtio_vsock_common.ko")
    Suggested-by: Stefano Garzarella <[email protected]>
    Signed-off-by: Melbin K Mathew <[email protected]>
    [Stefano: small adjustments after changing the previous patch]
    [Stefano: tweak the commit message]
    Signed-off-by: Stefano Garzarella <[email protected]>
    Reviewed-by: Luigi Leonardi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Acked-by: Michael S. Tsirkin <[email protected]>
    Signed-off-by: Paolo Abeni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

vsock/virtio: Coalesce only linear skb [+ + +]
Author: Michal Luczaj <[email protected]>
Date:   Tue Jan 13 16:08:18 2026 +0100

    vsock/virtio: Coalesce only linear skb
    
    [ Upstream commit 0386bd321d0f95d041a7b3d7b07643411b044a96 ]
    
    vsock/virtio common tries to coalesce buffers in rx queue: if a linear skb
    (with a spare tail room) is followed by a small skb (length limited by
    GOOD_COPY_LEN = 128), an attempt is made to join them.
    
    Since the introduction of MSG_ZEROCOPY support, assumption that a small skb
    will always be linear is incorrect. In the zerocopy case, data is lost and
    the linear skb is appended with uninitialized kernel memory.
    
    Of all 3 supported virtio-based transports, only loopback-transport is
    affected. G2H virtio-transport rx queue operates on explicitly linear skbs;
    see virtio_vsock_alloc_linear_skb() in virtio_vsock_rx_fill(). H2G
    vhost-transport may allocate non-linear skbs, but only for sizes that are
    not considered for coalescence; see PAGE_ALLOC_COSTLY_ORDER in
    virtio_vsock_alloc_skb().
    
    Ensure only linear skbs are coalesced. Note that skb_tailroom(last_skb) > 0
    guarantees last_skb is linear.
    
    Fixes: 581512a6dc93 ("vsock/virtio: MSG_ZEROCOPY flag support")
    Signed-off-by: Michal Luczaj <[email protected]>
    Reviewed-by: Stefano Garzarella <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jakub Kicinski <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

vsock/virtio: fix potential underflow in virtio_transport_get_credit() [+ + +]
Author: Melbin K Mathew <[email protected]>
Date:   Wed Jan 21 10:36:25 2026 +0100

    vsock/virtio: fix potential underflow in virtio_transport_get_credit()
    
    [ Upstream commit 3ef3d52a1a9860d094395c7a3e593f3aa26ff012 ]
    
    The credit calculation in virtio_transport_get_credit() uses unsigned
    arithmetic:
    
      ret = vvs->peer_buf_alloc - (vvs->tx_cnt - vvs->peer_fwd_cnt);
    
    If the peer shrinks its advertised buffer (peer_buf_alloc) while bytes
    are in flight, the subtraction can underflow and produce a large
    positive value, potentially allowing more data to be queued than the
    peer can handle.
    
    Reuse virtio_transport_has_space() which already handles this case and
    add a comment to make it clear why we are doing that.
    
    Fixes: 06a8fc78367d ("VSOCK: Introduce virtio_vsock_common.ko")
    Suggested-by: Stefano Garzarella <[email protected]>
    Signed-off-by: Melbin K Mathew <[email protected]>
    [Stefano: use virtio_transport_has_space() instead of duplicating the code]
    [Stefano: tweak the commit message]
    Signed-off-by: Stefano Garzarella <[email protected]>
    Reviewed-by: Luigi Leonardi <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Acked-by: Michael S. Tsirkin <[email protected]>
    Signed-off-by: Paolo Abeni <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

 
w1: fix redundant counter decrement in w1_attach_slave_device() [+ + +]
Author: Haoxiang Li <[email protected]>
Date:   Thu Dec 18 19:14:14 2025 +0800

    w1: fix redundant counter decrement in w1_attach_slave_device()
    
    commit cc8f92e41eb76f450f05234fef2054afc3633100 upstream.
    
    In w1_attach_slave_device(), if __w1_attach_slave_device() fails,
    put_device() -> w1_slave_release() is called to do the cleanup job.
    In w1_slave_release(), sl->family->refcnt and sl->master->slave_count
    have already been decremented. There is no need to decrement twice
    in w1_attach_slave_device().
    
    Fixes: 2c927c0c73fd ("w1: Fix slave count on 1-Wire bus (resend)")
    Cc: [email protected]
    Signed-off-by: Haoxiang Li <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

w1: therm: Fix off-by-one buffer overflow in alarms_store [+ + +]
Author: Thorsten Blum <[email protected]>
Date:   Tue Dec 16 15:50:03 2025 +0100

    w1: therm: Fix off-by-one buffer overflow in alarms_store
    
    commit 761fcf46a1bd797bd32d23f3ea0141ffd437668a upstream.
    
    The sysfs buffer passed to alarms_store() is allocated with 'size + 1'
    bytes and a NUL terminator is appended. However, the 'size' argument
    does not account for this extra byte. The original code then allocated
    'size' bytes and used strcpy() to copy 'buf', which always writes one
    byte past the allocated buffer since strcpy() copies until the NUL
    terminator at index 'size'.
    
    Fix this by parsing the 'buf' parameter directly using simple_strtoll()
    without allocating any intermediate memory or string copying. This
    removes the overflow while simplifying the code.
    
    Cc: [email protected]
    Fixes: e2c94d6f5720 ("w1_therm: adding alarm sysfs entry")
    Signed-off-by: Thorsten Blum <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Krzysztof Kozlowski <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
wifi: ath10k: fix dma_free_coherent() pointer [+ + +]
Author: Thomas Fourier <[email protected]>
Date:   Mon Jan 5 22:04:38 2026 +0100

    wifi: ath10k: fix dma_free_coherent() pointer
    
    commit 9282a1e171ad8d2205067e8ec3bbe4e3cef4f29f upstream.
    
    dma_alloc_coherent() allocates a DMA mapped buffer and stores the
    addresses in XXX_unaligned fields.  Those should be reused when freeing
    the buffer rather than the aligned addresses.
    
    Fixes: 2a1e1ad3fd37 ("ath10k: Add support for 64 bit ce descriptor")
    Cc: [email protected]
    Signed-off-by: Thomas Fourier <[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: Greg Kroah-Hartman <[email protected]>

wifi: ath12k: cancel scan only on active scan vdev [+ + +]
Author: Manish Dharanenthiran <[email protected]>
Date:   Wed Jan 7 11:32:35 2026 +0530

    wifi: ath12k: cancel scan only on active scan vdev
    
    [ Upstream commit 39c90b1a1dbe6d7c49d19da6e5aec00980c55d8b ]
    
    Cancel the scheduled scan request only on the vdev that has an active
    scan running. Currently, ahvif->links_map is used to obtain the links,
    but this includes links for which no scan is scheduled. In failure cases
    where the scan fails due to an invalid channel definition, other links
    which are not yet brought up (vdev not created) may also be accessed,
    leading to the following trace:
    
    Unable to handle kernel paging request at virtual address 0000000000004c8c
    pc : _raw_spin_lock_bh+0x1c/0x54
    lr : ath12k_scan_abort+0x20/0xc8 [ath12k]
    
    Call trace:
     _raw_spin_lock_bh+0x1c/0x54 (P)
     ath12k_mac_op_cancel_hw_scan+0xac/0xc4 [ath12k]
     ieee80211_scan_cancel+0xcc/0x12c [mac80211]
     ieee80211_do_stop+0x6c4/0x7a8 [mac80211]
     ieee80211_stop+0x60/0xd8 [mac80211]
    
    Skip links that are not created or are not the current scan vdev. This
    ensures only the scan for the matching links is aborted and avoids
    aborting unrelated links during cancellation, thus aligning with how
    start/cleanup manage ar->scan.arvif.
    
    Also, remove the redundant arvif->is_started check from
    ath12k_mac_op_cancel_hw_scan() that was introduced in commit 3863f014ad23
    ("wifi: ath12k: symmetrize scan vdev creation and deletion during HW
    scan") to avoid deleting the scan interface if the scan is triggered on
    the existing AP vdev as this use case is already handled in
    ath12k_scan_vdev_clean_work().
    
    Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1
    
    Fixes: feed05f1526e ("wifi: ath12k: Split scan request for split band device")
    Signed-off-by: Manish Dharanenthiran <[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: don't force radio frequency check in freq_to_idx() [+ + +]
Author: Baochen Qiang <[email protected]>
Date:   Thu Jan 8 11:21:46 2026 +0800

    wifi: ath12k: don't force radio frequency check in freq_to_idx()
    
    [ Upstream commit 1fed08c5519d2f929457f354d3c06c6a8c33829c ]
    
    freq_to_idx() is used to map a channel to a survey index. Commit
    acc152f9be20 ("wifi: ath12k: combine channel list for split-phy devices in
    single-wiphy") adds radio specific frequency range check in this helper to
    make sure an invalid index is returned if the channel falls outside that
    range. However, this check introduces a race, resulting in below warnings
    as reported in [1].
    
            ath12k_pci 0000:08:00.0: chan info: invalid frequency 6455 (idx 101 out of bounds)
            ath12k_pci 0000:08:00.0: chan info: invalid frequency 6535 (idx 101 out of bounds)
            ath12k_pci 0000:08:00.0: chan info: invalid frequency 6615 (idx 101 out of bounds)
            ath12k_pci 0000:08:00.0: chan info: invalid frequency 6695 (idx 101 out of bounds)
            ath12k_pci 0000:08:00.0: chan info: invalid frequency 6775 (idx 101 out of bounds)
            ath12k_pci 0000:08:00.0: chan info: invalid frequency 6855 (idx 101 out of bounds)
            ath12k_pci 0000:08:00.0: chan info: invalid frequency 6935 (idx 101 out of bounds)
            ath12k_pci 0000:08:00.0: chan info: invalid frequency 7015 (idx 101 out of bounds)
            ath12k_pci 0000:08:00.0: chan info: invalid frequency 7095 (idx 101 out of bounds)
            ath12k_pci 0000:08:00.0: chan info: invalid frequency 6435 (idx 101 out of bounds)
    
    Race scenario:
    
     1) A regdomain covering below frequency range is uploaded to host via
        WMI_REG_CHAN_LIST_CC_EXT_EVENTID event:
    
            Country 00, CFG Regdomain UNSET FW Regdomain 0, num_reg_rules 6
            1. (2402 - 2472 @ 40) (0, 20) (0 ms) (FLAGS 360448) (0, 0)
            2. (2457 - 2477 @ 20) (0, 20) (0 ms) (FLAGS 360576) (0, 0)
            3. (5170 - 5330 @ 160) (0, 20) (0 ms) (FLAGS 264320) (0, 0)
            4. (5490 - 5730 @ 160) (0, 20) (0 ms) (FLAGS 264320) (0, 0)
            5. (5735 - 5895 @ 160) (0, 20) (0 ms) (FLAGS 264320) (0, 0)
            6. (5925 - 7125 @ 320) (0, 24) (0 ms) (FLAGS 2056) (0, 255)
    
        As a result, radio frequency range is updated as [2402, 7125]
    
            ath12k_pci 0000:08:00.0: mac pdev 0 freq limit updated. New range 2402->7125 MHz
    
        If no scan in progress or after scan finished, command
        WMI_SCAN_CHAN_LIST_CMDID is sent to firmware notifying that firmware
        is allowed to do scan on all channels within that range.
    
        The running path is:
    
               /* redomain uploaded */
            1. WMI_REG_CHAN_LIST_CC_EXT_EVENTID
            2.   ath12k_reg_chan_list_event()
            3.     ath12k_reg_handle_chan_list()
            4.       queue_work(..., &ar->regd_update_work)
            5.         ath12k_regd_update_work()
            6.           ath12k_regd_update()
                           /* update radio frequency range */
            7.             ath12k_mac_update_freq_range()
            8.               regulatory_set_wiphy_regd()
            9.                 ath12k_reg_notifier()
            10.                  ath12k_reg_update_chan_list()
            11.                    queue_work(..., &ar->regd_channel_update_work)
            12.                       ath12k_regd_update_chan_list_work()
                                        /* wait scan finishes */
            13.                         wait_for_completion_timeout(&ar->scan.completed, ...)
                                        /* command notifying list of valid channels */
            14.                         ath12k_wmi_send_scan_chan_list_cmd()
    
     2) Hardware scan is triggered on all allowed channels.
     3) Before scan completed, 11D mechanism detects a new country code
    
            ath12k_pci 0000:08:00.0: wmi 11d new cc GB
    
        With this code sent to firmware, firmware uploads a new regdomain
    
            Country GB, CFG Regdomain ETSI FW Regdomain 2, num_reg_rules 9
            1. (2402 - 2482 @ 40) (0, 20) (0 ms) (FLAGS 360448) (0, 0)
            2. (5170 - 5250 @ 80) (0, 23) (0 ms) (FLAGS 264192) (0, 0)
            3. (5250 - 5330 @ 80) (0, 23) (0 ms) (FLAGS 264216) (0, 0)
            4. (5490 - 5590 @ 80) (0, 30) (0 ms) (FLAGS 264208)
            5. (5590 - 5650 @ 40) (0, 30) (600000 ms) (FLAGS 264208)
            6. (5650 - 5730 @ 80) (0, 30) (0 ms) (FLAGS 264208)
            7. (5735 - 5875 @ 80) (0, 14) (0 ms) (FLAGS 264192) (0, 0)
            8. (5855 - 5875 @ 20) (0, 14) (0 ms) (FLAGS 264192) (0, 0)
            9. (5945 - 6425 @ 320) (0, 24) (0 ms) (FLAGS 2056) (0, 11)
    
        Then radio frequency range is updated as [2402, 6425]
    
            ath12k_pci 0000:08:00.0: mac pdev 0 freq limit updated. New range 2402->6425 MHz
    
        Please note this is a smaller range than the previous one. Later host
        runs the same path for the purpose of notifying the new channel list.
        However since scan not completed, host just waits there. Meanwhile,
        firmware is possibly scanning channels outside the new range. As a
        result, WMI_CHAN_INFO_EVENTID events for those channels fail
        freq_to_idx() check and triggers warnings above.
    
    Fix this issue by removing radio frequency check in freq_to_idx(). This is
    valid because channels being scanned do not synchronize with frequency
    range update. Besides, this won't cause any problem, since freq_to_idx()
    is only used for survey data. Even out-of-range channels filled in the
    survey, they won't get delivered to userspace due to the range check
    already there in ath12k_mac_op_get_survey().
    
    Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3
    
    Fixes: acc152f9be20 ("wifi: ath12k: combine channel list for split-phy devices in single-wiphy")
    Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220871 # 1
    Signed-off-by: Baochen Qiang <[email protected]>
    Link: https://patch.msgid.link/20260108-ath12k-fix-freq-to-idx-v1-1-b2458cf7aa0d@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath12k: fix dead lock while flushing management frames [+ + +]
Author: Baochen Qiang <[email protected]>
Date:   Tue Jan 13 09:48:11 2026 +0800

    wifi: ath12k: fix dead lock while flushing management frames
    
    [ Upstream commit f88e9fc30a261d63946ddc6cc6a33405e6aa27c3 ]
    
    Commit [1] converted the management transmission work item into a
    wiphy work. Since a wiphy work can only run under wiphy lock
    protection, a race condition happens in below scenario:
    
    1. a management frame is queued for transmission.
    2. ath12k_mac_op_flush() gets called to flush pending frames associated
       with the hardware (i.e, vif being NULL). Then in ath12k_mac_flush()
       the process waits for the transmission done.
    3. Since wiphy lock has been taken by the flush process, the transmission
       work item has no chance to run, hence the dead lock.
    
    >From user view, this dead lock results in below issue:
    
     wlp8s0: authenticate with xxxxxx (local address=xxxxxx)
     wlp8s0: send auth to xxxxxx (try 1/3)
     wlp8s0: authenticate with xxxxxx (local address=xxxxxx)
     wlp8s0: send auth to xxxxxx (try 1/3)
     wlp8s0: authenticated
     wlp8s0: associate with xxxxxx (try 1/3)
     wlp8s0: aborting association with xxxxxx by local choice (Reason: 3=DEAUTH_LEAVING)
     ath12k_pci 0000:08:00.0: failed to flush mgmt transmit queue, mgmt pkts pending 1
    
    The dead lock can be avoided by invoking wiphy_work_flush() to proactively
    run the queued work item. Note actually it is already present in
    ath12k_mac_op_flush(), however it does not protect the case where vif
    being NULL. Hence move it ahead to cover this case as well.
    
    Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3
    
    Fixes: 56dcbf0b5207 ("wifi: ath12k: convert struct ath12k::wmi_mgmt_tx_work to struct wiphy_work") # [1]
    Reported-by: Stuart Hayhurst <[email protected]>
    Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220959
    Signed-off-by: Baochen Qiang <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Link: https://patch.msgid.link/20260113-ath12k-fix-dead-lock-while-flushing-v1-1-9713621f3a0f@oss.qualcomm.com
    Signed-off-by: Jeff Johnson <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: ath12k: fix dma_free_coherent() pointer [+ + +]
Author: Thomas Fourier <[email protected]>
Date:   Tue Jan 6 09:49:04 2026 +0100

    wifi: ath12k: fix dma_free_coherent() pointer
    
    commit bb97131fbf9b708dd9616ac2bdc793ad102b5c48 upstream.
    
    dma_alloc_coherent() allocates a DMA mapped buffer and stores the
    addresses in XXX_unaligned fields.  Those should be reused when freeing
    the buffer rather than the aligned addresses.
    
    Fixes: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
    Cc: [email protected]
    Signed-off-by: Thomas Fourier <[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: Greg Kroah-Hartman <[email protected]>

wifi: ath12k: Fix scan state stuck in ABORTING after cancel_remain_on_channel [+ + +]
Author: Yingying Tang <[email protected]>
Date:   Mon Jan 12 19:55:16 2026 +0800

    wifi: ath12k: Fix scan state stuck in ABORTING after cancel_remain_on_channel
    
    [ Upstream commit 8b8d6ee53dfdee61b0beff66afe3f712456e707a ]
    
    Scan finish workqueue was introduced in __ath12k_mac_scan_finish() by [1].
    
    During ath12k_mac_op_cancel_remain_on_channel(), scan state is set to
    ABORTING and should be reset to IDLE in the queued work. However,
    wiphy_work_cancel() is called before exiting
    ath12k_mac_op_cancel_remain_on_channel(), which prevents the work
    from running and leaves the state in ABORTING. This blocks all
    subsequent scan requests.
    
    Replace wiphy_work_cancel() with wiphy_work_flush() to ensure the
    queued work runs and scan state is reset to IDLE.
    
    Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3
    
    Fixes: 3863f014ad23 ("wifi: ath12k: symmetrize scan vdev creation and deletion during HW scan") # [1]
    Signed-off-by: Yingying Tang <[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 wrong P2P device link id issue [+ + +]
Author: Yingying Tang <[email protected]>
Date:   Tue Jan 13 13:46:36 2026 +0800

    wifi: ath12k: Fix wrong P2P device link id issue
    
    [ Upstream commit 31707572108da55a005e7fed32cc3869c16b7c16 ]
    
    Wrong P2P device link id value of 0 was introduced in ath12k_mac_op_tx() by [1].
    
    During the P2P negotiation process, there is only one scan vdev with link ID 15.
    Currently, the device link ID is incorrectly set to 0 in ath12k_mac_op_tx()
    during the P2P negotiation process, which leads to TX failures.
    
    Set the correct P2P device link ID to 15 to fix the TX failure issue.
    
    Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3
    
    Fixes: 648a121bafa3 ("wifi: ath12k: ath12k_mac_op_tx(): MLO support") # [1]
    Signed-off-by: Yingying Tang <[email protected]>
    Reviewed-by: Baochen Qiang <[email protected]>
    Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
    Cc: [email protected]
    Cc: [email protected]
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Jeff Johnson <[email protected]>

wifi: mac80211: don't perform DA check on S1G beacon [+ + +]
Author: Lachlan Hodges <[email protected]>
Date:   Tue Jan 20 14:11:21 2026 +1100

    wifi: mac80211: don't perform DA check on S1G beacon
    
    [ Upstream commit 5dc6975566f5d142ec53eb7e97af688c45dd314d ]
    
    S1G beacons don't contain the DA field as per IEEE80211-2024 9.3.4.3,
    so the DA broadcast check reads the SA address of the S1G beacon which
    will subsequently lead to the beacon being dropped. As a result, passive
    scanning is not possible. Fix this by only performing the check on
    non-S1G beacons to allow S1G long beacons to be processed during a
    passive scan.
    
    Fixes: ddf82e752f8a ("wifi: mac80211: Allow beacons to update BSS table regardless of scan")
    Signed-off-by: Lachlan Hodges <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Johannes Berg <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>

wifi: mwifiex: Fix a loop in mwifiex_update_ampdu_rxwinsize() [+ + +]
Author: Dan Carpenter <[email protected]>
Date:   Thu Jan 8 23:00:24 2026 +0300

    wifi: mwifiex: Fix a loop in mwifiex_update_ampdu_rxwinsize()
    
    commit 2120f3a3738a65730c81bf10447b1ff776078915 upstream.
    
    The "i" iterator variable is used to count two different things but
    unfortunately we can't store two different numbers in the same variable.
    Use "i" for the outside loop and "j" for the inside loop.
    
    Cc: [email protected]
    Fixes: d219b7eb3792 ("mwifiex: handle BT coex event to adjust Rx BA window size")
    Signed-off-by: Dan Carpenter <[email protected]>
    Reviewed-by: Jeff Chen <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Johannes Berg <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

wifi: rsi: Fix memory corruption due to not set vif driver data size [+ + +]
Author: Marek Vasut <[email protected]>
Date:   Sat Jan 10 00:56:29 2026 +0100

    wifi: rsi: Fix memory corruption due to not set vif driver data size
    
    commit 4f431d88ea8093afc7ba55edf4652978c5a68f33 upstream.
    
    The struct ieee80211_vif contains trailing space for vif driver data,
    when struct ieee80211_vif is allocated, the total memory size that is
    allocated is sizeof(struct ieee80211_vif) + size of vif driver data.
    The size of vif driver data is set by each WiFi driver as needed.
    
    The RSI911x driver does not set vif driver data size, no trailing space
    for vif driver data is therefore allocated past struct ieee80211_vif .
    The RSI911x driver does however use the vif driver data to store its
    vif driver data structure "struct vif_priv". An access to vif->drv_priv
    leads to access out of struct ieee80211_vif bounds and corruption of
    some memory.
    
    In case of the failure observed locally, rsi_mac80211_add_interface()
    would write struct vif_priv *vif_info = (struct vif_priv *)vif->drv_priv;
    vif_info->vap_id = vap_idx. This write corrupts struct fq_tin member
    struct list_head new_flows . The flow = list_first_entry(head, struct
    fq_flow, flowchain); in fq_tin_reset() then reports non-NULL bogus
    address, which when accessed causes a crash.
    
    The trigger is very simple, boot the machine with init=/bin/sh , mount
    devtmpfs, sysfs, procfs, and then do "ip link set wlan0 up", "sleep 1",
    "ip link set wlan0 down" and the crash occurs.
    
    Fix this by setting the correct size of vif driver data, which is the
    size of "struct vif_priv", so that memory is allocated and the driver
    can store its driver data in it, instead of corrupting memory around
    it.
    
    Cc: [email protected]
    Fixes: dad0d04fa7ba ("rsi: Add RS9113 wireless driver")
    Signed-off-by: Marek Vasut <[email protected]>
    Link: https://patch.msgid.link/[email protected]
    Signed-off-by: Johannes Berg <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
x86/kfence: avoid writing L1TF-vulnerable PTEs [+ + +]
Author: Andrew Cooper <[email protected]>
Date:   Tue Jan 6 18:04:26 2026 +0000

    x86/kfence: avoid writing L1TF-vulnerable PTEs
    
    commit b505f1944535f83d369ae68813e7634d11b990d3 upstream.
    
    For native, the choice of PTE is fine.  There's real memory backing the
    non-present PTE.  However, for XenPV, Xen complains:
    
      (XEN) d1 L1TF-vulnerable L1e 8010000018200066 - Shadowing
    
    To explain, some background on XenPV pagetables:
    
      Xen PV guests are control their own pagetables; they choose the new
      PTE value, and use hypercalls to make changes so Xen can audit for
      safety.
    
      In addition to a regular reference count, Xen also maintains a type
      reference count.  e.g.  SegDesc (referenced by vGDT/vLDT), Writable
      (referenced with _PAGE_RW) or L{1..4} (referenced by vCR3 or a lower
      pagetable level).  This is in order to prevent e.g.  a page being
      inserted into the pagetables for which the guest has a writable mapping.
    
      For non-present mappings, all other bits become software accessible,
      and typically contain metadata rather a real frame address.  There is
      nothing that a reference count could sensibly be tied to.  As such, even
      if Xen could recognise the address as currently safe, nothing would
      prevent that frame from changing owner to another VM in the future.
    
      When Xen detects a PV guest writing a L1TF-PTE, it responds by
      activating shadow paging.  This is normally only used for the live phase
      of migration, and comes with a reasonable overhead.
    
    KFENCE only cares about getting #PF to catch wild accesses; it doesn't
    care about the value for non-present mappings.  Use a fully inverted PTE,
    to avoid hitting the slow path when running under Xen.
    
    While adjusting the logic, take the opportunity to skip all actions if the
    PTE is already in the right state, half the number PVOps callouts, and
    skip TLB maintenance on a !P -> P transition which benefits non-Xen cases
    too.
    
    Link: https://lkml.kernel.org/r/[email protected]
    Fixes: 1dc0da6e9ec0 ("x86, kfence: enable KFENCE for x86")
    Signed-off-by: Andrew Cooper <[email protected]>
    Tested-by: Marco Elver <[email protected]>
    Cc: Alexander Potapenko <[email protected]>
    Cc: Marco Elver <[email protected]>
    Cc: Dmitry Vyukov <[email protected]>
    Cc: Thomas Gleixner <[email protected]>
    Cc: Ingo Molnar <[email protected]>
    Cc: Borislav Petkov <[email protected]>
    Cc: Dave Hansen <[email protected]>
    Cc: "H. Peter Anvin" <[email protected]>
    Cc: Jann Horn <[email protected]>
    Cc: <[email protected]>
    Signed-off-by: Andrew Morton <[email protected]>
    Signed-off-by: Greg Kroah-Hartman <[email protected]>

 
x86: make page fault handling disable interrupts properly [+ + +]
Author: Cedric Xing <[email protected]>
Date:   Thu Jan 22 18:39:15 2026 -0600

    x86: make page fault handling disable interrupts properly
    
    [ Upstream commit 614da1d3d4cdbd6e41aea06bc97ec15aacff6daf ]
    
    There's a big comment in the x86 do_page_fault() about our interrupt
    disabling code:
    
        * User address page fault handling might have reenabled
        * interrupts. Fixing up all potential exit points of
        * do_user_addr_fault() and its leaf functions is just not
        * doable w/o creating an unholy mess or turning the code
        * upside down.
    
    but it turns out that comment is subtly wrong, and the code as a result
    is also wrong.
    
    Because it's certainly true that we may have re-enabled interrupts when
    handling user page faults.  And it's most certainly true that we don't
    want to bother fixing up all the cases.
    
    But what isn't true is that it's limited to user address page faults.
    
    The confusion stems from the fact that we have logic here that depends
    on the address range of the access, but other code then depends on the
    _context_ the access was done in.  The two are not related, even though
    both of them are about user-vs-kernel.
    
    In other words, both user and kernel addresses can cause interrupts to
    have been enabled (eg when __bad_area_nosemaphore() gets called for user
    accesses to kernel addresses).  As a result we should make sure to
    disable interrupts again regardless of the address range before
    returning to the low-level fault handling code.
    
    The __bad_area_nosemaphore() code actually did disable interrupts again
    after enabling them, just not consistently.  Ironically, as noted in the
    original comment, fixing up all the cases is just not worth it, when the
    simple solution is to just do it unconditionally in one single place.
    
    So remove the incomplete case that unsuccessfully tried to do what the
    comment said was "not doable" in commit ca4c6a9858c2 ("x86/traps: Make
    interrupt enable/disable symmetric in C code"), and just make it do the
    simple and straightforward thing.
    
    Signed-off-by: Cedric Xing <[email protected]>
    Reviewed-by: Dave Hansen <[email protected]>
    Fixes: ca4c6a9858c2 ("x86/traps: Make interrupt enable/disable symmetric in C code")
    Cc: Peter Zijlstra <[email protected]>
    Cc: Thomas Gleixner <[email protected]>
    Signed-off-by: Linus Torvalds <[email protected]>
    Signed-off-by: Sasha Levin <[email protected]>