All of lore.kernel.org
 help / color / mirror / Atom feed
* nfnetlink/ctnetlink - OOPS&panic
@ 2005-04-19 10:31 Krzysztof Oledzki
  2005-04-19 12:04 ` Pablo Neira
  0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Oledzki @ 2005-04-19 10:31 UTC (permalink / raw)
  To: netfilter-devel, Pablo Neira

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2938 bytes --]

Hello,

I have just compiled 2.6.11.7 kernel with nfnetlink/ctnetlink support 
(from pom-ng-20050418). Unfortunately, during system startup, kernel 
panics:

Unable to handle kernel NULL pointer dereference at virtual address 000000b3
  printing eip:
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: bonding
CPU:    0
EIP:    0060:[<c037d8f3>]    Not tainted VLI
EFLAGS: 00010246   (2.6.11.7)
EIP is at netlink_broadcast+0xb3/0x390
eax: 00000000   ebx: 00000000   ecx: 00000001   edx: 00000001
esi: 00000000   edi: 00000000   ebp: 00000000   esp: c05a4cf8
ds: 007b   es: 007b   ss: 0068
Process swapper (pid: 0, threadinfo=c05a4000 task=c04c0b20)
Stack: df4c5760 00000000 fffff0e4 00000020 df4c5760 00000000 00000000 00000002
        00000000 00000000 00000000 00000020 df4c5760 00000000 c05a4d68 00000000
        c0121b53 df4c5760 00000000 00000000 00000000 c03e371a 00000000 df4c5760
Call Trace:
  [<c0121b53>] local_bh_enable+0x33/0x90
  [<c03e371a>] nfnetlink_send+0x6a/0xb0
  [<c03c38e3>] ctnetlink_conntrack_event+0x323/0x460
  [<c03caf43>] ip_nat_setup_info+0x83/0x230
  [<c0125715>] __mod_timer+0x135/0x1c0
  [<c0121b53>] local_bh_enable+0x33/0x90
  [<c03bfc9d>] __ip_conntrack_confirm+0x21d/0x310
  [<c0384790>] ip_local_deliver_finish+0x0/0x1f0
  [<c012a2ad>] notifier_call_chain+0x2d/0x50
  [<c03bec78>] ip_confirm+0x98/0xd0
  [<c03638ba>] nf_iterate+0x7a/0xb0
  [<c0384790>] ip_local_deliver_finish+0x0/0x1f0
  [<c0384790>] ip_local_deliver_finish+0x0/0x1f0
  [<c0363cb2>] nf_hook_slow+0x82/0x130
  [<c0384790>] ip_local_deliver_finish+0x0/0x1f0
  [<c0384790>] ip_local_deliver_finish+0x0/0x1f0
  [<c03842a0>] ip_local_deliver+0x250/0x280
  [<c0384790>] ip_local_deliver_finish+0x0/0x1f0
  [<c0384aa9>] ip_rcv_finish+0x129/0x2a0
  [<c0384980>] ip_rcv_finish+0x0/0x2a0
  [<c0384980>] ip_rcv_finish+0x0/0x2a0
  [<c0363d28>] nf_hook_slow+0xf8/0x130
  [<c0384980>] ip_rcv_finish+0x0/0x2a0
  [<c0384980>] ip_rcv_finish+0x0/0x2a0
  [<c03846cc>] ip_rcv+0x3fc/0x4c0
  [<c0384980>] ip_rcv_finish+0x0/0x2a0
  [<c03587d7>] netif_receive_skb+0x147/0x1d0
  [<c03588df>] process_backlog+0x7f/0x100
  [<c03589d4>] net_rx_action+0x74/0x100
  [<c0121b06>] __do_softirq+0x76/0x90
  [<c01056f1>] do_softirq+0x41/0x50
  =======================
  [<c0121be5>] irq_exit+0x35/0x40
  [<c01055ee>] do_IRQ+0x4e/0x70
  [<c0103b1e>] common_interrupt+0x1a/0x20
  [<c0101053>] default_idle+0x23/0x30
  [<c01010f0>] cpu_idle+0x50/0x60
  [<c052b7fe>] start_kernel+0x14e/0x170
  [<c052b3a0>] unknown_bootoption+0x0/0x1e0
Code: 01 00 00 00 e8 cf bb d9 ff ff 05 04 81 5e c0 b8 01 00 00 00 e8 ff bb d9 ff b8 00 f0 ff ff 21 e0 8b 40 08 a8 08 0f 85 4d 02 00 00 <0f> b6 85 b3 00 00 00 8b 15 08 81 5e c0 8d 04 c0 c1 e0 02 01 d0
  <0>Kernel panic - not syncing: Fatal exception in interrupt

It happens shortly after networks devices initialization.

Best regards,

 			Krzysztof Olędzki

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: nfnetlink/ctnetlink - OOPS&panic
  2005-04-19 10:31 nfnetlink/ctnetlink - OOPS&panic Krzysztof Oledzki
@ 2005-04-19 12:04 ` Pablo Neira
  2005-04-19 13:39   ` Krzysztof Oledzki
  2005-04-19 15:04   ` Krzysztof Oledzki
  0 siblings, 2 replies; 5+ messages in thread
From: Pablo Neira @ 2005-04-19 12:04 UTC (permalink / raw)
  To: Krzysztof Oledzki; +Cc: netfilter-devel

Krzysztof Oledzki wrote:
> Hello,
> 
> I have just compiled 2.6.11.7 kernel with nfnetlink/ctnetlink support 
> (from pom-ng-20050418). Unfortunately, during system startup, kernel 
> panics:
> 
> Unable to handle kernel NULL pointer dereference at virtual address 
> 000000b3
>  printing eip:
> *pde = 00000000
> Oops: 0000 [#1]
> PREEMPT
> Modules linked in: bonding

You've catch a race condition.

Since you've compiled nfnetlink and ctnetlink in kernel, not as module, 
it seems that ctnetlink registers the subsystem via 
nfnetlink_subsys_register before nfnetlink has created the netlink 
socket. Then you've received an event that has been sent to a 
non-existing netlink socket. I can cook an oops with that.

I'll fix it as soon as I get some spare time.

--
Pablo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: nfnetlink/ctnetlink - OOPS&panic
  2005-04-19 12:04 ` Pablo Neira
@ 2005-04-19 13:39   ` Krzysztof Oledzki
  2005-04-19 14:11     ` Amin Azez
  2005-04-19 15:04   ` Krzysztof Oledzki
  1 sibling, 1 reply; 5+ messages in thread
From: Krzysztof Oledzki @ 2005-04-19 13:39 UTC (permalink / raw)
  To: Pablo Neira; +Cc: netfilter-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2001 bytes --]



On Tue, 19 Apr 2005, Pablo Neira wrote:

> Krzysztof Oledzki wrote:
>> Hello,
>> 
>> I have just compiled 2.6.11.7 kernel with nfnetlink/ctnetlink support (from 
>> pom-ng-20050418). Unfortunately, during system startup, kernel panics:
>> 
>> Unable to handle kernel NULL pointer dereference at virtual address 
>> 000000b3
>>  printing eip:
>> *pde = 00000000
>> Oops: 0000 [#1]
>> PREEMPT
>> Modules linked in: bonding
>
> You've catch a race condition.
>
> Since you've compiled nfnetlink and ctnetlink in kernel, not as module, it 
> seems that ctnetlink registers the subsystem via nfnetlink_subsys_register 
> before nfnetlink has created the netlink socket. Then you've received an 
> event that has been sent to a non-existing netlink socket. I can cook an oops 
> with that.
>
> I'll fix it as soon as I get some spare time.

OK. So I have just checked modular configuration (CONFIG_IP_NF_CONNTRACK_NETLINK=m & CONFIG_NETFILTER_NETLINK=m)

# modprobe nfnetlink
FATAL: Error inserting nfnetlink (/lib/modules/2.6.11.7/kernel/net/netfilter/nfnetlink.ko): Operation not permitted

dmesg shows:
Netfilter messages via NETLINK v0.12.
cannot initialize nfnetlink!


# modprobe ip_conntrack_netlink
WARNING: Error inserting nfnetlink (/lib/modules/2.6.11.7/kernel/net/netfilter/nfnetlink.ko): Operation not permitted
FATAL: Error inserting ip_conntrack_netlink (/lib/modules/2.6.11.7/kernel/net/ipv4/netfilter/ip_conntrack_netlink.ko): Unknown symbol in module, or unknown parameter (see dmesg)

dmesg shows:
ip_conntrack_netlink: Unknown symbol __nfa_fill
ip_conntrack_netlink: Unknown symbol nfnetlink_subsys_register
ip_conntrack_netlink: Unknown symbol nfnetlink_subsys_alloc
ip_conntrack_netlink: Unknown symbol nfnetlink_send
ip_conntrack_netlink: Unknown symbol nfnetlink_subsys_unregister
ip_conntrack_netlink: Unknown symbol nfnetlink_check_attributes

Hm... Did I forget about something obvious?

Best regards,

 			Krzysztof Olędzki

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: nfnetlink/ctnetlink - OOPS&panic
  2005-04-19 13:39   ` Krzysztof Oledzki
@ 2005-04-19 14:11     ` Amin Azez
  0 siblings, 0 replies; 5+ messages in thread
From: Amin Azez @ 2005-04-19 14:11 UTC (permalink / raw)
  To: Krzysztof Oledzki; +Cc: netfilter-devel

Krzysztof Oledzki wrote:
> OK. So I have just checked modular configuration 
> (CONFIG_IP_NF_CONNTRACK_NETLINK=m & CONFIG_NETFILTER_NETLINK=m)
> 
> # modprobe nfnetlink
> FATAL: Error inserting nfnetlink 
> (/lib/modules/2.6.11.7/kernel/net/netfilter/nfnetlink.ko): Operation not 
> permitted
> 
> dmesg shows:
> Netfilter messages via NETLINK v0.12.
> cannot initialize nfnetlink!

You probably need to do:
rmmod ip_queue

first, as they both try and connect to the same notification socket.

Sam Azez

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: nfnetlink/ctnetlink - OOPS&panic
  2005-04-19 12:04 ` Pablo Neira
  2005-04-19 13:39   ` Krzysztof Oledzki
@ 2005-04-19 15:04   ` Krzysztof Oledzki
  1 sibling, 0 replies; 5+ messages in thread
From: Krzysztof Oledzki @ 2005-04-19 15:04 UTC (permalink / raw)
  To: Pablo Neira; +Cc: netfilter-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1220 bytes --]



On Tue, 19 Apr 2005, Pablo Neira wrote:

> Krzysztof Oledzki wrote:
>> Hello,
>> 
>> I have just compiled 2.6.11.7 kernel with nfnetlink/ctnetlink support (from 
>> pom-ng-20050418). Unfortunately, during system startup, kernel panics:
>> 
>> Unable to handle kernel NULL pointer dereference at virtual address 
>> 000000b3
>>  printing eip:
>> *pde = 00000000
>> Oops: 0000 [#1]
>> PREEMPT
>> Modules linked in: bonding
>
> You've catch a race condition.
>
> Since you've compiled nfnetlink and ctnetlink in kernel, not as module, it 
> seems that ctnetlink registers the subsystem via nfnetlink_subsys_register 
> before nfnetlink has created the netlink socket. Then you've received an 
> event that has been sent to a non-existing netlink socket. I can cook an oops 
> with that.
>
> I'll fix it as soon as I get some spare time.

Hm.. I think I have just solved my problem. All I need to do is remove 
CONFIG_IP_NF_QUEUE=y. It is not possible to load nfnetlink/ctnetlink 
modules with CONFIG_IP_NF_QUEUE and kernel oops when both options 
(CONFIG_IP_NF_QUEUE&CONFIG_IP_NF_CONNTRACK_NETLINK/CONFIG_NETFILTER_NETLINK) 
are linked statically.

Best regards,

 			Krzysztof Olędzki

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-04-19 15:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-19 10:31 nfnetlink/ctnetlink - OOPS&panic Krzysztof Oledzki
2005-04-19 12:04 ` Pablo Neira
2005-04-19 13:39   ` Krzysztof Oledzki
2005-04-19 14:11     ` Amin Azez
2005-04-19 15:04   ` Krzysztof Oledzki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.