Bug 214985
Summary: | snd_ctxfi module crashes in kernel 5.15.1, kernel 5.13.x not affected | ||
---|---|---|---|
Product: | Drivers | Reporter: | Javier Fernandez (elhoir) |
Component: | Sound(ALSA) | Assignee: | Jaroslav Kysela (perex) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | tiwai |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.15.1, 5.13.x not affected | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
dmesg output wth kernel 5.15.1
Test fix patch reject after applying 1st patch |
crash is at: [ 22.223684] RIP: 0010:srcimp_next_conj+0x31/0x40 [snd_ctxfi] may this line be interesting too? [ 21.838167] snd_ctxfi 0000:04:00.0: chip 20K2 model Unknown (1102:0044) is found Hm, there has been no code change on ctxfi driver at all since 5.13. So it must be coincidence that it happens now or effected by some other change; in anyway the bug has to be present in the past, too, but just not surfaced. To be honest, the working 5.13 kernel i use is not an upstream one, but the Ubuntu one, named elhoir@elhoir-desktop:~$ uname -r 5.13.0-20-generic elhoir@elhoir-desktop:~$ I can use latest upstream 5.13 kernel if you wish (In reply to Javier Fernandez from comment #1) > crash is at: > > [ 22.223684] RIP: 0010:srcimp_next_conj+0x31/0x40 [snd_ctxfi] > > may this line be interesting too? > > [ 21.838167] snd_ctxfi 0000:04:00.0: chip 20K2 model Unknown (1102:0044) > is found nope, i just found this "Unknown" thing into 5.13 dmesg too. Could you try the following patch? Created attachment 299527 [details]
Test fix patch
i'll try (In reply to Takashi Iwai from comment #5) > Could you try the following patch? while applying the patch, output was: can't find file to patch at input line 135 Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/sound/pci/ctxfi/ctsrc.c b/sound/pci/ctxfi/ctsrc.c |index bd4697b44233..4a94b4708a77 100644 |--- a/sound/pci/ctxfi/ctsrc.c |+++ b/sound/pci/ctxfi/ctsrc.c -------------------------- File to patch: sound/pci/ctxfi/ctsrc.c patching file sound/pci/ctxfi/ctsrc.c Hunk #1 FAILED at 590. 1 out of 1 hunk FAILED -- saving rejects to file sound/pci/ctxfi/ctsrc.c.rej elhoir@elhoir-desktop:~/linux-5.15.1$ any idea? Created attachment 299529 [details]
reject after applying 1st patch
reject after applying 1st patch
It applies cleanly on 5.15.1, so if any, you must have some local modifications that conflict. (In reply to Takashi Iwai from comment #10) > It applies cleanly on 5.15.1, so if any, you must have some local > modifications that conflict. Nope, i just downloaded 5.15.1 tarball. let me try again failed again. same error :-/ just downloaded and extracted tarball, no modifications :S Weird. It works fine here. Using linux-stable git tree, % git checkout v5.15.1 % md5sum ctxfi-fix.diff e2844826d07a13f534a1be58b858de6b ctxfi-fix.diff % patch -p1 < ctxfi-fix.diff patching file sound/pci/ctxfi/ctamixer.c patching file sound/pci/ctxfi/ctdaio.c patching file sound/pci/ctxfi/ctresource.c patching file sound/pci/ctxfi/ctresource.h patching file sound/pci/ctxfi/ctsrc.c Also works fine with linux-5.15.1.tar.gz. % md5sum linux-5.15.1.tar.gz 6d8af914422a3660c4b8dcbb1cb6b905 linux-5.15.1.tar.gz % tar xf linux-5.15.1.tar.gz % cd linux-5.15.1 % patch -p1 < ~/ctxfi-fix.diff patching file sound/pci/ctxfi/ctamixer.c patching file sound/pci/ctxfi/ctdaio.c patching file sound/pci/ctxfi/ctresource.c patching file sound/pci/ctxfi/ctresource.h patching file sound/pci/ctxfi/ctsrc.c hmm... maybe i missed the "-p1" parameter... letś try again... also, the tarball i downloaded in under .tar.xz format, not .tar.gz... ok, now it worked. Yes, i missed the "-p1" parameter. (currently fighting with dpkg-deb to make .deb packages for the kernel and install and uninstall it easy and safely) iḿ very sorry for the long delay, but iḿ unable to compile and install kernel in a way that is easy to uninstall it (i mean, via .deb packages). Sorry. I have sources downloaded and yout patch applied. But i dont know how to install it. At best ask your distro. Now running latest upstream 5.14 kernel (5.14.21) snd_ctxfi module works fine. So crash happens between 5.15-rc1 and 5.15.1 doesnt crash in 5.15.10 so crash seems fixed as of that version. Good to hear. Let's close now. |
Created attachment 299511 [details] dmesg output wth kernel 5.15.1 Usint Ubuntu 21.10 with shipped kernel (5.13.x), everything works fine. But, at upgrading kernel to mainline 5.15.1, i see my sound card (emu20k2, Creative Labs Sound Blaster X-Fi Titanium) does not work anymore. By downgrading to 5.13 kernel problem is solved As seen in the dmesg output attached, snd_ctxfi module is crashing.