public inbox for linux-sound@vger.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Karsten Hohmeier <linux@hohmatik.de>
Cc: tiwai@suse.de, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org
Subject: Re: UBSAN: shift-out-of-bounds in sound/pci/ctxfi/cthw20k2.c:956:31
Date: Fri, 27 Mar 2026 10:08:57 +0100	[thread overview]
Message-ID: <87tsu1skpi.wl-tiwai@suse.de> (raw)
In-Reply-To: <20260321195621.16139-1-linux@hohmatik.de>

On Sat, 21 Mar 2026 20:56:21 +0100,
Karsten Hohmeier wrote:
> 
> Hello Takashi,
> 
> I applied your patch and uncommented the stack dumps.
> Here is what I get.
> 
> Mar 21 20:41:34 dtest kernel: XXX invalid type 9 for hw20k2

Thanks, this looks like the cause.
Could you try the following one-liner?


thanks,

Takashi

--- a/sound/pci/ctxfi/ctdaio.c
+++ b/sound/pci/ctxfi/ctdaio.c
@@ -118,6 +118,7 @@ static unsigned int daio_device_index(enum DAIOTYP type, struct hw *hw)
 		switch (type) {
 		case SPDIFOO:	return 0;
 		case SPDIFIO:	return 0;
+		case SPDIFI1:	return 1;
 		case LINEO1:	return 4;
 		case LINEO2:	return 7;
 		case LINEO3:	return 5;

  reply	other threads:[~2026-03-27  9:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260315155004.15633-1-linux@hohmatik.de>
2026-03-16  8:46 ` UBSAN: shift-out-of-bounds in sound/pci/ctxfi/cthw20k2.c:956:31 Takashi Iwai
2026-03-21 19:56   ` Karsten Hohmeier
2026-03-27  9:08     ` Takashi Iwai [this message]
2026-03-28 19:24   ` Karsten Hohmeier
2026-03-29  9:12     ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tsu1skpi.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=linux@hohmatik.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox