New: OOPS in 2.6.18-rc5 and flash.ko
Quoted 17 lines · On Wed, 6 Sep 2006 22:36:00 -0700 [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?idq18
Summary: OOPS in 2.6.18-rc5 and flash.ko
Kernel Version: 2.6.18-rc5
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]Most recent kernel where this bug did not occur: 2.6.17.11
Distribution: Debian Sarge
Hardware Environment: Sun Ultra 5
Software Environment: Sarge
Problem Description: After boot and insertig flash.ko module kernel OOPS OOPS attached.
Quoted 3 lines
Steps to reproduce:
Compile 2.6.18-rc5 and flash as module and boot
It oopsed.
rtc_sun_init: Registered Mostek RTC driver.
OBP Flash: RD 1fff0000000[100000] WR 1fff0000000[100000]
Unable to handle kernel NULL pointer dereference
tsk->{mm,active_mm}->context = 0000000000000970
tsk->{mm,active_mm}->pgd = fffff80016148000
\|/ ____ \|/
"@'/ .. \
/_| \__/ |_\
\__U_/discover(2007): Oops [#1]
TSTATE: 0000004411009607 TPC: 0000000000428644 TNPC: 0000000000428648 Y: 00000000 Not tainted
TPC: <of_find_property+0xc/0x60>
g0: fffff80016823231 g1: 0000000020004f07 g2: 0000000020004c00 g3: 0000000000000f7c
g4: fffff80017c30e00 g5: 0000000000000000 g6: fffff80016820000 g7: 0000000000000000
o0: fffff80017f38940 o1: 00000000000000d0 o2: 0000000001010101 o3: 0000000080808080
o4: 0000000053554e57 o5: 0000000073627573 sp: fffff800168231f1 ret_pc: 00000000f7fa8db0
RPC: <0xf7fa8db8>
l0: 000000000000058c l1: 00000000f7fad4a0 l2: 00000000f7fbef78 l3: 0000000000000000
l4: 0000000000000000 l5: 0000000000000000 l6: 0000000000000000 l7: 00000000f7fbe7ac
i0: 0000000000000000 i1: fffff800179bb004 i2: fffff80016823c2c i3: fffff800179bb000
i4: 0000000000000000 i5: 0000000000000000 i6: fffff800168232b1 i7: 00000000004286b0
I7: <of_get_property+0x18/0x40>
Caller[00000000004286b0]: of_get_property+0x18/0x40
Caller[00000000005c8e70]: opromgetprop+0x18/0xa0
Caller[00000000005c92b0]: openprom_sunos_ioctl+0xf8/0x240
Caller[00000000005c9c8c]: openprom_compat_ioctl+0x54/0x60
Caller[00000000004c773c]: compat_sys_ioctl+0x204/0x280
Caller[00000000004069d4]: linux_sparc_syscall32+0x3c/0x40
Caller[00000000f7fa8d54]: 0xf7fa8d5c
Instruction DUMP: 01000000 01000000 9de3bf40 <f05e2028> 02c60011 01000000 d05e0000 4004c0c3 92100019
usbcore: registered new driver usbfs
usbcore: registered new driver hubohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v3.0
eth0: Link is up using internal transceiver at 100Mb/s, Full Duplex.
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present
ioctl32(XFree86:2842): Unknown cmd fd(5) cmd(40584606){00} arg(ff7c3b50) on /dev/fb0 ioctl32(XFree86:2842): Unknown cmd fd(5) cmd(40184600){00} arg(ff7c3b58) on /dev/fb0
From: Andrew Morton <[email protected]>
Date: Wed, 6 Sep 2006 22:42:56 -0700
Quoted 1 line
It oopsed.
...
Quoted 13 lines
discover(2007): Oops [#1]
TSTATE: 0000004411009607 TPC: 0000000000428644 TNPC: 0000000000428648 Y: 00000000 Not tainted
TPC: <of_find_property+0xc/0x60>
g0:fffff80016823231g1:0000000020004f07g2:0000000020004c00g3:0000000000000f7c
g4:fffff80017c30e00g5: 0000000000000000 g6:fffff80016820000g7: 0000000000000000
o0:fffff80017f38940o1:00000000000000d0o2: 0000000001010101 o3: 0000000080808080
o4:0000000053554e57o5: 0000000073627573 sp:fffff800168231f1ret_pc:00000000f7fa8db0
RPC: <0xf7fa8db8>
l0:000000000000058cl1:00000000f7fad4a0l2:00000000f7fbef78l3: 0000000000000000
l4: 0000000000000000 l5: 0000000000000000 l6: 0000000000000000 l7:00000000f7fbe7ac
i0: 0000000000000000 i1:fffff800179bb004i2:fffff80016823c2ci3:fffff800179bb000
i4: 0000000000000000 i5: 0000000000000000 i6:fffff800168232b1i7:00000000004286b0
I7: <of_get_property+0x18/0x40>
Quoted 8 lines
Caller[00000000004286b0]:
of_get_property+0x18/0x40
Caller[00000000005c8e70]:opromgetprop+0x18/0xa0
Caller[00000000005c92b0]:openprom_sunos_ioctl+0xf8/0x240
Caller[00000000005c9c8c]:openprom_compat_ioctl+0x54/0x60
Caller[00000000004c773c]:compat_sys_ioctl+0x204/0x280
Caller[00000000004069d4]:linux_sparc_syscall32+0x3c/0x40
Caller[00000000f7fa8d54]:0xf7fa8d5c
Instruction DUMP: 01000000 010000009de3bf40<f05e2028>02c6001101000000d05e00004004c0c392100019
The /dev/openprom driver is somehow getting a NULL pointer in data->current_node.
I think the issue is that we don't handle the termination properly when OPROMNEXT hits the end of the list. We set ->current_node to NULL and things explode.
The NULL ->current_node handling in this file needs a lot of fixing and auditing, I'll try to work on fixing all of it soon.
Thanks for the report.