Skip to contentSkip to conversation

[2.6.26.4] Oops: Unable to handle kernel paging request at virtual address 00000000491f2000

DISCUSSION Frans Pop 2 participants 6 messages Nov 15, 2008 – Dec 15, 2008

lore
Share & tools
lore

Frans Pop

author
#0 lore raw

During a test installation of Debian I got the following Oops at the point where either the installer's internal webserver (implemented in shell using netcat ;-) was started or where that server was contacted a bit later. The oops did not repeat; the installation as a whole succeeded.

I know this is not a very current kernel, but this is what we're releasing with. Well, the release will be using 2.6.26.7 actually.

Cheers,
FJP

Nov 15 21:51:18 main-menu[8071]: INFO: Menu item 'save-logs' selected
Nov 15 21:51:20 kernel: [ 2172.122285] Unable to handle kernel paging request at virtual address 00000000491f2000
Nov 15 21:51:20 kernel: [ 2172.122723] tsk->{mm,active_mm}->context = 000000000000103c
Nov 15 21:51:20 kernel: [ 2172.123000] tsk->{mm,active_mm}->pgd = fffff8003e28e000
Nov 15 21:51:20 kernel: [ 2172.123260]               \|/ ____ \|/
Nov 15 21:51:20 kernel: [ 2172.123272]               "@'/ .. \`@"
Nov 15 21:51:20 kernel: [ 2172.123282]               /_| \__/ |_\
Nov 15 21:51:20 kernel: [ 2172.123291]                  \__U_/
Nov 15 21:51:20 kernel: [ 2172.123311] cat(6180): Oops [#1]
Nov 15 21:51:20 kernel: [ 2172.123335] TSTATE: 0000008811009607 TPC: 00000000004579ac TNPC: 00000000004579b0 Y: 00000000    Not tainted
Nov 15 21:51:20 kernel: [ 2172.123379] TPC: <r_show+0x34/0x9c>
Nov 15 21:51:20 kernel: [ 2172.123398] g0: 00000000491f4458 g1: 000000000000ffff g2: ffffffffffffffff g3: 00000000491f2ba8
Nov 15 21:51:20 kernel: [ 2172.123425] g4: fffff800309c93e0 g5: 0000000000000010 g6: fffff8003b32c000 g7: 000000000073be58
Nov 15 21:51:20 kernel: [ 2172.123451] o0: fffff8003bba1a40 o1: 00000000006e7f30 o2: 0000000000000000 o3: 00000000006f22a8
Nov 15 21:51:20 kernel: [ 2172.123478] o4: 0000000000000008 o5: 000001ffc0000000 sp: fffff8003b32f2a1 ret_pc: 0000000000457a0c
Nov 15 21:51:20 kernel: [ 2172.123506] RPC: <r_show+0x94/0x9c>
Nov 15 21:51:20 kernel: [ 2172.123525] l0: fffff8003bba1a40 l1: fffff8003f0025c0 l2: 0000000000000000 l3: 0000000000000000
Nov 15 21:51:20 kernel: [ 2172.123550] l4: 0000000000000000 l5: 0000000000000000 l6: 0000000000000000 l7: 0000000000000000
Nov 15 21:51:20 kernel: [ 2172.123577] i0: fffff8003bba1a40 i1: 00000000491f2ba8 i2: fffff8003b32fc30 i3: 435f322e30000000
Nov 15 21:51:20 kernel: [ 2172.123603] i4: 435f322e30000000 i5: 000000000000ffff i6: fffff8003b32f381 i7: 00000000004c6098
Nov 15 21:51:20 kernel: [ 2172.123646] I7: <seq_read+0x1f4/0x318>
Nov 15 21:51:20 kernel: [ 2172.123662] Caller[00000000004c6098]: seq_read+0x1f4/0x318
Nov 15 21:51:20 kernel: [ 2172.123692] Caller[00000000004ea138]: proc_reg_read+0x4c/0x60
Nov 15 21:51:20 kernel: [ 2172.123722] Caller[00000000004ac040]: vfs_read+0x78/0x124
Nov 15 21:51:20 kernel: [ 2172.123754] Caller[00000000004ac328]: sys_read+0x34/0x60
Nov 15 21:51:20 kernel: [ 2172.123783] Caller[00000000004060d4]: linux_sparc_syscall32+0x3c/0x40
Nov 15 21:51:20 kernel: [ 2172.123825] Caller[0000000000015004]: 0x1500c
Nov 15 21:51:20 kernel: [ 2172.123849] Instruction DUMP: 94102000  80a08001  99673008 <c658e020> 80a0c007  22600007  c25e6010  9402a001  80a2a005 
#1 lore raw

Re: [2.6.26.4] Oops: Unable to handle kernel paging request at

From: Frans Pop <[email protected]>
Date: Sat, 15 Nov 2008 23:43:58 +0100

Quoted 7 lines

During a test installation of Debian I got the following Oops at the point where either the installer's internal webserver (implemented in shell using netcat ;-) was started or where that server was contacted a bit later. The oops did not repeat; the installation as a whole succeeded.

I know this is not a very current kernel, but this is what we're releasing with. Well, the release will be using 2.6.26.7 actually.

Some driver module is unloading without releasing it's held I/O resources, then something does cat on /proc/iomem or /proc/ioport and we go splat accessing unmapped memory from that unloaded driver module.

author
#2 lore raw
In reply to Frans Pop
Quoted 4 lines · David Miller

Some driver module is unloading without releasing it's held I/O resources, then something does cat on /proc/iomem or /proc/ioport and we go splat accessing unmapped memory from that unloaded driver module.

Hmm. Strange. I cannot relate that to what I was doing at that point in the installation.

Ah, hang on (imagine me waking up; should maybe have breakfast first...).

We also collect info for a hardware summary at that point. It could well be that one of the commands there caused it. ... And that does indeed include a cat of /proc/iomem and /proc/ioports.

Now for the difficult part: how do we find out which driver this was?

I'll see if I can reproduce while keeping a watch on loaded mods.

Cheers,
FJP

#3 lore raw

Re: [2.6.26.4] Oops: Unable to handle kernel paging request at

In reply to Frans Pop

From: Frans Pop <[email protected]>
Date: Mon, 17 Nov 2008 11:36:04 +0100

Quoted 5 lines

We also collect info for a hardware summary at that point. It could well be that one of the commands there caused it. ... And that does indeed include a cat of /proc/iomem and /proc/ioports.

Now for the difficult part: how do we find out which driver this was?

Good question. Perhaps you can find a way to make modprobe, insmod, and rmmod log something into the installation log?

Quoted 1 line

I'll see if I can reproduce while keeping a watch on loaded mods.

Good luck, either way.

author
#4 lore raw
In reply to Frans Pop
Quoted 8 lines · David Miller
Quoted 5 lines

We also collect info for a hardware summary at that point. It could well be that one of the commands there caused it. ... And that does indeed include a cat of /proc/iomem and /proc/ioports.

Now for the difficult part: how do we find out which driver this was?

Good question. Perhaps you can find a way to make modprobe, insmod, and rmmod log something into the installation log?

I ran a small shell script with a loop that saved relevant data to files and included a 'cat /proc/io*' every 2 secs.

Quoted 3 lines
Quoted 1 line

I'll see if I can reproduce while keeping a watch on loaded mods.

Good luck, either way.

Unfortunately not. I was unable to reproduce the oops. I compared the sys/kernlog for both installs and they were mostly identical. Only real difference was that the starting position of the target hard disk was different: the install that oopsed started with a partitioning using LVM (which was removed during the install), while the new install started out with the regular partitioning left over from that.

From the data of the old install I can tell that the culprit was /proc/iomem (and not /proc/ioports). Contents of /proc/ioports and list of loaded modules at the end of the install are identical for both.

Module                  Size  Used by
dm_mod                 56776  0
md_mod                 84576  0
xfs                   483448  0
reiserfs              290816  0
jfs                   186992  0
ext3                  137872  2
jbd                    44200  1 ext3
vfat                   11520  0
fat                    51056  1 vfat
nls_base                9152  3 jfs,vfat,fat
ide_cd_mod             35528  0
cdrom                  38752  1 ide_cd_mod
ide_disk               13184  5
cmd64x                  6592  0 [permanent]
sunhme                 29744  0

So I guess I'll have one more go at it with the hard disk pre-partitioned with LVM. If that does not reproduce it, I guess we'll just have to leave this one to someone else to rediscover.

BTW, the system is a simple, old Ultra 10.

Cheers,
FJP

author
#5 lore raw
In reply to Frans Pop
Quoted 4 lines · David Miller

Some driver module is unloading without releasing it's held I/O resources, then something does cat on /proc/iomem or /proc/ioport and we go splat accessing unmapped memory from that unloaded driver module.

Quoted 3 lines · Frans Pop

So I guess I'll have one more go at it with the hard disk pre-partitioned with LVM. If that does not reproduce it, I guess we'll just have to leave this one to someone else to rediscover.

Just for the record...

That failed as well. I cannot reproduce this oops, so it seems we'll just have to forget about it for now.

Cheers,
FJP