🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.kernel
Article #607

[Backport request] ALSA: usb-audio: fix list_add double-add in push_back_to_ready_list (dbd9d1cbf970)

#607
From: Gary
Date: Fri, 13 Nov 2026 16:20
223 lines
12618 bytes
--0000000000008d3b4706602a7fd8
Content-Type: text/plain; charset="UTF-8"

Hello,

I would like to request the backport of upstream commit

  dbd9d1cbf9700528c8595ab1fa7ef832e79821fe
  "ALSA: usb-audio: fix list_add double-add in push_back_to_ready_list"

to Debian's 6.12 kernel series (trixie).

== What happens ==

On Debian 13 with linux-image-6.12.116+deb13-amd64, the machine
panicked in interrupt context in snd_complete_urb() while idle:

  list_add corruption. prev->next should be next (ffff8f5041027590),
  but was ffff8f5041026348. (prev=ffff8f5041026348).
  kernel BUG at lib/list_debug.c:32!
  Oops: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
  RIP: 0010:__list_add_valid_or_report.cold+0x3a/0x5b
  Call Trace:
   <IRQ>
   snd_complete_urb+0xf4/0x540 [snd_usb_audio]
   __usb_hcd_giveback_urb+0x9d/0x120 [usbcore]
   usb_giveback_urb_bh+0xba/0x140 [usbcore]
   process_one_work+0x188/0x340
   bh_worker+0x17b/0x1a0
   tasklet_hi_action+0x13/0x30
   handle_softirqs+0xcc/0x280
   ? handle_edge_irq+0x8b/0x230
   __irq_exit_rcu+0x8d/0xb0
   common_interrupt+0x85/0xa0
   </IRQ>
   <TASK>
   asm_common_interrupt+0x26/0x40
   RIP: 0010:cpuidle_enter_state+0xc6/0x420
   cpuidle_enter+0x2d/0x40
   do_idle+0x142/0x2a0
   cpu_startup_entry+0x29/0x30
   start_secondary+0x11e/0x140
   common_startup_64+0x13e/0x141
   </TASK>
  Kernel panic - not syncing: Fatal exception in interrupt

The affected device is a Jabra Link 390 USB audio adapter
(0b0e:2e51), the only USB audio device on the system. The panic
happened after several suspend/resume cycles, while the CPU was
idle. The full EFI pstore dump is attached.

== Root cause ==

This is the bug fixed by dbd9d1cbf970. In sound/usb/endpoint.c,
stop_urbs() clears ep->ready_playback_urbs with INIT_LIST_HEAD()
instead of unlinking each queued snd_urb_ctx. If a URB survives
wait_clear_urbs()'s forced STOPPING->STOPPED timeout, its ctx is
left looking "linked" even though the list head no longer points to
it. When the endpoint is restarted and the same ctx is queued again,
and the old URB's completion then calls push_back_to_ready_list()
for it a second time, list_add() sees a double add and triggers
the BUG.

The fix is small and self-contained:

  - guard push_back_to_ready_list() with list_empty(&ctx->ready_list)
  - unlink each ctx with list_del_init() in stop_urbs()

7 insertions, 2 deletions in sound/usb/endpoint.c.

== Why 6.12 needs it ==

The commit is in mainline 7.3 (and 7.3.y), but it was not Cc'd to
stable. As of 2026-11-13 it is absent from 6.12.y, 6.17.y, 6.18.y,
6.19.y, 7.0.y and 7.2.y; I verified that the 6.12.y and 7.2.y
sources still have the unconditional list_add_tail() in
push_back_to_ready_list(). Debian's 6.12.116 therefore still has the
bug, and the 7.2.12 currently in trixie-backports does not contain
the fix either.

This is a local panic/DoS: any USB audio device using implicit
feedback or low-latency playback can hit it, and suspend/resume makes
it more likely. No special privileges are required beyond being able
to use the audio device.

== Request ==

Could you please consider carrying dbd9d1cbf970 in the Debian 6.12
series (or requesting its inclusion in 6.12.y stable), so Debian 13
users with USB audio devices get the fix?

I am willing to test a patched kernel on the affected hardware:
HP Elite x360 1040 14 inch G11, Debian 13 trixie,
6.12.116+deb13-amd64, Jabra Link 390.

References:
  syzbot: https://syzkaller.appspot.com/bug?extid=9fe3b8d9f5c64ff410a7
  fix:    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dbd9d1cbf9700528c8595ab1fa7ef832e79821fe

Thanks,

--0000000000008d3b4706602a7fd8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><pre class=3D"gmail-_plain_7gxqk_103" style=3D"text-autosp=
ace:no-autospace;font:11px/19px &quot;SF Mono&quot;,&quot;JetBrains Mono&qu=
ot;,&quot;Fira Code&quot;,Consolas,&quot;Liberation Mono&quot;,Menlo,Courie=
r,&quot;PingFang SC&quot;,&quot;Microsoft YaHei&quot;,&quot;SF Mono&quot;,&=
quot;JetBrains Mono&quot;,&quot;Fira Code&quot;,Consolas,&quot;Liberation M=
ono&quot;,Menlo,Courier,&quot;PingFang SC&quot;,&quot;Microsoft YaHei&quot;=
;padding:6px 22px 20px;overflow:auto;white-space:pre-wrap;word-break:normal=
;background:rgb(249,250,251);border-bottom-left-radius:16px;border-bottom-r=
ight-radius:16px;margin:16px 0px;color:rgb(15,17,21);letter-spacing:normal;=
text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-=
decoration-style:initial;text-decoration-color:initial"><code style=3D"text=
-autospace:no-autospace;font:inherit;background:none;padding:0px">Hello,

I would like to request the backport of upstream commit

  dbd9d1cbf9700528c8595ab1fa7ef832e79821fe
  &quot;ALSA: usb-audio: fix list_add double-add in push_back_to_ready_list=
&quot;

to Debian&#39;s 6.12 kernel series (trixie).

=3D=3D What happens =3D=3D

On Debian 13 with linux-image-6.12.116+deb13-amd64, the machine
panicked in interrupt context in snd_complete_urb() while idle:

  list_add corruption. prev-&gt;next should be next (ffff8f5041027590),
  but was ffff8f5041026348. (prev=3Dffff8f5041026348).
  kernel BUG at lib/list_debug.c:32!
  Oops: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
  RIP: 0010:__list_add_valid_or_report.cold+0x3a/0x5b
  Call Trace:
   &lt;IRQ&gt;
   snd_complete_urb+0xf4/0x540 [snd_usb_audio]
   __usb_hcd_giveback_urb+0x9d/0x120 [usbcore]
   usb_giveback_urb_bh+0xba/0x140 [usbcore]
   process_one_work+0x188/0x340
   bh_worker+0x17b/0x1a0
   tasklet_hi_action+0x13/0x30
   handle_softirqs+0xcc/0x280
   ? handle_edge_irq+0x8b/0x230
   __irq_exit_rcu+0x8d/0xb0
   common_interrupt+0x85/0xa0
   &lt;/IRQ&gt;
   &lt;TASK&gt;
   asm_common_interrupt+0x26/0x40
   RIP: 0010:cpuidle_enter_state+0xc6/0x420
   cpuidle_enter+0x2d/0x40
   do_idle+0x142/0x2a0
   cpu_startup_entry+0x29/0x30
   start_secondary+0x11e/0x140
   common_startup_64+0x13e/0x141
   &lt;/TASK&gt;
  Kernel panic - not syncing: Fatal exception in interrupt

The affected device is a Jabra Link 390 USB audio adapter
(0b0e:2e51), the only USB audio device on the system. The panic
happened after several suspend/resume cycles, while the CPU was
idle. The full EFI pstore dump is attached.

=3D=3D Root cause =3D=3D

This is the bug fixed by dbd9d1cbf970. In sound/usb/endpoint.c,
stop_urbs() clears ep-&gt;ready_playback_urbs with INIT_LIST_HEAD()
instead of unlinking each queued snd_urb_ctx. If a URB survives
wait_clear_urbs()&#39;s forced STOPPING-&gt;STOPPED timeout, its ctx is
left looking &quot;linked&quot; even though the list head no longer points =
to
it. When the endpoint is restarted and the same ctx is queued again,
and the old URB&#39;s completion then calls push_back_to_ready_list()
for it a second time, list_add() sees a double add and triggers
the BUG.

The fix is small and self-contained:

  - guard push_back_to_ready_list() with list_empty(&amp;ctx-&gt;ready_list=
)
  - unlink each ctx with list_del_init() in stop_urbs()

7 insertions, 2 deletions in sound/usb/endpoint.c.

=3D=3D Why 6.12 needs it =3D=3D

The commit is in mainline 7.3 (and 7.3.y), but it was not Cc&#39;d to
stable. As of 2026-11-13 it is absent from 6.12.y, 6.17.y, 6.18.y,
6.19.y, 7.0.y and 7.2.y; I verified that the 6.12.y and 7.2.y
sources still have the unconditional list_add_tail() in
push_back_to_ready_list(). Debian&#39;s 6.12.116 therefore still has the
bug, and the 7.2.12 currently in trixie-backports does not contain
the fix either.

This is a local panic/DoS: any USB audio device using implicit
feedback or low-latency playback can hit it, and suspend/resume makes
it more likely. No special privileges are required beyond being able
to use the audio device.

=3D=3D Request =3D=3D

Could you please consider carrying dbd9d1cbf970 in the Debian 6.12
series (or requesting its inclusion in 6.12.y stable), so Debian 13
users with USB audio devices get the fix?

I am willing to test a patched kernel on the affected hardware:
HP Elite x360 1040 14 inch G11, Debian 13 trixie,
6.12.116+deb13-amd64, Jabra Link 390.

References:
  syzbot: <a href=3D"https://syzkaller.appspot.com/bug?extid=3D9fe3b8d9f5c6=
4ff410a7">https://syzkaller.appspot.com/bug?extid=3D9fe3b8d9f5c64ff410a7</a=
>
  fix:    <a href=3D"https://git.kernel.org/pub/scm/linux/kernel/git/torval=
ds/linux.git/commit/?id=3Ddbd9d1cbf9700528c8595ab1fa7ef832e79821fe">https:/=
/git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3Ddb=
d9d1cbf9700528c8595ab1fa7ef832e79821fe</a>

Thanks,</code></pre><br></div>

--0000000000008d3b4706602a7fd8--
Technical Details
Message-ID: <NZ2al-bF5J-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Gary <gary.mayet@gmail.com>
Newsgroups: linux.debian.kernel
Subject: [Backport request] ALSA: usb-audio: fix list_add double-add in  push_back_to_ready_list (dbd9d1cbf970)
Date: Fri, 13 Nov 2026 17:20:01 +0100
Message-ID: <NZ2al-bF5J-11@gated-at.bofh.it>
X-Mailbox-Line: From debian-kernel-request@lists.debian.org  Fri Nov 13 16:15:09 2026
Old-Return-Path: <gary.mayet@gmail.com>
X-Amavis-Spam-Status: No, score=-2.098 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -5.5
Arc-Seal: i=1; a=rsa-sha256; t=1794585506; cv=none;
        d=google.com; s=arc-20260327;
        b=DYbNayAyP/vU3e3h38Jw9ujWfn2siPtCJ14jnemewtmxd3unKQdPFSgUREgROBOjIE
         rvZXI8Ll7Vs/1WBajZcS9+BgZ4kks/gb4281UmhqfQi5Gyh63nlz1lP8QKNj6fQjPSx1
         k1kPr2DPCJr+9KJo2fmHthtC2R9gEqRqjhg/4fAPp+Hi72rmzXNtQUUwtsXnH3r8XbO4
         z54UkwQoleJQpWnIg8b0DAQiTQSQqE2XxRIRhsXEevc42x5pAJVvhK5NuktdhVt6tx6C
         YnjbaTgoiREvxfL6t5edyVweABBvfbiyaVXpj2mEZV08z0XFEegZlb2WuIQ2AuBGc0oq
         mCeQ==
Arc-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=to:subject:message-id:date:from:mime-version:dkim-signature;
        bh=6SXHokaqHz2VfbIL3NYF0lghdPIqUZ55+ldmMqjHCa4=;
        fh=H+BbzWr4TA6dddvr3CqkyZ/w0e+5/+JONX65a0cKcy4=;
        b=AyDok1Busyz3TwiOkbcMffh5fPa662t/Sv8zgIYG9IW7+JF19yvL9pl1/QdAq2x0Rm
         icB7LhJ6J/ol5RQiiGJOC4V8fFfKJ9gNRobZ3uIk+F8V8rHHR2CKc22vKHIyp7uNOd2f
         Ei+5kuRXvBIkIHlKfXBgGhEBen7SuxpzgEyJ5G5Adnvo62cL6AivAE4XC37gFCZEo4V5
         auQJSxzYks6Lb/CaAO9ZcfjfjQp8McRwuZCHeLOv1uCS9BOTDpketsri3tWMX3OaeS68
         vLuT6cX2Y+xKujEhSpMR6d2INPVghNp25QQjQjvkQbMobv8o1BBUiV/4b5TZF1+qMvyj
         tzfQ==;
        darn=lists.debian.org
Arc-Authentication-Results: i=1; mx.google.com; arc=none
X-Gm-Message-State: APuU4Z/Ea0zYjdUt97okuOrFa/hwcATdBUxOPL/RBoxf4QDcuPp72vyx
	gogcUUvC/SnXVKiVednJDiAIJsuDX9yX7iYQ2X8GDcqciKYPb9tcxWDFOWxkGwnM9MAF61TOsBR
	VWa8SZ+owk+uDTCvMdO6qF1t6BwvGLOFooMmsB/o=
X-Gm-Gg: AYBFou2yRfw/GG9UwQeL276YBGhrfRJei45dONis628fePUGAVIEOnSAiQuVV589Qm5
	BHTJonacadUshL/VpO25qoL8LarXvSpSjVpYLNf2hPrDfnXyao93yEnHhMUHmUoFLcGXzE4wp1L
	fFWXZDoa58mb862HKjHXi3Mv3mhzmFKqg2RaOqoUqUhNHV+IarUQWY/8GFUoVZgJ8dcsn+wuCCr
	Yvvod9TuP0+5cxLJc+P9UXeFDpMbiFTu/ZML3N9Qev7Z5aKoq82jF1CL300M1Tj0EZDXFBYBih+
	Yzpd8ZbzsH3t19uASEQ0w9GUS8WAe+Nfdi9LB2PWIGpaJO8RqRCyNqpciIuIoSbwCr40QuHKRsi
	1Ael4fIlmgRHciaSWuGEAEo2+aJO/8gCd843YNTasFEUslXjvGLW+zZB44PFJn26+j3K6Ie7Bn0
	pGWSyndg44nOvn9qxD1s3l3AmxiTOjSs+oSf/q9UQstwqoN6TUT0Vgll32
X-Received: by 2002:a05:7300:e0a8:b0:36d:2704:6adf with SMTP id
 5a478bee46e88-37966c48b6emr2559210eec.11.1794585505117; Fri, 13 Nov 2026
 07:58:25 -0800 (PST)
MIME-Version: 1.0
X-Gm-Features: AclHuK-F5SZTjYpoexsm7XzGJ1StN8ahr3fr2X6i95XbaRhsww790DKCTaYCdfs
Content-Type: multipart/alternative; boundary="0000000000008d3b4706602a7fd8"
X-Mailing-List: <debian-kernel@lists.debian.org> archive/latest/158269
List-ID: <debian-kernel.lists.debian.org>
List-URL: <https://lists.debian.org/debian-kernel/>
List-Archive: https://lists.debian.org/msgid-search/CAB_igaxPLaQ8KiJb1abqORodv4FLV3tKmCdChjgq72UvYD4uWQ@mail.gmail.com
Approved: robomod@news.nic.it
Lines: 223
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 13 Nov 2026 09:57:49 -0600
X-Original-Message-ID: <CAB_igaxPLaQ8KiJb1abqORodv4FLV3tKmCdChjgq72UvYD4uWQ@mail.gmail.com>