lirc_it87 module does not create /dev/lirc0; causes a kernel soft freeze on remove

Bug #659449 reported by Matti Airas
78
This bug affects 14 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have an Asus EeeBox EB1501 (European/Asian variant), which has an integrated IR receiver. On Ubuntu 10.04 (2.6.32-24-generic kernel), it worked fine with lirc_it87 module and instructions from [1]. On Ubuntu 10.10 (without lirc-modules-source), /dev/lirc0 won't get created. Furthermore, when doing "sudo rmmod lirc_it87", I get a soft kernel freeze.

[1] http://wiki.xbmc.org/index.php?title=Talk:HOW-TO_preform_a_Miminal_Ubuntu_and_XBMC_install_on_a_Asus_EeeBox_PC_EB1501

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: linux-image-2.6.35-22-generic 2.6.35-22.33
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: mairas 1696 F.... pulseaudio
 /dev/snd/pcmC0D3p: mairas 1696 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'NVidia'/'HDA NVidia at 0xf9f78000 irq 22'
   Mixer name : 'Nvidia MCP79/7A HDMI'
   Components : 'HDA:10ec0662,10438376,00100101 HDA:10de0007,10de0101,00100100'
   Controls : 21
   Simple ctrls : 10
Date: Tue Oct 12 21:44:46 2010
HibernationDevice: RESUME=UUID=206e4cac-55bd-4aa7-be30-40141762e42c
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
MachineType: ASUSTeK Computer INC. EB1501
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-22-generic root=UUID=898a1b9f-b3c0-4449-9ab8-9d5bdd31ae87 ro quiet splash
RelatedPackageVersions: linux-firmware 1.38
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
StagingDrivers: lirc_it87
Title: [STAGING]
dmi.bios.date: 11/20/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0803
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: EB1501
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: 1.XXG
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0803:bd11/20/2009:svnASUSTeKComputerINC.:pnEB1501:pvr1.XX:rvnASUSTeKComputerINC.:rnEB1501:rvr1.XXG:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: EB1501
dmi.product.version: 1.XX
dmi.sys.vendor: ASUSTeK Computer INC.

Revision history for this message
Matti Airas (mairas) wrote :
Revision history for this message
Matti Airas (mairas) wrote :

Syslog snippet showing an attempted "sudo rmmod lirc_it87"

Revision history for this message
Matti Airas (mairas) wrote :

The detailed kernel oops message, grabbed from a terminal.

Revision history for this message
forked (forked) wrote :

Same for me, my device is Asus EeeBox 1501P which has some different hardware (like cpu) than 1501, but IR devices are identical.

I have absolutely same symptoms: lirc not recognises IR device and when I doing "sudo rmmod lirc_it87", I get a soft kernel freeze.

My architecture is i386.

Revision history for this message
Peter Struhar (struhlo) wrote :
Download full text (5.2 KiB)

hello All,

same for me with Asus EeeBox 1501 with ubuntu 10.10 i386.

lirc_dev crashes after ioctl is called, see strace and related kernel crash ooops.

lircd strace :
( run as # strace -s 256 -f -v -t -o /tmp/lirc.trace.out -p 2202 )
2202 21:54:18 select(5, [4], NULL, NULL, NULL) = 1 (in [4])
2202 21:54:23 gettimeofday({1291150463, 142991}, NULL) = 0
2202 21:54:23 accept(4, {sa_family=AF_FILE, NULL}, [2]) = 5
2202 21:54:23 setsockopt(5, SOL_SOCKET, SO_LINGER, {onoff=0, linger=0}, 8) = 0
2202 21:54:23 fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR)
2202 21:54:23 fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0
2202 21:54:23 time(NULL) = 1291150463
2202 21:54:23 send(6, "<29>Nov 30 21:54:23 lircd-0.8.7[2202]: accepted new client on /var/run/lirc/lircd", 81, MSG_NOSIGNAL) = 81
2202 21:54:23 stat64("/dev/lirc0", {st_dev=makedev(0, 5), st_ino=7983, st_mode=S_IFCHR|0600, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_rdev=makedev(61, 0), st_atime=2010/11/30-21:16:42, st_mtime=2010/11/30-21:16:42, st_ctime=2010/11/30-21:16:42}) = 0
2202 21:54:23 open("/dev/lirc0", O_RDWR) = 7
2202 21:54:23 ioctl(7, I2OGETIOPS <unfinished ...>
2202 21:54:23 +++ killed by SIGKILL +++

kernel oops :
[ 2285.164593] BUG: unable to handle kernel NULL pointer dereference at 0000005c
[ 2285.164609] IP: [<fcd9e48b>] irctl_ioctl+0x2b/0x310 [lirc_dev]
[ 2285.164625] *pdpt = 0000000033a0d001 *pde = 0000000000000000
[ 2285.164635] Oops: 0000 [#7] SMP
[ 2285.164641] last sysfs file: /sys/devices/pci0000:00/0000:00:16.0/0000:04:00.0/irq
[ 2285.164649] Modules linked in: ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack xt_tcpudp xt_multiport iptable_filter ip_tables x_tables lirc_it87 lirc_dev nvidia(P) snd_hda_codec_nvhdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_rawmidi arc4 snd_seq_midi_event snd_seq ath9k snd_timer snd_seq_device ath9k_common snd psmouse ath9k_hw eeepc_wmi i2c_nforce2 ath mac80211 soundcore serio_raw agpgart lp sparse_keymap cfg80211 snd_page_alloc xhci_hcd asus_atk0110 shpchp led_class parport r8169 ahci libahci mii usb_storage
[ 2285.164734]
[ 2285.164743] Pid: 2202, comm: lircd Tainted: P D 2.6.35-23-generic-pae #41-Ubuntu EB1501/EB1501
[ 2285.164750] EIP: 0060:[<fcd9e48b>] EFLAGS: 00010246 CPU: 0
[ 2285.164758] EIP is at irctl_ioctl+0x2b/0x310 [lirc_dev]
[ 2285.164764] EAX: 00000000 EBX: 80046900 ECX: 08062368 EDX: 80046900
[ 2285.164770] ESI: f3236f80 EDI: 00000000 EBP: f3159f50 ESP: f3159f2c
[ 2285.164777] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[ 2285.164783] Process lircd (pid: 2202, ti=f3158000 task=f6ad1960 task.ti=f3158000)
[ 2285.164788] Stack:
[ 2285.164792] 00000000 00000000 00000000 00000000 08062368 00000000 f3236f80 08062368
[ 2285.164806] <0> 80046900 f3159f6c c02309c2 00000000 fcd9e460 f3236f80 00000007 08062368
[ 2285.164820] <0> f3159f8c c0231259 00000000 f3159fb4 f6ad1960 f3236f80 00000007 08062368
[ 2285.164837] Call Trace:
[ 2285.164852] [<c02309c2>] ? vfs_ioctl+0x32/0xb0
[ 2285.164861] [<fcd9e460>] ? irctl_ioctl+0x0/0x310 [lirc_dev]
[ 2285.164870] [<c0231259>] ? do_vfs_ioctl+0x79/0x2d0
[ 2285.1...

Read more...

Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve Greene (sgreene59) wrote :

Same kernel BUG, mostly the same traces in syslog, using amd64 architecture, in Natty 11.04. Kernel does not freeze with "sudo rmmod lirc_it87" Also worked fine under 10.04 LTS. More details available if needed.

Revision history for this message
penalvch (penalvch) wrote :

Matti Airas, thank you for reporting this and helping make Ubuntu better. This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please capture the oops following https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Capturing_OOPs ? As well, can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux <replace-with-bug-number>

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

tags: added: kernel-oops
summary: - lirc_it87 module does not create /dev/lirc0; causes a kernel soft freeze
- on remove
+ Kernel Oops - BUG: unable to handle kernel NULL pointer dereference at
+ 0000005c; EIP is at irctl_ioctl+0x2b/0x310 [lirc_dev]
summary: - Kernel Oops - BUG: unable to handle kernel NULL pointer dereference at
- 0000005c; EIP is at irctl_ioctl+0x2b/0x310 [lirc_dev]
+ lirc_it87 module does not create /dev/lirc0; causes a kernel soft freeze
+ on remove
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Matti Airas (mairas) wrote :

Hi Christopher,

I haven't had this issue with 11.04 or 11.10. I didn't test with 12.04 beta but I expect this particular issue to be resolved for good.

Revision history for this message
penalvch (penalvch) wrote :

Matti Airas, this bug report is being closed due to your last comment regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in linux (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.