🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3109

Bug#1152888: Regression: MOTU M4 USB audio playback fails with EIO on Linux 6.12.115 (works on 6.12.113)

#3109
From: Sebastian Kiesel
Date: Wed, 04 Nov 2026 17:50
116 lines
5648 bytes
Hi Salvatore,

On Wed, Nov 04, 2026 at 05:49:09AM +0100, Salvatore Bonaccorso wrote:
> Would it be possible that you check with 6.12.115-2 and the commit
> 70b4db7d2581 ("ALSA: usb-audio: Use the right limit for PCM OOB
> check") on top if that fixes your problem?

I can confirm that 70b4db7d2581 solves the issue with the MOTU M2.

--- linux-6.12.115/sound/usb/pcm.c      2026-10-30 13:05:25.000000000 +0100
+++ /tmp/pcm.c  2026-11-04 13:28:08.737616651 +0100
@@ -1505,7 +1505,8 @@
 
        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;

regards,
Sebastian

----

For the record, here is what I did:

In each step, testing means:

In one shell:
jackd -dalsa -dhw:1 -r48000 -p256 -n3

In a second shell:
audacity

Test is successful, if I can record and playback my voice.

Test is not successful, if I cannot record/play and jackd displays:
    JackPosixProcessSync::LockedTimedWait error usec = 5000000 err =
    Connection timed out

 
Step 1: verify again that with Debian kernel 6.12.113+deb13-amd64 
the test is successful

Step 2: verify again that with Debian kernel 6.12.115+deb13.1-amd64
the test is not successful

Step 3: build a kernel from the sources without the patch,
the test is not successful

mkdir k1
cd k1
apt-get update
apt-get source linux
touch empty.patch
cd linux-6.12.115/
debian/bin/test-patches ../empty.patch 
cd ..

sudo apt-get install \
./linux-headers-6.12+unreleased-amd64_6.12.115-2a~test_amd64.deb \
./linux-headers-6.12+unreleased-common_6.12.115-2a~test_all.deb \
./linux-image-6.12+unreleased-amd64-unsigned_6.12.115-2a~test_amd64.deb \
./linux-image-amd64-signed-template_6.12.115-2a~test_amd64.deb \
./linux-kbuild-6.12+unreleased_6.12.115-2a~test_amd64.deb \
./linux-libc-dev_6.12.115-2a~test_all.deb

sudo shutdown -r now

boot into that kernel, perform the test,
test is not successful, as expected.

reboot again, with Debian kernel 6.12.115+deb13.1-amd64

remove that test kernel:

sudo apt-get purge  \
linux-headers-6.12+unreleased-amd64 \
linux-headers-6.12+unreleased-common \
linux-image-6.12+unreleased-amd64-unsigned \
linux-image-amd64-signed-template \
linux-kbuild-6.12+unreleased


Step 4: build a kernel from the sources with patch 70b4db7d2581,
the test is successful

mkdir k2
cd k2
apt-get source linux

curl -s  https://github.com/torvalds/linux/commit/70b4db7d2581.patch | \
    sed -n '/^diff /,$p' > 70b4db7d2581.patch
cp linux-6.12.115/sound/usb/pcm.c /tmp/pcm.c
patch -l /tmp/pcm.c < 70b4db7d2581.patch 
diff -u linux-6.12.115/sound/usb/pcm.c /tmp/pcm.c > 70b4db7d2581-indented.patch

cd linux-6.12.115/
debian/bin/test-patches ../70b4db7d2581-indented.patch
cd ..

sudo apt-get install \
./linux-headers-6.12+unreleased-amd64_6.12.115-2a~test_amd64.deb \
./linux-headers-6.12+unreleased-common_6.12.115-2a~test_all.deb \
./linux-image-6.12+unreleased-amd64-unsigned_6.12.115-2a~test_amd64.deb \
./linux-image-amd64-signed-template_6.12.115-2a~test_amd64.deb \
./linux-kbuild-6.12+unreleased_6.12.115-2a~test_amd64.deb \
./linux-libc-dev_6.12.115-2a~test_all.deb

sudo shutdown -r now

boot into that kernel, perform the test,
test is successful!
Technical Details
Message-ID: <NVNhv-9Q1X-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NVpId-9Duk-1@gated-at.bofh.it> <NVBgl-9JFa-3@gated-at.bofh.it> <NV7BE-9tvH-1@gated-at.bofh.it> <NVBgl-9JFa-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!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Sebastian Kiesel <sebastian-debian-reportbug@skiesel.de>
Newsgroups: linux.debian.bugs.dist,linux.debian.kernel
Subject: Bug#1152888: Regression: MOTU M4 USB audio playback fails with EIO on Linux 6.12.115 (works on 6.12.113)
Date: Wed, 04 Nov 2026 18:50:01 +0100
Message-ID: <NVNhv-9Q1X-7@gated-at.bofh.it>
References: <NVpId-9Duk-1@gated-at.bofh.it> <NVBgl-9JFa-3@gated-at.bofh.it> <NV7BE-9tvH-1@gated-at.bofh.it> <NVBgl-9JFa-3@gated-at.bofh.it>
X-Original-To: 1152888@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Nov  4 17:49:13 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Sebastian Kiesel <sebastian-debian-reportbug@skiesel.de>, 1152888@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-kernel@lists.debian.org
X-Debian-Pr-Message: followup 1152888
X-Debian-Pr-Package: src:linux
X-Debian-Pr-Keywords: upstream moreinfo
X-Debian-Pr-Source: linux
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Organization: my personal mail account
Accept-Languages: en, de
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000642
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 116
Sender: robomod@news.nic.it
X-Original-Cc: Salvatore Bonaccorso <carnil@debian.org>
X-Original-Date: Wed, 4 Nov 2026 18:47:12 +0100
X-Original-Message-ID: <autvoKiEfOjdXogF@l1.wurstkaes.de>
X-Original-References: <auoEEkYldTKzlDWv@l1.wurstkaes.de> <auq5RSNebuP-76Nk@eldamar.lan> <179365404033.4880.4185261490236431358.reportbug@sound> <auq5RSNebuP-76Nk@eldamar.lan>