Bug 7718

Summary: The busybox cause kernel panic
Product: Busybox Reporter: dongsun <dong.sun.hiwifi>
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.19.x   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description dongsun 2014-12-13 07:24:36 UTC
Hi,
I'm runnig openwrt kernel 3.3.8, busybox version 1.19.4. but I often encountered a problem.  
"Kernel panic - not syncing: Attempted to kill init!"

I collected the information below
<0>[86336.100000] TASK: pid(1) comm(init)
<0>[86336.100000] DIE: val(4) str(RI Fault) err(0) trapnr(10) signr(4)
<0>[86336.110000] Exception in user space:
<4>[86336.110000] Cpu 0
<4>[86336.110000] $ 0   : 00000000 77ecd4e8 00000000 00000054
<4>[86336.120000] $ 4   : 77ecd680 00467c28 00000002 7ff88c84
<4>[86336.120000] $ 8   : 00000000 00000000 800813f4 fffffff0
<4>[86336.130000] $12   : 00000001 00000800 00000400 00480000
<4>[86336.130000] $16   : 00000008 00000008 00000008 00000008
<4>[86336.140000] $20   : 00000008 00000008 00000016 00000000
<4>[86336.140000] $24   : 00000000 77eb12a0                  
<4>[86336.150000] $28   : 77ee83b0 7ff88b40 00460e84 7ff890bc
<4>[86336.150000] Hi    : 00000003
<4>[86336.160000] Lo    : 00000000
<4>[86336.160000] epc   : 7ff890c0 0x7ff890c0
<4>[86336.160000]     Tainted: G           O
<4>[86336.170000] ra    : 7ff890bc 0x7ff890bc
<4>[86336.170000] Status: 0000fc13    USER EXL IE 
<4>[86336.170000] Cause : 30800028
<4>[86336.180000] PrId  : 00019374 (MIPS 24Kc)
<4>[86336.180000] 
Stack : 00000000 00000000 00000000 00000000 77ee83b0 00000000 00000000 77ec940c                                                                            
        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000                                                                      
        00000000 00000000 00000000 77ea6954 000003e5 7ff88c74 7ff88c76 77eda000                                                                               
        7ff88c70 77eda000 000003e5 7ff8905b 00460e84 77ea6954 7ff88c74 7ff88c70                                                                               
        7ff88c70 ffffffff 77ee83b0 7ff88bac 00d00000 fffffffe 7ff88c76 7ff8905b                                                                               
        7ff88ca1 7ff88c76 7ff88c76 7ff8905b 00000000 7ff88bd4 00000000 00000000                                                                               
        77270448 77e9b95c 0000000a 00000072 77ee83b0 0000014d 77ee83b0 7ff88c5c
        77f8d448 77eda000 7ff88ca2 77e9ab88 00d00000 fffffffe 004689f8 77ecd49e
        77ee83b0 7ff88cd6 547a6d09 77ec940c 77ee0f00 7ff88c34 00000000 3c33303e
        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        00000000 0045f048 77eda000 77e9a98c 00000000 00000000 00000000 00000000                                                                               
        270083b0 6f6f7427 547a6d08 77ec940c 77ee0f00 00000000 00000000 3c33303e                                                                               
        4e6f7620 33302030 393a3034 3a303820 696e6974 3a207072 6f636573 7320272f                                                                               
        7362696e 2f686964 61656d6f 6e272028 70696420 32393631 29206578 69746564                                                                               
        2e205363 68656475 6c696e67 20666f72 20726573 74617274 2e000000 00000000
        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000        
        00000000 00000000 00000000 7ff88d70 00000000 00000000 00000000 00000000        
        77f97000 00000000 77e7c550 77e80ff0 00000000 00000000 77f90014 7ff88e3c          
        00402b60 0047d6b4 0045f048 00470000 7ff88e3c 7ff88f48 0046725c 0045f048
        00460000 00000002 77270448 00405048 00000000 00000000 77f97000 00000000
        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000                                                                            
        7ff88f48 0046725c 0045f048 00460000 00000002 77270448 7f9e1a08 00451d90
        77e7c550 00000008 00000008 00000003 00065ff8 00000000 00000000 2f736269
        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        77f08b60 7ff88f70 77ee83b0 00000025 77eaab10 77ecd9ef 00000000 7ff89050
        00000000 77eb0874 77ee83b0 00000000 77ee83b0 00467b38 77ee83b0 00467b3b
        00000001 00830121 00000000 77eaa11c 77f9053c 00000008 00000008 00000000        
        fffffff6 00000057 77ee83b0 00000025 00000000 77ecd9ef 00000000 7ff88fc0        
        00000000 77eb0874 77ee83b0 00000000 77ee83b0 00467c6a 77ee83b0 00467c8d
        00000021 7ff88fcb 00000000 77eaa11c 00031c7f 15010000 0011131a 00120f17        
        fffffff6 00000057 77ee83b0 00000000 00000000 77eb3a74 00400be4 7ff89020
Instruction dump:
 77eda000  004689f8  00000000 
 00000001  7ff893e4  0000012c  0045f048  00460000 
Show maps:
00400000-0046e000 r-xp 00000000 1f:03 2310 busybox
0047d000-0047e000 rw-p 0006d000 1f:03 2310 busybox
0047e000-0047f000 rwxp 00000000 00:00 0 
0082f000-00831000 rwxp 00000000 00:00 0 [heap]
77e7a000-77ed0000 r-xp 00000000 1f:03 217 libuClibc-0.9.33.2.so
77ed0000-77edf000 ---p 00000000 00:00 0 
77edf000-77ee0000 r--p 00055000 1f:03 217 libuClibc-0.9.33.2.so
77ee0000-77ee1000 rw-p 00056000 1f:03 217 libuClibc-0.9.33.2.so
77ee1000-77ee6000 rw-p 00000000 00:00 0 
77ee6000-77ef9000 r-xp 00000000 1f:03 255 libgcc_s.so.1
77ef9000-77f08000 ---p 00000000 00:00 0 
77f08000-77f09000 rw-p 00012000 1f:03 255 libgcc_s.so.1
77f09000-77f1b000 r-xp 00000000 1f:03 429 librpc.so
77f1b000-77f2b000 ---p 00000000 00:00 0 
77f2b000-77f2c000 rw-p 00012000 1f:03 429 librpc.so
77f2c000-77f41000 r-xp 00000000 1f:03 256 libm-0.9.33.2.so
77f41000-77f50000 ---p 00000000 00:00 0 
77f50000-77f51000 rw-p 00014000 1f:03 256 libm-0.9.33.2.so
77f51000-77f57000 r-xp 00000000 1f:03 258 libcrypt-0.9.33.2.so
77f57000-77f66000 ---p 00000000 00:00 0 
77f66000-77f67000 rw-p 00005000 1f:03 258 libcrypt-0.9.33.2.so
77f67000-77f78000 rw-p 00000000 00:00 0 
77f78000-77f7f000 r-xp 00000000 1f:03 214 ld-uClibc-0.9.33.2.so
77f8d000-77f8e000 rw-p 00000000 00:00 0 
77f8e000-77f8f000 r--p 00006000 1f:03 214 ld-uClibc-0.9.33.2.so
77f8f000-77f90000 rw-p 00007000 1f:03 214 ld-uClibc-0.9.33.2.so
77f90000-77f91000 rw-p 00000000 00:00 0 
7ff69000-7ff8a000 rwxp 00000000 00:00 0 [stack]
7fff7000-7fff8000 r-xp 00000000 00:00 0 [vdso]
Kernel panic - not syncing: Attempted to kill init!

I think this illegal instruction exception may be caused by the busybox.
Comment 1 Denys Vlasenko 2016-01-03 21:53:56 UTC
Looks like https://busybox.net/FAQ.html#init