Menu

#9 Unable to handle kernel NULL pointer dereference at virtual

open
nobody
None
5
2013-01-28
2004-06-07
No

I have Gentoo Linux 2004 with kernel 2.6.6-mm2
Iptables 1.2.9 with path-o-matic extensions imq,
classify, ttl, multiport.

All loaded modules: (lsmod)
Module Size Used by
cls_u32 6340 15
sch_sfq 4576 15
sch_htb 21504 2
ebtable_broute 1504 1
bridge 31704 1 ebtable_broute
ipt_CLASSIFY 1632 1
ipt_IMQ 1536 1
ipt_MARK 1536 92
ipt_TTL 1984 2
ipt_mark 1216 8
ipt_multiport 1504 5
ipt_mac 1472 7
ipt_REDIRECT 1600 2
ip_nat_irc 3248 0
ip_nat_ftp 3984 0
ip_conntrack_irc 70128 1 ip_nat_irc
ip_conntrack_ftp 70864 1 ip_nat_ftp
ipt_owner 2848 112
ipt_LOG 5632 0
iptable_nat 19500 4 ipt_REDIRECT,
ip_nat_irc,ip_nat_ftp
iptable_mangle 2016 1
ebt_arpreply 1568 7
ebt_arp 1856 13
ebtable_nat 1760 1
ebtables 19744 4 ebtable_broute,
ebt_arpreply,ebt_arp,ebtable_nat
nfsd 85832 8
exportfs 4800 1 nfsd
lockd 55080 2 nfsd
sunrpc 118792 2 nfsd,lockd
e100 25312 0
tulip 35104 0
ide_cd 35296 0
cdrom 34012 1 ide_cd

When I try to use (modprobe ipt_p2p is ok) p2p
module in iptables command, kernel say:

----------------------------
Unable to handle kernel NULL pointer dereference at
virtual address 0000002b
printing eip:
c02794b5
*pde = 00000000
___ ______
0--,| /OOOOOO\ {_o / /OO plop OO\ \__\_/OO oh dear OOO\s
\OOOOOOOOOOOOOOOO/
__XXX__ __XXX__
Oops: 0000 [#1]
PREEMPT
Modules linked in: ipt_p2p ipt_REDIRECT ip_nat_irc
ip_nat_ftp ip_conntrack_irc ip_conntrack_ftp
ipt_owner ipt_LOG iptable_nat iptable_mangle
ebt_arpreply ebt_arp ebtable_nat ebtables nfsd
exportfs lockd sunrpc e100 tulip ide_cd cdrom
CPU: 0
EIP: 0060:[<c02794b5>] Not tainted VLI
EFLAGS: 00010216 (2.6.6roger19-mm2)
EIP is at ipt_register_match+0x65/0xe0
eax: 00000023 ebx: c02deb80 ecx: dc83e9e0
edx: 0000002b
esi: 0000002b edi: dc83e9e8 ebp: 00000000
esp: d68fcf78
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 6413, threadinfo=d68fc000
task=d9b3b1a0)
Stack: dc83e9e0 00000000 00000023 c02c6e38
dc880e80 d68fc000 d68fcfa0 dc893027
dc880d60 dc88059b c02c6e20 c0128967
d7329d40 00000000 0805f650 0805f610
00000003 d68fc000 c0103d1b 0805f650
0000185a 0805f610 0805f610 00000003
Call Trace:
[<dc893027>] init+0x27/0x2b [ipt_p2p]
[<c0128967>] sys_init_module+0x107/0x240
[<c0103d1b>] syscall_call+0x7/0xb

Code: 89 5c 24 04 89 c1 89 04 24 8b 18 0f 18 03 90
3d 98 e8 2d c0 74 63 8b 44 24 08 8d 50 08 89 f6 8
d bc 27 00 00 00 00 8d 79 08 89 d6 <ac> ae 75 08
84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 85 c0 74 55 8b
----------------------------

After that, iptables, iptables-save or restore can't
work (command are executing and waiting for
unlimited).

p.s. i am attached my kernel config file

Discussion

  • Tapio Haapala

    Tapio Haapala - 2004-09-15

    Logged In: YES
    user_id=1122216

    I have same problem with insmod too. If someoen know quick
    fix for that please tell it.

    There is information about my FedoraCore2 system:
    [root@localhost iptables-p2p-0.3.0a]# lsmod
    Module Size Used by
    autofs4 20677 0
    tulip 40929 0
    md5 3905 1
    ipv6 217349 8
    bridge 44377 0
    atm 34709 1 bridge
    microcode 5601 0
    dm_mod 47317 0
    ext3 96937 2
    jbd 66521 1 ext3

    [root@localhost iptables-p2p-0.3.0a]# uname -a
    Linux localhost.localdomain 2.6.8-1.521 #1 Mon Aug 16
    09:01:18 EDT 2004 i686 i686 i386 GNU/Linux

    as we see without another loaded iptables module we cant
    install that module
    [root@localhost iptables-p2p-0.3.0a]# insmod
    kernel/ipt_p2p.ko
    ipt_p2p: Unknown symbol ipt_register_match
    ipt_p2p: Unknown symbol ipt_unregister_match
    insmod: error inserting 'kernel/ipt_p2p.ko': -1 Unknown symbol
    in module

    [root@localhost iptables-p2p-0.3.0a]# modprobe
    ipt_conntrack
    ip_tables: (C) 2000-2002 Netfilter core team
    ip_conntrack version 2.1 (3071 buckets, 24568 max) - 320
    bytes per conntrack

    and now we get another error:
    [root@localhost iptables-p2p-0.3.0a]# insmod
    kernel/ipt_p2p.ko
    Unable to handle kernel NULL pointer dereference at virtual
    address 0000002b
    printing eip:
    1a91d5cf
    *pde = 00000000
    Oops: 0000 [#1]
    Modules linked in: ipt_p2p(U) ipt_conntrack ip_conntrack
    ip_tables autofs4 tulip md5 ipv6 bridge atm microcode
    dm_mod ext3 jbd
    CPU: 0
    EIP: 0060:[<1a91d5cf>] Not tainted
    EFLAGS: 00010287 (2.6.8-1.521)
    EIP is at ipt_register_match+0x64/0xc0 [ip_tables]
    eax: 1a91f220 ebx: 00000023 ecx: 1a837640 edx:
    1a837640
    esi: 0000002b edi: 1a837648 ebp: 00000000 esp:
    171e7f78
    ds: 007b es: 007b ss: 0068
    Process insmod (pid: 1250, threadinfo=171e7000
    task=176db340)
    Stack: 00000000 023470a0 1a93a080 02347060 171e7fa8
    1a823021 1a939f40 1a939632
    023470a0 1a93a080 023470a0 1a93a080 02347060
    021385ab 171e7fc4 00000000
    00000000 171e7000 ffff3200 08974018 0000e467
    08974008 00000000 00000000
    Call Trace:
    [<1a823021>] init+0x21/0x23 [ipt_p2p]
    [<021385ab>] sys_init_module+0x1fd/0x2e5
    Code: ac ae 75 08 84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 85 c0
    74 c4
    Segmentation fault

     
  • Zbigniew Lisiecki

    Logged In: YES
    user_id=428466

    I have the same problem at SuSE 9.1 with 2.6.5-7.104-default
    suse customized kernel compiled by myself with thrown away
    as many kernel features as possible. here is the stack
    from /var/log/warn:

    Oct 5 16:21:53 orion kernel: Unable to handle kernel NULL
    pointer dereference at virtual addr
    ess 0000002b
    Oct 5 16:21:53 orion kernel: printing eip:
    Oct 5 16:21:53 orion kernel: e14e61a1
    Oct 5 16:21:53 orion kernel: *pde = 00000000
    Oct 5 16:21:53 orion kernel: Oops: 0000 [#1]
    Oct 5 16:21:53 orion kernel: CPU: 0
    Oct 5 16:21:53 orion kernel: EIP: 0060:
    [__crc_locks_mandatory_area+513923/9881930] Tain
    ted: G U
    Oct 5 16:21:53 orion kernel: EIP: 0060:[<e14e61a1>]
    Tainted: G U
    Oct 5 16:21:53 orion kernel: EFLAGS: 00210216
    (2.6.5-7.104-default)
    Oct 5 16:21:53 orion kernel: EIP is at
    ipt_register_match+0x4f/0xbe [ip_tables]
    Oct 5 16:21:53 orion kernel: eax: 00000023 ebx: e1551520
    ecx: e15553c0 edx: 0000002b
    Oct 5 16:21:53 orion kernel: esi: 0000002b edi: e1551528
    ebp: 00000000 esp: ca0b3e10
    Oct 5 16:21:53 orion kernel: ds: 007b es: 007b ss: 0068
    Oct 5 16:21:53 orion kernel: Process insmod (pid: 4869,
    threadinfo=ca0b2000 task=dc6d60e0)
    Oct 5 16:21:53 orion kernel: Stack: e1551520 00000000
    00000023 c02c991c e1158e80 c02c98fc ca0
    b3e48 e1008021
    Oct 5 16:21:53 orion kernel: e1158d40 e11585b0
    e1155000 00200286 c02c991c e1158e80 e11
    55000 c01302cf
    Oct 5 16:21:53 orion kernel: 00000000 00000000
    0804c883 00000000 ca0b3e80 00000000 000
    00350 cc58e5a4
    Oct 5 16:21:53 orion kernel: Call Trace:
    Oct 5 16:21:53 orion kernel:
    [__crc_nf_register_queue_handler+792422/807668]
    init+0x21/0x23
    [ipt_p2p]
    Oct 5 16:21:53 orion kernel: [<e1008021>] init+0x21/0x23
    [ipt_p2p]
    Oct 5 16:21:53 orion kernel: [check_tasklist_sanity+85/200]
    sys_init_module+0x106/0x15d1
    Oct 5 16:21:53 orion kernel: [<c01302cf>]
    sys_init_module+0x106/0x15d1
    Oct 5 16:21:53 orion kernel: [evl_pack_args+89/429]
    generic_file_read+0x94/0xb7
    Oct 5 16:21:53 orion kernel: [<c01385da>]
    generic_file_read+0x94/0xb7

    ...

     

Log in to post a comment.