BUG: unable to handle kernel paging request
Hello,
Today I upgraded my system to xenomai 2.3.0 + kernel 2.6.19.2. I encountered the following syslog message:
BUG: unable to handle kernel paging request at virtual address 0d40004a
while no xenomai application running.
The system didn't crash, just such kernel message.
p4, nvidia geforce 4, FC6, gnome + compiz manager, gcc 4.1.1 shipped with FC6, NVIDIA-Linux-x86-1.0-9631 nvidia driver.
Thanks, Victor
Quoted 8 lines · Victor Shulyak
Hello,
Today I upgraded my system to xenomai 2.3.0 + kernel 2.6.19.2. I encountered the following syslog message:
BUG: unable to handle kernel paging request at virtual address 0d40004awhile no xenomai application running.
Quoted 8 lines
The system didn't crash, just such kernel message.
p4, nvidia geforce 4, FC6, gnome + compiz manager, gcc 4.1.1 shipped with FC6, NVIDIA-Linux-x86-1.0-9631 nvidia driver.
BUG: unable to handle kernel paging request at virtual address >
0d40004a
Quoted 4 lines
printing eip:
c7b84d51
*pde = 00000000Oops: 0002 [#1]
I guess that you already know what kind of answer you would obtain on the LKML when reporting faults with Nvidia modules loaded, right? However, since there seem to be a clean backtrace, maybe we could give a try anyway. Could you objdump your kernel image, then locate the faulty routine containing eip=0xc7b84d51? TIA,
Quoted 5 lines
Thanks, Victor
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Quoted 6 lines
I guess that you already know what kind of answer you would obtain on the LKML when reporting faults with Nvidia modules loaded, right? However, since there seem to be a clean backtrace, maybe we could give a try anyway. Could you objdump your kernel image, then locate the faulty routine containing eip=0xc7b84d51? TIA,
But it doesn't point to either some part of the kernel code
---> .text : 0xc0100000 - 0xc030a212 (2088 kB)
or any kernel module (not vmalloc'ed area).
Unless some code would copy another code at this location (kmalloc'ed) and then execute it.
Let's suppose we can believe in sanity of the call trace, then would you, Victor, provide a disassembled code for __ipipe_handle_exception() ?
Call Trace: [<c0112566>] __ipipe_handle_exception+0x58/0x11e [<c01050f4>] do_divide_error+0x0/0xb1 [<c0309202>] error_code+0x3e/0x4c
Memory: 384496k/393152k available (2088k kernel code, 8108k reserved, 633k data, 180k init, 0k highmem)
virtual kernel memory layout:
fixmap : 0xfffb7000 - 0xfffff000 ( 288 kB) vmalloc : 0xd8800000 - 0xfffb5000 ( 631 MB) lowmem : 0xc0000000 - 0xd7ff0000 ( 383 MB) .init : 0xc03ac000 - 0xc03d9000 ( 180 kB) .data : 0xc030a212 - 0xc03a88f4 ( 633 kB) .text : 0xc0100000 - 0xc030a212 (2088 kB)
Signature · 2 lines
Best regards, Dmitry Adamushko
Quoted 11 lines · Dmitry Adamushko
Quoted 6 lines
I guess that you already know what kind of answer you would obtain on the LKML when reporting faults with Nvidia modules loaded, right? However, since there seem to be a clean backtrace, maybe we could give a try anyway. Could you objdump your kernel image, then locate the faulty routine containing eip=0xc7b84d51? TIA,
But it doesn't point to either some part of the kernel code
---> .text :
0xc0100000-0xc030a212(2088 kB)
Quoted 9 lines
or any kernel module (not vmalloc'ed area).
Unless some code would copy another code at this location (kmalloc'ed) and then execute it.
Let's suppose we can believe in sanity of the call trace, then would you, Victor, provide a disassembled code for
__ipipe_handle_exception()?
The backtrace is sane, I'm afraid. The following patch should fix the issue:
i386/kernel/entry.S renamed from i386/kernel/entry.S~ +1 -1
@@ -1032,7 +1032,7 @@ RING0_INT_FRAME pushl $0 # no error code CFI_ADJUST_CFA_OFFSET 4 - pushl $do_divide_error + PUSH_XVEC(do_divide_error) CFI_ADJUST_CFA_OFFSET 4 jmp error_code CFI_ENDPROC
Quoted 17 lines
Call Trace: [<c0112566>] __ipipe_handle_exception+0x58/0x11e [<c01050f4>] do_divide_error+0x0/0xb1 [<c0309202>] error_code+0x3e/0x4cMemory: 384496k/393152k available (2088k kernel code, 8108k reserved, 633k data, 180k init, 0k highmem)
virtual kernel memory layout:fixmap : 0xfffb7000 - 0xfffff000 ( 288 kB) vmalloc : 0xd8800000 - 0xfffb5000 ( 631 MB) lowmem : 0xc0000000 - 0xd7ff0000 ( 383 MB) .init : 0xc03ac000 - 0xc03d9000 ( 180 kB) .data : 0xc030a212 - 0xc03a88f4 ( 633 kB) .text : 0xc0100000 - 0xc030a212 (2088 kB)
Signature · 1 line
Philippe.
Quoted 28 lines · Philippe Gerum
Quoted 11 lines · Dmitry Adamushko
Quoted 6 lines
I guess that you already know what kind of answer you would obtain on the LKML when reporting faults with Nvidia modules loaded, right? However, since there seem to be a clean backtrace, maybe we could give a try anyway. Could you objdump your kernel image, then locate the faulty routine containing eip=0xc7b84d51? TIA,
But it doesn't point to either some part of the kernel code
---> .text :
0xc0100000-0xc030a212(2088 kB)Quoted 9 lines
or any kernel module (not vmalloc'ed area).
Unless some code would copy another code at this location (kmalloc'ed) and then execute it.
Let's suppose we can believe in sanity of the call trace, then would you, Victor, provide a disassembled code for
__ipipe_handle_exception()?The backtrace is sane, I'm afraid. The following patch should fix the issue:
i386/kernel/entry.S line 1035
Quoted 5 lines
i386/kernel/entry.S renamed from i386/kernel/entry.S~ +1
-1@@ -1032,7 +1032,7 @@ RING0_INT_FRAME pushl $0 # no error code CFI_ADJUST_CFA_OFFSET 4 - pushl $do_divide_error + PUSH_XVEC(do_divide_error)
s,PUSH_XVEC,PUSH_XCODE,
Quoted 21 lines
i386/kernel/entry.S renamed from i386/kernel/entry.S~ +0
-0CFI_ADJUST_CFA_OFFSET 4 jmp error_code CFI_ENDPROCQuoted 18 lines
Call Trace: [<c0112566>] __ipipe_handle_exception+0x58/0x11e [<c01050f4>] do_divide_error+0x0/0xb1 [<c0309202>] error_code+0x3e/0x4cMemory: 384496k/393152k available (2088k kernel code, 8108k reserved, 633k data, 180k init, 0k highmem)
virtual kernel memory layout:fixmap : 0xfffb7000 - 0xfffff000 ( 288 kB) vmalloc : 0xd8800000 - 0xfffb5000 ( 631 MB) lowmem : 0xc0000000 - 0xd7ff0000 ( 383 MB) .init : 0xc03ac000 - 0xc03d9000 ( 180 kB) .data : 0xc030a212 - 0xc03a88f4 ( 633 kB) .text : 0xc0100000 - 0xc030a212 (2088 kB)
Signature · 1 line
Philippe.
Hello
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
However, since there seem to be a clean backtrace, maybe we could give a try anyway. Could you objdump your kernel image, then locate the faulty routine containing eip=0xc7b84d51?
I can apply objdump to kernel modules, but when this utility was applied to kernel image, error message is displayed
objdump: /boot/vmlinuz-xenomai: File format not recognized How could I objdump my kernel image?
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Let's suppose we can believe in sanity of the call trace, then would you, Victor, provide a disassembled code for
__ipipe_handle_exception()?
I will do this with pleasure, one thing to know, which tools can help me?
Quoted 14 lines
i386/kernel/entry.S line 1035
Quoted 8 lines
i386/kernel/entry.S renamed from i386/kernel/entry.S~ +1
-1@@ -1032,7 +1032,7 @@ RING0_INT_FRAME pushl $0 # no error code CFI_ADJUST_CFA_OFFSET 4 - pushl $do_divide_error + PUSH_XVEC(do_divide_error)s,PUSH_XVEC,PUSH_XCODE,
Quoted 3 lines
i386/kernel/entry.S renamed from i386/kernel/entry.S~ +0
-0CFI_ADJUST_CFA_OFFSET 4 jmp error_code CFI_ENDPROC
I did so.
Thanks, Victor
Quoted 10 lines · Victor Shulyak
Quoted 10 lines
i386/kernel/entry.S line 1035
Quoted 8 lines
i386/kernel/entry.S renamed from i386/kernel/entry.S~ +1
-1@@ -1032,7 +1032,7 @@ RING0_INT_FRAME pushl $0 # no error code CFI_ADJUST_CFA_OFFSET 4 - pushl $do_divide_error + PUSH_XVEC(do_divide_error)s,PUSH_XVEC,PUSH_XCODE,
Quoted 6 lines
Quoted 3 lines
i386/kernel/entry.S line 1038
Quoted 3 lines
i386/kernel/entry.S renamed from i386/kernel/entry.S~ +0
-0CFI_ADJUST_CFA_OFFSET 4 jmp error_code CFI_ENDPROCI did so.
And did this fix your problem?
It seems that applying this change solved occasional early lockups of 2.6.19.2-1.6-0x on my laptop ("occasional" - so I'm still observing...).
Jan
Quoted 4 lines · Victor Shulyak
Hello
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
However, since there seem to be a clean backtrace, maybe we could give a try anyway. Could you objdump your kernel image, then locate the faulty routine containing eip=0xc7b84d51?
I can apply objdump to kernel modules, but when this utility was applied to kernel image, error message is displayed
objdump:/boot/vmlinuz-xenomai: File format not recognized How could I objdump my kernel image?
Instead of vmlinuz, you should pick vmlinux at the root of the kernel build directory.
Quoted 10 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Let's suppose we can believe in sanity of the call trace, then would you, Victor, provide a disassembled code for
__ipipe_handle_exception()?I will do this with pleasure, one thing to know, which tools can help me?
objdump as well
Signature · 1 line
Gilles Chanteperdrix
Hello
Quoted 13 lines
Let's suppose we can believe in sanity of the call trace, then would you, Victor, provide a disassembled code for
__ipipe_handle_exception()?Call Trace: [<c0112566>] __ipipe_handle_exception+0x58/0x11e [<c01050f4>] do_divide_error+0x0/0xb1 [<c0309202>] error_code+0x3e/0x4cMemory: 384496k/393152k available (2088k kernel code, 8108k reserved, 633k data, 180k init, 0k highmem)
virtual kernel memory layout:
Quoted 6 lines
fixmap : 0xfffb7000 - 0xfffff000 ( 288 kB)
vmalloc : 0xd8800000 - 0xfffb5000 ( 631 MB)
lowmem : 0xc0000000 - 0xd7ff0000 ( 383 MB)
.init : 0xc03ac000 - 0xc03d9000 ( 180 kB)
.data : 0xc030a212 - 0xc03a88f4 ( 633 kB)
.text : 0xc0100000 - 0xc030a212 (2088 kB)Attached file contains objdump -D of my kernel image with __ipipe_handle_exception function.
How could I locate the faulty routine containing eip=0xc7b84d51?
Thanks, Victor
Victor,
Philippe suggested the following patch. Have you applied it / recompiled / installed a new kernel ? So, please, give us a yes/no answer on whether it helps to solve the problem.
i386/kernel/entry.S 2007-01-26 23:44:59.000000000 +0100 renamed from i386/kernel/entry.S~ 2006-12-16 13:32:29.000000000 +0100 +1 -1
@@ -1032,7 +1032,7 @@ RING0_INT_FRAME pushl $0 # no error code CFI_ADJUST_CFA_OFFSET 4 - pushl $do_divide_error + PUSH_XCODE(do_divide_error) CFI_ADJUST_CFA_OFFSET 4 jmp error_code CFI_ENDPROC
Signature · 2 lines
Best regards, Dmitry Adamushko
Hello
Quoted 3 lines
Philippe suggested the following patch. Have you applied it / recompiled / installed a new kernel ? So, please, give us a yes/no answer on whether it helps to solve the problem.
I have applied the patch. If the problem happens again I will post a message.
Thanks, Victor
Quoted 5 lines · Victor Shulyak
Attached file contains objdump -D of my kernel image with
__ipipe_handle_exceptionfunction.How could I locate the faulty routine containing eip=0xc7b84d51?
It is probably the address of a module, so getting the disassembly is a little bit more complicated: you have to look into /proc/modules for the load address of the modules. Then pass it to the --adjust-vma option of objdump.
But you should try Philippe's patch first.
Signature · 1 line
Gilles Chanteperdrix