Kernel Oops - BUG: unable to handle kernel NULL pointer dereference at 0000009c; EIP is at uart_dtr_rts+0x79/0x130

Bug #871270 reported by Rafał Likus
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

I have a PCI card with OXmPCI954 chip - four UARTs for RS 232.
When I connect to ttyS4 or ttyS5 port null modem cable and connect together pins 2 and 3 (TxD with RxD) and give command
cat </dev/ttyS5
I got kernel stop working.

Kernel / Ubuntu version:
Linux version 2.6.38-11-generic-pae (buildd@zirconium) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) ) #50-Ubuntu SMP Mon Sep 12 22:21:04 UTC 2011 (Ubuntu 2.6.38-11.50-generic-pae 2.6.38.8)

I also cannot get it working when connected to onboard 16550A UARTs via cat and echo commands pair.

The card is initialized like there:
[ 0.300502] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 0.341799] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.428855] 00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 0.448363] serial 0000:00:08.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 0.448486] ttyS4: detected caps 00000700 should be 00000500
[ 0.448496] 0000:00:08.0: ttyS4 at I/O 0xdc00 (irq = 19) is a 16C950/954
[ 0.448608] ttyS5: detected caps 00000700 should be 00000500
[ 0.448614] 0000:00:08.0: ttyS5 at I/O 0xdc08 (irq = 19) is a 16C950/954
[ 0.448719] ttyS6: detected caps 00000700 should be 00000500
[ 0.448726] 0000:00:08.0: ttyS6 at I/O 0xdc10 (irq = 19) is a 16C950/954
[ 0.448829] ttyS7: detected caps 00000700 should be 00000500
[ 0.448836] 0000:00:08.0: ttyS7 at I/O 0xdc18 (irq = 19) is a 16C950/954

And after this cat from port this shows up in kernel.log:
[ 135.803584] BUG: unable to handle kernel NULL pointer dereference at 0000009c
[ 135.803985] IP: [<c1336679>] uart_dtr_rts+0x79/0x130
[ 135.804264] *pdpt = 000000002bff0001 *pde = 000000002d047067 *pte = 0000000000000000
[ 135.804703] Oops: 0000 [#1] SMP
[ 135.804895] last sysfs file: /sys/devices/virtual/sound/timer/uevent
[ 135.805224] Modules linked in: cryptd aes_i586 aes_generic vesafb snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul snd_hda_codec_hdmi snd_emu10k1 snd_hda_intel snd_via82xx snd_hda_codec snd_ac97_codec arc4 ac97_bus snd_pcm snd_mpu401_uart ath5k snd_util_mem snd_hwdep snd_seq_midi ath binfmt_misc snd_rawmidi mac80211 ppdev snd_seq_midi_event snd_seq i2c_viapro via_ircc fglrx(P) snd_timer irda snd_seq_device cfg80211 snd_page_alloc snd crc_ccitt emu10k1_gp parport_pc shpchp soundcore gameport lp parport hid_a4tech usbhid hid pata_via floppy
[ 135.806725]
[ 135.806725] Pid: 1782, comm: bash Tainted: P 2.6.38-11-generic-pae #50-Ubuntu MSI MS-6712/MS-6712
[ 135.806725] EIP: 0060:[<c1336679>] EFLAGS: 00010286 CPU: 0
[ 135.806725] EIP is at uart_dtr_rts+0x79/0x130
[ 135.806725] EAX: c179dc80 EBX: c19502e4 ECX: 00000000 EDX: ffffffff
[ 135.806725] ESI: f598c334 EDI: 00000000 EBP: ec57fd78 ESP: ec57fd6c
[ 135.806725] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[ 135.806725] Process bash (pid: 1782, ti=ec57e000 task=f1d2d860 task.ti=ec57e000)
[ 135.806725] Stack:
[ 135.806725] f598c334 f0dac800 f1d2d860 ec57fdc4 c1322a44 f598c33c 00000000 f598c348
[ 135.806725] ebfe1b40 ec57fd9c 00000060 c19502e4 f598c334 fffffff4 00000000 f1d2d860
[ 135.806725] c1076dd0 ec57fdb0 ec57fdb0 f598c334 f0dac800 ebfe1b40 ec57fde8 c13340f0
[ 135.806725] Call Trace:
[ 135.806725] [<c1322a44>] tty_port_block_til_ready+0x164/0x290
[ 135.806725] [<c1076dd0>] ? autoremove_wake_function+0x0/0x50
[ 135.806725] [<c13340f0>] uart_open+0x120/0x1b0
[ 135.806725] [<c1336f20>] ? serial8250_pm+0x0/0x30
[ 135.806725] [<c131bcf5>] tty_open+0x155/0x420
[ 135.806725] [<c11362f5>] chrdev_open+0xa5/0x1c0
[ 135.806725] [<c1130af1>] __dentry_open+0xc1/0x280
[ 135.806725] [<c1131e5e>] nameidata_to_filp+0x6e/0x80
[ 135.806725] [<c1136250>] ? chrdev_open+0x0/0x1c0
[ 135.806725] [<c113f30f>] finish_open+0xaf/0x1a0
[ 135.806725] [<c113ebb8>] ? do_path_lookup+0x68/0x120
[ 135.806725] [<c113f957>] do_filp_open+0x207/0x6e0
[ 135.806725] [<c1535bf0>] ? do_page_fault+0x0/0x490
[ 135.806725] [<c1131ec6>] do_sys_open+0x56/0x120
[ 135.806725] [<c1131fbe>] sys_open+0x2e/0x40
[ 135.806725] [<c1532874>] syscall_call+0x7/0xb
[ 135.806725] Code: 3e 0f ba 6e 38 1d 19 c0 85 c0 75 28 8b 9e a0 00 00 00 8b 3e 8b 43 68 85 c0 74 10 0f bf 50 2a 3b 93 88 00 00 00 0f 84 97 00 00 00 <f6> 87 9c 00 00 00 02 74 56 8b 1c 24 8b 74 24 04 8b 7c 24 08 89
[ 135.806725] EIP: [<c1336679>] uart_dtr_rts+0x79/0x130 SS:ESP 0068:ec57fd6c
[ 135.806725] CR2: 000000000000009c
[ 135.818900] ---[ end trace f56dd99cd0df62c0 ]---
imklog 4.6.4, log source = /proc/kmsg started.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.38-11-generic-pae (buildd@zirconium) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) ) #50-Ubuntu SMP Mon Sep 12 22:21:04 UTC 2011 (Ubuntu 2.6.38-11.50-generic-pae 2.6.38.8)
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: lemiel 1487 F.... pulseaudio
 /dev/snd/controlC1: lemiel 1487 F.... pulseaudio
CRDA: Error: [Errno 2] Nie ma takiego pliku ani katalogu
Card0.Amixer.info:
 Card hw:0 'HDMI'/'HDA ATI HDMI at 0xdfeec000 irq 17'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,00aa0100,00100000'
   Controls : 4
   Simple ctrls : 1
Card0.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Card1.Amixer.info:
 Card hw:1 'V8235'/'VIA 8235 with ALC655 at 0xc400, irq 22'
   Mixer name : 'Realtek ALC655 rev 0'
   Components : 'AC97a:414c4760'
   Controls : 48
   Simple ctrls : 29
Card2.Amixer.info:
 Card hw:2 'Live'/'SB Live! 5.1 (rev.7, serial:0x80641102) at 0xd400, irq 18'
   Mixer name : 'SigmaTel STAC9708,11'
   Components : 'AC97a:83847608'
   Controls : 224
   Simple ctrls : 45
DistroRelease: Ubuntu 11.04
HibernationDevice: RESUME=UUID=623d19a3-dfdf-46e4-a7d7-a7e23e77138e
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
MachineType: MSI MS-6712
NonfreeKernelModules: fglrx
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=pl_PL:en
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-11-generic-pae root=UUID=adb6c346-e920-4b7c-8de9-d1ede6b4e096 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 2.6.38-11.50-generic-pae 2.6.38.8
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-11-generic-pae N/A
 linux-backports-modules-2.6.38-11-generic-pae N/A
 linux-firmware 1.52.4
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
Tags: natty
Uname: Linux 2.6.38-11-generic-pae i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserAsoundrc:
 # ALSA library configuration file

 # Include settings that are under the control of asoundconf(1).
 # (To disable these settings, comment out this line.)
 </home/lemiel/.asoundrc.asoundconf>
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse lpadmin netdev plugdev sambashare tape video
dmi.bios.date: 04/02/01
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: Version 07.00T
dmi.board.name: MS-6712
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.asset.tag: 0123ABC
dmi.chassis.type: 3
dmi.chassis.vendor: Uknown Chassis Manufacture
dmi.chassis.version: Version 1.00
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrVersion07.00T:bd04/02/01:svnMSI:pnMS-6712:pvr1.0:rvnMSI:rnMS-6712:rvr1.0:cvnUknownChassisManufacture:ct3:cvrVersion1.00:
dmi.product.name: MS-6712
dmi.product.version: 1.0
dmi.sys.vendor: MSI

IKT (ikt)
affects: ubuntu → linux (Ubuntu)
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 871270

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: natty
Revision history for this message
Rafał Likus (lemiel) wrote : AcpiTables.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Rafał Likus (lemiel) wrote : AlsaDevices.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : AplayDevices.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : ArecordDevices.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : BootDmesg.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : Card1.Amixer.values.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : Card1.Codecs.codec97.0.ac97.0.0.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : Card1.Codecs.codec97.0.ac97.0.0.regs.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : Card2.Amixer.values.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : Card2.Codecs.codec97.0.ac97.0.0.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : Card2.Codecs.codec97.0.ac97.0.0.regs.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : IwConfig.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : Lspci.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : Lsusb.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : PciMultimedia.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : ProcCpuinfo_.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : ProcModules.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : UdevDb.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : UdevLog.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : UserAsoundrcAsoundconf.txt

apport information

Revision history for this message
Rafał Likus (lemiel) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Rafał Likus (lemiel) wrote : Re: kernel oops: NULL pointer dereference with OXmPCI954

Is it this bug: https://lkml.org/lkml/2011/5/17/469 - fixed in 2.6.39.2?

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the release candidate kernel versus the daily build. 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: needs-upstream-testing
summary: - kernel oops: NULL pointer dereference with OXmPCI954
+ Kernel Oops - BUG: unable to handle kernel NULL pointer dereference at
+ 0000009c; EIP is at uart_dtr_rts+0x79/0x130
tags: added: kernel-oops
Revision history for this message
Christopher M. Peñalver (penalvch) wrote :

As per https://lkml.org/lkml/2011/5/19/159 we would want to cherry pick:
> c7d7abff40c27f82fe78b1091ab3fad69b2546f9 serial: core, move termios handling to uart_startup
> 303a7a1199c20f7c9452f024a6e17bf348b6b398 serial: core, do not set DTR/RTS twice on startup
> 6f5c24ad0f7619502199185a026a228174a27e68 serial: core, remove uart_update_termios

Changed in linux (Ubuntu):
status: Confirmed → Triaged
Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: removed: needs-upstream-testing
Revision history for this message
Joseph Salisbury (jsalisbury) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.