Re: UBSAN: shift-out-of-bounds in sound/pci/ctxfi/cthw20k2.c:956:31

Takashi Iwai
2026-03-29T09:12:21Z

On Sat, 28 Mar 2026 20:24:17 +0100,
Karsten Hohmeier wrote:
>
> Hello Takashi,
>
> I applied your one-liner with the previous patch still in place.
> The module loads and kernel boots without messages.
> Since the one-liner seemed SPDIF related I also tested the optical in and out and it all works.
>
> Idk if it is the hardware or just a quirky implementation, but the SPDIF-in is grouped together with the analog inputs and without enabling those AND turning up SPDIF-in in alsamixer I don't get anything.
> But I think it has always been like this.
>
> Thumbs up from me if you want to turn this into a proper patch again.

Thanks for verification! I'm going to submit the proper fix patches.

Takashi