[clug] What can i do ? When i rmmod the modules .

Martin Pool mbp at samba.org
Tue May 13 11:57:30 EST 2003


On  9 May 2003, "????@????" <zpeak at 163.com> wrote:
>    unable to handle kernel NULL pointer dereference at virtual address
>    000004a0
>     printing eip:
>    c689a16e
>    *pde = 00000000
>    Oops: 0000
>    myfirewall ipt_MASQUERADE iptable_nat ip_conntrack autofs pcnet32 mii
>    ipt_REJE
>    CPU:    0
>    EIP:    0010:[<c689a16e>]    Tainted: P
>    EFLAGS: 00000296
>     
>    EIP is at fini [myfirewall] 0x1e (2.4.18-14)
>    eax: 00000000   ebx: c689a000   ecx: c0305480   edx: c03861a8
>    esi: fffffff0   edi: 00000000   ebp: c3387f8c   esp: c3387f78
>    ds: 0018   es: 0018   ss: 0018
>    Process rmmod (pid: 1033, stackpage=c3387000)
>    Stack: 0000001d c0305480 c1038030 c03054dc 00000203 bfffeb18 c011ce2a
>    c689a000
>           c689a000 fffffff0 c32eb000 c011c1a7 c689a000 00000000 00001000
>    c3386000
>           00000001 08073ad8 c010910f bffffc9a bffffba4 0805cb7e 00000001
>    08073ad8
>    Call Trace: [<c011ce2a>] free_module [kernel] 0xba (0xc3387f90))
>    [<c011c1a7>] sys_delete_module [kernel] 0xa7 (0xc3387fa4))
>    [<c010910f>] system_call [kernel] 0x33 (0xc3387fc0))
>     

>    Code: ff b0 a0 04 00 00 e8 37 ed 94 f9 83 c4 10 c9 c3 55 89 e5 83
>     ./k: line 1:  1033 Segmentation fault      rmmod myfirewall

This probably indicates a pointer bug in your module.  Perhaps its
module use count is wrong, perhaps it holds a pointer to something
that has been released, or perhaps some other memory corruption has
occurred.

You need to reboot the machine as soon as possible after this happens
because there may be internal memory corruption, and continuing to use
it increases the risk of file or memory corruption.

How to fix it?  Remove the bug from your module.  How to find the bug?
That's pretty hard; if all else fails snip code out until it works.

-- 
Martin 


More information about the linux mailing list