日期:2014-05-16  浏览次数:20753 次

关于加载模块的错误
加载kaodv.ko模块,第一次加载会报如下错误
insmod: cannot insert `kaodv.ko': Operation not permitted (-1): Operation not permitted

不管它,再进行加载,则加载成功,但会报以下信息
Unable to handle kernel NULL pointer dereference at virtual address 00000018
pgd = c3c8c000
[00000018] *pgd=33d83031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in: kaodv
CPU: 0 Not tainted (2.6.22.19 #63)
PC is at nf_register_hook+0x44/0x90
LR is at 0x50
pc : [<c01eb2ac>] lr : [<00000050>] psr: 00000013
sp : c3821e78 ip : c03a5ad0 fp : c3821e88
r10: c4884000 r9 : c3ceb5f0 r8 : 00000000
r7 : 00000001 r6 : bf004420 r5 : 00000000 r4 : bf0043c0
r3 : 80000000 r2 : 80000000 r1 : 00000000 r0 : c03a5d50
Flags: nzcv IRQs on FIQs on Mode SVC_32 Segment user
Control: c000717f Table: 33c8c000 DAC: 00000015
Process insmod (pid: 809, stack limit = 0xc3820258)
Stack: (0xc3821e78 to 0xc3822000)
1e60: bf004420 c3821ed4 
1e80: c3821e8c bf006038 c01eb278 0000007f c3c7a820 bf004420 c0366c44 c3821ec4 
1ea0: bf004420 00000000 bf004420 bf004420 00000000 bf004420 c48e5470 00000023 
1ec0: c3ceb5f0 c4884000 c3821fa4 c3821ed8 c005ec2c bf006010 00000000 00000550 
1ee0: c02be31c c02be31c 000001c4 00000030 00000023 c01d8f38 bf003b7c 00000000 
1f00: 000000e5 000000e5 00000088 00000084 00000038 c3820000 00000000 00000000 
1f20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
1f40: 00000008 00000000 0000000e 00000000 00000000 00000009 00000022 00000021 
1f60: c4902698 c3c7aa60 c48e5346 c002d124 c008507c 00000000 00000000 00000003 
1f80: 00000000 00000000 00000080 c002a004 c3820000 0011ede0 00000000 c3821fa8 
1fa0: c0029e60 c005d844 00000000 00000000 00900080 40000000 0007ee3e 002cb2e8 
1fc0: 00000003 00000000 00000000 00000002 becb2e94 00008548 0011ede0 becb2c60 
1fe0: becb2bc0 becb2bb4 0006ebf8 0016c230 00000010 00900080 002a6fec 002a6ff4 
Backtrace: 
[<c01eb268>] (nf_register_hook+0x0/0x90) from [<bf006038>] (kaodv_init+0x38/0x2c8 [kaodv])
 r4:bf004420
[<bf006000>] (kaodv_init+0x0/0x2c8 [kaodv]) from [<c005ec2c>] (sys_init_module+0x13f8/0x1490)
[<c005d834>] (sys_init_module+0x0/0x1490) from [<c0029e60>] (ret_fast_syscall+0x0/0x2c)
Code: e793100c e083300c e1510003 0a000007 (e5912018) 
Segmentation fault

小弟也不知道该怎么办了,请教各位了!!!

------解决方案--------------------
Unable to handle kernel NULL pointer dereference at virtual address 00000018