Article View: linux.debian.kernel
Article #434Bug#1153053: AW: Re: Bug#1153053: UR22C playback fails with kernel 6.12.115 but works with kernel 7.2.11
From: Salvatore Bonaccorso
Date: Fri, 06 Nov 2026 05:20
Date: Fri, 06 Nov 2026 05:20
72 lines
5147 bytes
5147 bytes
--iS69mQfqVL+Ydg39
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
On Thu, Nov 05, 2026 at 08:58:13PM +0000, Wolle Hartz wrote:
> Exactly, the problem occurs with Linux Mint Debian Edition 7 when I
> run "apt update && apt full-upgrade"" on a fresh install. Kernel
> 6.12.115 gets installed, and the audio interface can no longer be
> used. I'm currently using the Trixie backports and have a 7.x
> kernel.
From which version did you update, which was the last one in the
6.12.y series which worked? I suspect this is the same as #1152888,
but we need those details first.
Additionally can you please test with debian/bin/test-patches approach
the 6.12.115-2 plus the attached patch on top to verify it fixes the
issue as well for you?
Regards,
Salvatore
--iS69mQfqVL+Ydg39
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
filename=ALSA-usb-audio-Use-the-right-limit-for-PCM-OOB-check.patch
From: Takashi Iwai <tiwai@suse.de>
Date: Wed, 21 Jan 2026 09:20:20 +0100
Subject: ALSA: usb-audio: Use the right limit for PCM OOB check
Origin: https://git.kernel.org/linus/70b4db7d258118a7464f039112a74ddb49a95b06
Bug-Debian: https://bugs.debian.org/1152888
The recent fix commit for addressing the OOB access of PCM URB data
buffer caused a regression on Behringer UMC2020HD device, resulting in
choppy sound. The fix used ep->max_urb_frames for the upper limit
check, and this is no right value to be referred.
Use the actual buffer size (ctx->buffer_size) as the upper limit
instead, which also avoids the regression on the device above.
Fixes: ef5749ef8b30 ("ALSA: usb-audio: Prevent excessive number of frames")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=220997
Link: https://patch.msgid.link/20260121082025.718748-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[ sashal: Backport differs from upstream only in indentation, since the for loop sits one block shallower in this tree; the changed lines are otherwise identical. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
sound/usb/pcm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index 3a4666e3bf277..5aadd1221f725 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -1505,7 +1505,8 @@ static int prepare_playback_urb(struct snd_usb_substream *subs,
for (i = 0; i < ctx->packets; i++) {
counts = snd_usb_endpoint_next_packet_size(ep, ctx, i, avail);
- if (counts < 0 || frames + counts >= ep->max_urb_frames)
+ if (counts < 0 ||
+ (frames + counts) * stride > ctx->buffer_size)
break;
/* set up descriptor */
urb->iso_frame_desc[i].offset = frames * stride;
--
2.53.0
--iS69mQfqVL+Ydg39--
Technical Details
Message-ID:
<NWkwN-a7OH-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!bofh.it!news.nic.it!robomodReferences:
<NVQ5I-9Rwi-3@gated-at.bofh.it> <NW117-9Xqr-5@gated-at.bofh.it> <NWkwN-a7OH-3@gated-at.bofh.it> <NVQ5I-9Rwi-3@gated-at.bofh.it> <NWkwN-a7OH-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: Salvatore Bonaccorso <carnil@debian.org> Newsgroups: linux.debian.bugs.dist,linux.debian.kernel Subject: Bug#1153053: AW: Re: Bug#1153053: UR22C playback fails with kernel 6.12.115 but works with kernel 7.2.11 Date: Fri, 06 Nov 2026 06:20:01 +0100 Message-ID: <NWkwN-a7OH-1@gated-at.bofh.it> References: <NVQ5I-9Rwi-3@gated-at.bofh.it> <NW117-9Xqr-5@gated-at.bofh.it> <NWkwN-a7OH-3@gated-at.bofh.it> <NVQ5I-9Rwi-3@gated-at.bofh.it> <NWkwN-a7OH-3@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 6 05:13:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Salvatore Bonaccorso <carnil@debian.org>, 1153053@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-kernel@lists.debian.org X-Debian-Pr-Message: followup 1153053 X-Debian-Pr-Package: src:linux X-Debian-Pr-Keywords: moreinfo X-Debian-Pr-Source: linux MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="iS69mQfqVL+Ydg39" Content-Disposition: inline X-Debian-User: carnil X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000910 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 72 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: 1153053@bugs.debian.org X-Original-Date: Fri, 6 Nov 2026 06:11:37 +0100 X-Original-Message-ID: <au1hiUcDaSkIGT3G@eldamar.lan> X-Original-References: <QDesvAXx6h1uJYpfW0CTTEJE1wTb5_eG8pF_9ey0aYks1Fy0jydA3fTCyF53Vy8qlnnkAmIoDF2HDRxTovEZ3Cg59wZGR2gShFalV0W7wtQ=@protonmail.com> <auw8-yf_DPqmzHom@eldamar.lan> <twjLd1MB9IBLUjBihpwAZlRODnR22AdcefHQZetcV_zWmoWZubM9G1HLAF1q_T0tAjISKx3eHKYcssiJd_8yYz_lW7BmwfiPpzxB13-o_U0=@protonmail.com> <QDesvAXx6h1uJYpfW0CTTEJE1wTb5_eG8pF_9ey0aYks1Fy0jydA3fTCyF53Vy8qlnnkAmIoDF2HDRxTovEZ3Cg59wZGR2gShFalV0W7wtQ=@protonmail.com> <twjLd1MB9IBLUjBihpwAZlRODnR22AdcefHQZetcV_zWmoWZubM9G1HLAF1q_T0tAjISKx3eHKYcssiJd_8yYz_lW7BmwfiPpzxB13-o_U0=@protonmail.com>