[Bug 750106] New: Recent system update results in 'Error inserting lirc_serial : Device or resource busy' and kernel panic.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c0 Summary: Recent system update results in 'Error inserting lirc_serial : Device or resource busy' and kernel panic. Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: openSUSE 12.1 Status: NEW Severity: Critical Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: vodicka.petr@email.cz QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=479148) --> (http://bugzilla.novell.com/attachment.cgi?id=479148) Kernel trace logged few seconds before kernel panic. User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 Yesterday I have updated my PC, which I am using as HTPC (last update I made about 14 days ago and no problem till yesterday). During reboot mesage "Error inserting lirc_serial (/lib/modules/3.1.9-1.4-default/kernel/drivers/staging/lirc/lirc_serial.ko): Device or resource busy" appeared and few seconds later kernel trace showed up and after few more seconds kernel panic occured. I tried to reboot many times when searching for workaround and I managed to boot without these errors in about 1 of 10 tries (maybe some race condition???). I tried to downgrade to 3.1.0 kernel from oss repository and same error appeared after reboot so problem must be somewhere else. I tried default and desktop kernels too. Finally I founded a workaroud. Only runlevel 1 was working, so I had to disable loading of module lirc_serial during boot (deleted lirc_serial from /etc/sysconfig/lirc file) and then after succesfull boot to runlevel 5 I had to load module manually "modprobe lirc_serial" with no errors. After that everything is working, PC is running rock stable. But I have to load module manually after every reboot. Reproducible: Always Steps to Reproduce: 1. Make update of system. 2. Enable lirc_serial module loading in /etc/sysconfig/lirc file. 3. Reboot. Actual Results: Kernel panic. Expected Results: Normal boot. My HW is Atom with ION chipset, 2GB RAM, 2 SATA HDDs, IR serial receiver http://stuff.nekhbet.ro/2006/07/10/make-an-infrared-remote-control-for-pc.ht.... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c1 --- Comment #1 from Petr Vodicka <vodicka.petr@email.cz> 2012-03-02 14:06:07 UTC --- Created an attachment (id=479174) --> (http://bugzilla.novell.com/attachment.cgi?id=479174) Packages update history -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c2 Petr Vodicka <vodicka.petr@email.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vodicka.petr@email.cz --- Comment #2 from Petr Vodicka <vodicka.petr@email.cz> 2012-03-02 14:12:12 UTC --- I added log with update history. Obviously I made update 28.2. (I really forgot that :)) with no problem. It looks that only one packages which could cause there problems from last update (1.3. 8:53) are systemd related. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c3 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jslaby@suse.com InfoProvider| |vodicka.petr@email.cz --- Comment #3 from Jiri Slaby <jslaby@suse.com> 2012-03-07 09:57:47 UTC --- What happens if you do cat /proc/interrupts after the module is loaded? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c4 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel-maintainers@forge.pr |jslaby@suse.com |ovo.novell.com | --- Comment #4 from Jiri Slaby <jslaby@suse.com> 2012-03-07 10:44:19 UTC --- I think we need this: commit affc9a0d59ac49bd304e2137bd5e4ffdd6fdfa52 Author: Ben Hutchings <ben@decadent.org.uk> Date: Wed Nov 16 01:54:04 2011 -0300 [media] staging: lirc_serial: Do not assume error codes returned by request_irq() -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c5 Petr Vodicka <vodicka.petr@email.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|vodicka.petr@email.cz | --- Comment #5 from Petr Vodicka <vodicka.petr@email.cz> 2012-03-08 14:58:29 UTC --- Created an attachment (id=480415) --> (http://bugzilla.novell.com/attachment.cgi?id=480415) cat /proc/interrupts output Look in this attachment for "cat /proc/interrupts" output... But this output is generated after boot without lirc_serial module and "modprobe lirc_serial" after complete boot. If you need command output after error, I am not able to get that because of kernel panic and system hang. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c6 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |vodicka.petr@email.cz --- Comment #6 from Jiri Slaby <jslaby@suse.com> 2012-03-09 09:06:50 UTC --- Ok, is it better with this kernel: http://labs.suse.cz/jslaby/bug-750106/ nnmmm -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c7 Petr Vodicka <vodicka.petr@email.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|vodicka.petr@email.cz | --- Comment #7 from Petr Vodicka <vodicka.petr@email.cz> 2012-03-11 18:27:30 UTC --- Sorry, no change. But I tried to downgrade to "12.1 without updates" and I compared kernel logs. Working older version: vodic-server kernel: [ 56.378103] lirc_serial: module is from the staging directory, the quality is unknown, you have been warned. vodic-server kernel: [ 57.284099] lirc_serial: auto-detected active low receiver vodic-server kernel: [ 57.285171] lirc_serial lirc_serial.0: lirc_dev: driver lirc_serial registered at minor = 0 vodic-server lircd-0.8.7[2372]: lircd(default) ready, using /var/run/lirc/lircd Recent not working version: vodic-server kernel: [ 34.661786] lirc_serial: module is from the staging directory, the quality is unknown, you have been warned. vodic-server kernel: [ 34.672573] lirc_serial: port 03f8 already in use vodic-server kernel: [ 34.677725] lirc_serial: use 'setserial /dev/ttySX uart none' vodic-server kernel: [ 34.677730] lirc_serial: or compile the serial port driver as module and vodic-server kernel: [ 34.677734] lirc_serial: make sure this module is loaded first So it looks that problem is that lirc_module is loaded almost 20 seconds earlier and before bool.local where "setserial /dev/ttyS0 uart none" command is located. I also realized that kernel panic occured on setserial command (not in log, only on screen and it was always out of screen so I didn't see that). To make sure I disabled again loading of kernel module in /etc/sysconfig/lirc and added line "modprobe lirc_serial" to /etc/rc.d/boot.local after "setserial /dev/ttyS0 uart none" line and it worked. But I don't know how to repair that "clean way". Probably setserial command should be in /etc/rc.d/lirc, but if I write it there, it will be overwritten after update. Or make lirc_serial module to be loaded before serial module (it should work without setserial command), but I don't know how to do that, so I didn't test this solution. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c8 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |vodicka.petr@email.cz --- Comment #8 from Jiri Slaby <jslaby@suse.com> 2012-03-12 16:37:41 UTC --- Oh, we need also: commit c8e57e1b766c2321aa76ee5e6878c69bd2313d62 Author: Ben Hutchings <ben@decadent.org.uk> Date: Wed Nov 16 01:52:11 2011 -0300 [media] staging: lirc_serial: Free resources on failure paths of lirc_serial_probe() Could you check the kernel at: http://labs.suse.cz/jslaby/bug-750106/ again? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c9 Petr Vodicka <vodicka.petr@email.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|vodicka.petr@email.cz | Resolution| |FIXED --- Comment #9 from Petr Vodicka <vodicka.petr@email.cz> 2012-03-14 08:47:54 UTC --- Great, kernel panic is gone. When setserial is called later than lirc_serial module load, lirc is logging that serial port is occupied (and not working after boot), but system is booting normally. Only difficulty is that lirc_serial module can't be set in /etc/sysconfig/lirc where it logically belongs. Maybe subject for improvement in new version :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c10 --- Comment #10 from Petr Vodicka <vodicka.petr@email.cz> 2012-03-14 08:57:21 UTC --- It looks, that it should work if I insert setserial command to /etc/init.d/before.local. I didn't know about this file, but it looks as the right place. Than lirc_serial could be defined in /etc/sysconfig/lirc file. I will test this today. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c11 --- Comment #11 from Petr Vodicka <vodicka.petr@email.cz> 2012-03-16 13:06:59 UTC --- /etc/init.d/before.local is not working too. It is called too early :) I also tried add "pre-install lirc_serial setserial /dev/ttyS0 uart none" to /etc/modprobe.d/lirc file, but it's the Gentoo way which is not working in OpenSUSE. So only working, but not clean way, is to add lines "modprobe lirc_serial" and "setserial /dev/ttyS0 uart none" to boot.local and remove lirc_serial from /etc/sysconfig/lirc. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |obs:running:440:low -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=750106 https://bugzilla.novell.com/show_bug.cgi?id=750106#c12 --- Comment #12 from Swamp Workflow Management <swamp@suse.de> 2012-04-20 14:12:41 UTC --- openSUSE-SU-2012:0540-1: An update that solves 6 vulnerabilities and has 17 fixes is now available. Category: security (low) Bug References: 676204,718918,719416,721739,722350,726600,729247,731387,731590,732908,738397,741128,744658,745832,746695,746980,747404,749569,749651,750079,750106,750959,755812 CVE References: CVE-2011-1083,CVE-2011-4077,CVE-2011-4086,CVE-2012-1090,CVE-2012-1097,CVE-2012-1146 Sources used: openSUSE 12.1 (src): kernel-docs-3.1.10-1.9.2, kernel-source-3.1.10-1.9.1, kernel-syms-3.1.10-1.9.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=750106 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|obs:running:440:low | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com