Unfortunately, access to the kernel is from a bad area, sig: 11 - "swapper" - interrupt handler

In the embedded Linux environment (configured 2.4.25 on PowerPC) after a few hours I get the following kernel panic:

Oops: kernel access of bad area, sig: 11
NIP: C9471C7C XER: 20000000 LR: C0018C74 SP: C0198E20 REGS: c0198d70 TRAP: 0800    Not tainted
MSR: 00009030 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
DEAR: C9876FFF, ESR: 00000000
TASK = c0197020[0] 'swapper' Last syscall: 120
last math 00000000 last altivec 00000000
PLB0: bear= 0x48041040 acr=   0x00000000 besr=  0x00000000
PLB0 to OPB: bear= 0x00cc1000 besr0= 0x00000000 besr1= 0x00000000

GPR00: 00000000 C0198E20 C0197020 00000000 C016E494 000000C2 C01D0000 00000000
GPR08: C98701F0 C9876FFF 00008000 C768AE0F 24004022 1001B120 07FC9500 00000000
GPR16: 00000001 00000001 FFFFFFFF 007FFE00 00001032 00198EE0 00000000 C0004780
GPR24: C01D2F68 C01E0000 C0170000 C0170000 C01B0000 C9473870 00000000 C9473864
Call backtrace:
00000001 C0018C74 C0018A1C C0005E14 C0004780 C0022724 C0005D4C
C0005D60 C0002430 C01AE5BC C0002328
Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing
 <0>Rebooting in 1 seconds...

cat / proc / modules:

CustomModule1          10556   4
CustomModule2           5488   0
CustomModule3          10240   1
fuse                   35576   4
usb-storage            28468   0 (unused)
keybdev                 3076   0 (unused)
mousedev                6116   0 (unused)
hid                    17968   0 (unused)
input                   6192   0 [keybdev mouse

ksyms -m:

Address   Symbol                 Defined by
c9471000  (11k)                  [CustomModule1]
c9471b74  functionA              [CustomModule1]
c947358c  functionB              [CustomModule1]
c9473580  functionC              [CustomModule1]
...

I searched for help, but I could not find anything useful. I also wanted to "decode" the return line, but I don’t understand how ... the addresses do not match the addresses in System.map. Can someone explain to me how to find out about the error?

Thank you, Chris

+3
source share
2 answers

NIP - (a.k.a ) , ​​. ksyms, NIP (0xC9471C7C) functionA. objdump -S functionA , functionA+0x108.

(LR) functionA. System.map, , , addr2line GNU binutils vmlinux, . , .

PPC.

+3

CONFIG_KALLSYMS ? , , oops.

, linux 2.4 kallsyms, frame_pointer CONFIG_DEBUG. Backtrace system.map . , , .

, outptut backtrace: C0018C74 and C0018A1C , C9xxxxxx . ?

, system.map

: ksyms , FunctionA , NIP C9471C7C c9471b74 :

  • NIP
  • c9471b74 - FunctionA ksyms.

LR - , .. , .

+1

Source: https://habr.com/ru/post/1709274/


All Articles