From: Takashi Iwai <tiwai@suse.de>
To: Karsten Hohmeier <linux@hohmatik.de>
Cc: carnil@debian.org, 1121535@bugs.debian.org,
linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org,
perex@perex.cz, tiwai@suse.com, tiwai@suse.de,
waxhead@dirtcellar.net
Subject: Re: Bug#1121535: UBSAN: array-index-out-of-bounds in [...]sound/pci/ctxfi/ctamixer.c:347:48
Date: Wed, 07 Jan 2026 17:29:40 +0100 [thread overview]
Message-ID: <87pl7lgzd7.wl-tiwai@suse.de> (raw)
In-Reply-To: <20251226172103.5473-1-linux@hohmatik.de>
On Fri, 26 Dec 2025 18:21:03 +0100,
Karsten Hohmeier wrote:
>
> Hello. I am another affected user.
> I applied the suggested patch by Takeshi on top of 6.18.2 (in case it got already fixed).
>
> But this just gives
>
> > Dez 26 17:24:13: dtest kernel: UBSAN: array-index-out-of-bounds in sound/pci/ctxfi/ctamixer.c:344:48
> > Dez 26 17:24:13: dtest kernel: index 10 is out of range for type 'unsigned char [9]'
>
> as the error. Making the struct even larger gives
>
> > Dez 26 17:39:35 dtest kernel: UBSAN: array-index-out-of-bounds in sound/pci/ctxfi/ctamixer.c:344:48
> > Dez 26 17:39:35 dtest kernel: index 32 is out of range for type 'unsigned char [32]'
>
> Could you take another look?
OK, then we seem scratching a wrong surface.
How about the changes below?
Takashi
-- 8< --
--- a/sound/pci/ctxfi/ctamixer.c
+++ b/sound/pci/ctxfi/ctamixer.c
@@ -205,6 +205,7 @@ static int amixer_rsc_init(struct amixer *amixer,
/* Set amixer specific operations */
amixer->rsc.ops = &amixer_basic_rsc_ops;
+ amixer->rsc.conj = 0;
amixer->ops = &amixer_ops;
amixer->input = NULL;
amixer->sum = NULL;
@@ -367,6 +368,7 @@ static int sum_rsc_init(struct sum *sum,
return err;
sum->rsc.ops = &sum_basic_rsc_ops;
+ sum->rsc.conj = 0;
return 0;
}
next prev parent reply other threads:[~2026-01-07 16:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <176428476762.2962.8176922083972711750.reportbug@main.localdomain>
2025-11-28 6:07 ` UBSAN: array-index-out-of-bounds in [...]sound/pci/ctxfi/ctamixer.c:347:48 Salvatore Bonaccorso
2025-11-28 17:24 ` Takashi Iwai
2025-11-28 19:32 ` Salvatore Bonaccorso
2025-11-29 8:06 ` Bug#1121535: " Salvatore Bonaccorso
2025-12-26 17:21 ` Karsten Hohmeier
2026-01-07 16:29 ` Takashi Iwai [this message]
2026-01-10 10:39 ` Karsten Hohmeier
2026-01-18 18:48 ` Karsten Hohmeier
2026-01-19 13:30 ` 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=87pl7lgzd7.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=1121535@bugs.debian.org \
--cc=carnil@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux@hohmatik.de \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=waxhead@dirtcellar.net \
/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