All of lore.kernel.org
 help / color / mirror / Atom feed
* lots of oopses
@ 2006-08-17 16:28 Amin Azez
  2006-08-17 17:04 ` Patrick McHardy
  0 siblings, 1 reply; 7+ messages in thread
From: Amin Azez @ 2006-08-17 16:28 UTC (permalink / raw)
  To: netfilter-devel, l7-filter-developers

Cc: l7-filter-developers and netfilter-devel

I'm getting lots of oopses with 2.6.17.1 SMP, on a 2 cpu (4 core)
machine testing layer7 at 90Mb/s. (The oops dump worries me, maybe I'm
reading it wrong but it seems to a two column dump of 2 threads, but I
have 4 cores)

I also think these are layer7 related because I can't get them to occur
without a layer7 rule in iptables, although the oops doesn't always
occur in the layer7 module. I also suspect it is related to conntrack
handling.

I have pablos recent set of 8 conntrack patches applied, as well as the
recent layer7 regex-smp-safeness and the layer7 concurrency patch.

There are also quite a few other patches for iptables modules not used
in this example ruleset. In the later oops I have reduced the number of
loaded modules significantly and still obtain the oops; although the
examples here do have all the modules loaded.

I generate the oops using packETH and udp with randomized source
addresses to maximize conntrack creation

My iptables-save is:
# Generated by iptables-save v1.3.5-20060629 on Tue Aug 15 10:49:39 2006
*raw
:PREROUTING ACCEPT [938:92791]
:OUTPUT ACCEPT [848:491202]
COMMIT
# Completed on Tue Aug 15 10:49:39 2006
# Generated by iptables-save v1.3.5-20060629 on Tue Aug 15 10:49:39 2006
*nat
:PREROUTING ACCEPT [125:17240]
:POSTROUTING ACCEPT [6:372]
:OUTPUT ACCEPT [6:372]
COMMIT
# Completed on Tue Aug 15 10:49:39 2006
# Generated by iptables-save v1.3.5-20060629 on Tue Aug 15 10:49:39 2006
*mangle
:PREROUTING ACCEPT [938:92791]
:INPUT ACCEPT [851:80777]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [848:491202]
:POSTROUTING ACCEPT [848:491202]
-A FORWARD -m layer7 --l7proto edonkey -j RETURN
COMMIT
# Completed on Tue Aug 15 10:49:39 2006
# Generated by iptables-save v1.3.5-20060629 on Tue Aug 15 10:49:39 2006
*filter
:INPUT ACCEPT [851:80777]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [848:491202]
COMMIT
# Completed on Tue Aug 15 10:49:39 2006

The most recent oops where I forgot to unload most of the modules, but
was running my layer7 load monitor crashed at a rule-add just after a
conntrack flush. Layer7 is clearly implicated in this one. There is
another oops further down where this is not the case.

+ iptables -t mangle -D FORWARD 1
+ conntrack -F
+ iptables -t mangle -A FORWARD [17179991.580000] Oops: 0000 [#1]
[17179991.580000] SMP
[17179991.580000] Modules linked in: ipt_vlan ipt_connrate ebt_mark
ebtable_nat
ebtable_filter ebtable_broute ebtables ipt_ULOG ipt_ttl ipt_TOS ipt_tos
ipt_TCPMSS ipt_SAME ipt_REJECT ipt_REDIRECT ipt_NETMAP ipt_MASQUERADE
ipt_LOG ipt_iprange ipt_hashlimit ipt_ECN ipt_ecn ipt_DSCP ipt_dscp
ipt_ah ipt_addrtype iptable_raw iptable_nat iptable_mangle
iptable_filter ip_tables ip_queue cls_fw sch_prio sch_sfq sch_htb crc32
cls_u32 8021q bridge llc ipt_condition ipt_account ipt_recent tg3 e1000
e100 mii ip_conntrack_netlink ip_nat ipt_SET xt_tcpudp xt_tcpmss
xt_string xt_state xt_sctp xt_realm xt_policy xt_pkttype xt_physdev
xt_multiport xt_mark xt_mac xt_limit xt_length xt_helper xt_esp xt_dccp
xt_conntrack xt_connmark xt_connbytes xt_comment xt_NOTRACK xt_NFQUEUE
xt_MARK xt_CONNMARK ip_conntrack nfnetlink xt_CLASSIFY ipt_layer7
ipt_time ipt_set x_tables ip_set_portmap ip_set_nethash ip_set_macipmap
ip_set_iptree ip_set_ipporthash ip_set_ipmap ip_set_iphash ip_set
ata_piix libata sd_mod scsi_mod
[17179991.580000] CPU:    0
[17179991.580000] EIP:    0060:[<f88de6b1>]    Not tainted VLI
[17179991.580000] EFLAGS: 00010202   (2.6.17.1-smp-dbamK #34)
[17179991.580000] EIP is at match+0x154/0x30a [ipt_layer7]
[17179991.580000] eax: 0000021c   ebx: e84de9e8   ecx: 0000021c   edx:
e84de9e8
[17179991.580000] esi: f8b651b8   edi: f88dec96   ebp: f8b651b8   esp:
f6053b84
[17179991.580000] ds: 007b   es: 007b   ss: 0068
[17179991.580000] Process conntrack (pid: 3067, threadinfo=f6052000
task=f7b39540)
[17179991.580000] Stack: e84de9e8 ecca0c3c 0000021c 00000000 00000000
f5db2780 e3e912e4 f8b65198
[17179991.580000]        f654a000 f8b65128 00000070 f8a2b261 f54fe880
f654a000 f654a000 f88e03a0
[17179991.580000]        f8b651b8 00000000 00000014 f6053bf4 00000000
f895e9cc f8b69498 f8b65000
[17179991.580000] Call Trace:
[17179991.580000]  <f8a2b261> ipt_do_table+0x239/0x4cd [ip_tables]
<f895e037> ipt_route_hook+0x37/0x3b [iptable_mangle]
[17179991.580000]  <c02b0a19> nf_iterate+0x6f/0xaa  <f8a675b9>
br_nf_forward_finish+0x0/0x106 [bridge]
[17179991.580000]  <c02b0abf> nf_hook_slow+0x6b/0xf7  <f8a675b9>
br_nf_forward_finish+0x0/0x106 [bridge]
[17179991.580000]  <f8a6779f> br_nf_forward_ip+0xe0/0x173 [bridge]
<f8a675b9> br_nf_forward_finish+0x0/0x106 [bridge]
[17179991.580000]  <c02b0a19> nf_iterate+0x6f/0xaa  <f8a61f64>
br_forward_finish+0x0/0x5b [bridge]
[17179991.580000]  <c02b0abf> nf_hook_slow+0x6b/0xf7  <f8a61f64>
br_forward_finish+0x0/0x5b [bridge]
[17179991.580000]  <f8a6207d> __br_forward+0x57/0x6e [bridge]
<f8a61f64> br_forward_finish+0x0/0x5b [bridge]
[17179991.580000]  <f8a62d25> br_handle_frame_finish+0xe8/0x138 [bridge]
 <f8a66c38> br_nf_pre_routing_finish+0x135/0x322 [bridge]
[17179991.580000]  <f8a62c3d> br_handle_frame_finish+0x0/0x138 [bridge]
 <f89b1884> ip_nat_in+0x43/0xb0 [iptable_nat]
[17179991.580000]  <f8a66b03> br_nf_pre_routing_finish+0x0/0x322
[bridge]  <c02b0a19> nf_iterate+0x6f/0xaa
[17179991.580000]  <f8a66b03> br_nf_pre_routing_finish+0x0/0x322
[bridge]  <c02b0abf> nf_hook_slow+0x6b/0xf7
[17179991.580000]  <f8a66b03> br_nf_pre_routing_finish+0x0/0x322
[bridge]  <f8a673cd> br_nf_pre_routing+0x264/0x3e4 [bridge]
[17179991.580000]  <f8a66b03> br_nf_pre_routing_finish+0x0/0x322
[bridge]  <c02b0a19> nf_iterate+0x6f/0xaa
[17179991.580000]  <f8a62c3d> br_handle_frame_finish+0x0/0x138 [bridge]
 <c02b0abf> nf_hook_slow+0x6b/0xf7
[17179991.580000]  <f8a62c3d> br_handle_frame_finish+0x0/0x138 [bridge]
 <f8a62ed1> br_handle_frame+0x122/0x1d5 [bridge]
[17179991.580000]  <f8a62c3d> br_handle_frame_finish+0x0/0x138 [bridge]
 <c0297e7f> netif_receive_skb+0x1b8/0x3ee
[17179991.580000]  <c0298139> process_backlog+0x84/0x109  <c029824c>
net_rx_action+0x8e/0x15f
[17179991.580000]  <c012321a> __do_softirq+0xc2/0xd4  <c012325e>
do_softirq+0x32/0x34
[17179991.580000]  <c010534f> do_IRQ+0x3b/0x66  <c0103696>
common_interrupt+0x1a/0x20
[17179991.580000] Code: 98 03 8e f8 00 00 00 01 8b 83 58 01 00 00 85 c0
0f 84 31 01 00 00 8b 54 24 30 80 7a 30 00 0f 84 ee 00 00 00 bf 96 ec 8d
f8 89 ee <ac> ae 75 08 84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 85 c0 c7 44 24
[17179991.580000] EIP: [<f88de6b1>] match+0x154/0x30a [ipt_layer7]
SS:ESP 0068:f6053b84
[17179991.580000]  <0>Kernel panic - not syncing: Fatal exception in
interrupt
[17179991.580000]



Layer7 is not obviously implicated in this one, but I think it is related.

[17183769.024000] Oops: 0000 [#1]
[17183769.024000] SMP
[17183769.024000] Modules linked in: ipt_vlan ipt_connrate ebt_mark
ebtable_nat
ebtable_filter ebtable_broute ebtables ipt_ULOG ipt_ttl ipt_TOS ipt_tos
ipt_TCPMSS ipt_SAME ipt_REJECT ipt_REDIRECT ipt_NETMAP ipt_MASQUERADE
ipt_LOG ipt_iprange ipt_hashlimit ipt_ECN ipt_ecn ipt_DSCP ipt_dscp
ipt_ah ipt_addrtype iptable_raw iptable_nat iptable_mangle
iptable_filter ip_tables ip_queue cls_fw sch_prio sch_sfq sch_htb crc32
cls_u32 8021q bridge llc ipt_condition ipt_account ipt_recent tg3 e1000
e100 mii ip_conntrack_netlink ip_nat ipt_SET xt_tcpudp xt_tcpmss
xt_string xt_state xt_sctp xt_realm xt_policy xt_pkttype xt_physdev
xt_multiport xt_mark xt_mac xt_limit xt_length xt_helper xt_esp xt_dccp
xt_conntrack xt_connmark xt_connbytes xt_comment xt_NOTRACK xt_NFQUEUE
xt_MARK xt_CONNMARK ip_conntrack nfnetlink xt_CLASSIFY ipt_layer7
ipt_time ipt_set x_tables ip_set_portmap ip_set_nethash ip_set_macipmap
ip_set_iptree ip_set_ipporthash ip_set_ipmap ip_set_iphash ip_set
ata_piix libata sd_mod scsi_mod
[17183769.024000] CPU:    0
[17183769.024000] EIP:    0060:[<f8a2b0f9>]    Not tainted VLI
[17183769.024000] EFLAGS: 00010286   (2.6.17.1-smp-dbamK #34)
[17183769.024000] EIP is at ipt_do_table+0xd1/0x4cd [ip_tables]
[17183769.024000] eax: f8b8e2e8   ebx: f8ba5b48   ecx: 00000000   edx:
00000001
[17183769.024000] esi: f700d000   edi: f8ba7c90   ebp: 00000070   esp:
f7e87bb4
[17183769.024000] ds: 007b   es: 007b   ss: 0068
[17183769.024000] Process ksoftirqd/0 (pid: 3, threadinfo=f7e86000
task=f7e1a070)
[17183769.024000] Stack: f4ff9a80 f700d000 f700d000 f88e03a0 f8ba5b68
00000000 00000014 f7e87bf4
[17183769.024000]        00000000 f895e9cc f8b8e2e8 f8b8e000 f700d000
f700d000 00000000 e1e56420
[17183769.024000]        00000000 f895ea18 f7e87c74 80000000 c04ba010
f895e037 f7e87cac 00000002
[17183769.024000] Call Trace:
[17183769.024000]  <f895e037> ipt_route_hook+0x37/0x3b [iptable_mangle]
 <c02b0a19> nf_iterate+0x6f/0xaa
[17183769.024000]  <f8a675b9> br_nf_forward_finish+0x0/0x106 [bridge]
<c02b0abf> nf_hook_slow+0x6b/0xf7
[17183769.024000]  <f8a675b9> br_nf_forward_finish+0x0/0x106 [bridge]
<f8a6779f> br_nf_forward_ip+0xe0/0x173 [bridge]
[17183769.024000]  <f8a675b9> br_nf_forward_finish+0x0/0x106 [bridge]
<c02b0a19> nf_iterate+0x6f/0xaa
[17183769.024000]  <f8a61f64> br_forward_finish+0x0/0x5b [bridge]
<c02b0abf> nf_hook_slow+0x6b/0xf7
[17183769.024000]  <f8a61f64> br_forward_finish+0x0/0x5b [bridge]
<f8a6207d> __br_forward+0x57/0x6e [bridge]
[17183769.024000]  <f8a61f64> br_forward_finish+0x0/0x5b [bridge]
<f8a62d25> br_handle_frame_finish+0xe8/0x138 [bridge]
[17183769.024000]  <f8a66c38> br_nf_pre_routing_finish+0x135/0x322
[bridge]  <f8a62c3d> br_handle_frame_finish+0x0/0x138 [bridge]
[17183769.024000]  <f89b1884> ip_nat_in+0x43/0xb0 [iptable_nat]
<f8a66b03> br_nf_pre_routing_finish+0x0/0x322 [bridge]
[17183769.024000]  <c02b0a19> nf_iterate+0x6f/0xaa  <f8a66b03>
br_nf_pre_routing_finish+0x0/0x322 [bridge]
[17183769.024000]  <c02b0abf> nf_hook_slow+0x6b/0xf7  <f8a66b03>
br_nf_pre_routing_finish+0x0/0x322 [bridge]
[17183769.024000]  <f8a673cd> br_nf_pre_routing+0x264/0x3e4 [bridge]
<f8a66b03> br_nf_pre_routing_finish+0x0/0x322 [bridge]
[17183769.024000]  <c02b0a19> nf_iterate+0x6f/0xaa  <f8a62c3d>
br_handle_frame_finish+0x0/0x138 [bridge]
[17183769.024000]  <c02b0abf> nf_hook_slow+0x6b/0xf7  <f8a62c3d>
br_handle_frame_finish+0x0/0x138 [bridge]
[17183769.024000]  <f8a62ed1> br_handle_frame+0x122/0x1d5 [bridge]
<f8a62c3d> br_handle_frame_finish+0x0/0x138 [bridge]
[17183769.024000]  <c0297e7f> netif_receive_skb+0x1b8/0x3ee  <c0298139>
process_backlog+0x84/0x109
[17183769.024000]  <c029824c> net_rx_action+0x8e/0x15f  <c012321a>
__do_softirq+0xc2/0xd4
[17183769.024000]  <c01236c9> ksoftirqd+0x0/0xbd  <c012325e>
do_softirq+0x32/0x34
[17183769.024000]  <c0123744> ksoftirqd+0x7b/0xbd  <c01312b9>
kthread+0xb7/0xbd
[17183769.024000]  <c0131202> kthread+0x0/0xbd  <c01010b5>
kernel_thread_helper+0x5/0xb
[17183769.024000] Code: 44 24 5c 8b 54 24 2c 03 7c 86 0c 03 54 86 20 89
6c 24 20 89 54 24 28 85 ff 0f 84 b6 03 00 00 8b 44 24 28 85 c0 0f 84 81
03 00 00 <0f> b6 5f 53 89 d8 24 08 84 c0 0f 84 5e 03 00 00 8b 47 08 8b 4c
[17183769.024000] EIP: [<f8a2b0f9>] ipt_do_table+0xd1/0x4cd [ip_tables]
SS:ESP 0068:f7e87bb4
[17183769.024000]  <0>Kernel panic - not syncing: Fatal exception in
interrupt
[17183769.024000]


(Is this stackdump one or two threads?)

I'm doing more tests to locate the cause.

Sam

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

end of thread, other threads:[~2006-08-21 23:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-17 16:28 lots of oopses Amin Azez
2006-08-17 17:04 ` Patrick McHardy
2006-08-18  7:33   ` Amin Azez
2006-08-18 18:23     ` Patrick McHardy
     [not found]       ` <44E6C247.9010704@ufomechanic.net>
2006-08-21 23:09         ` Patrick McHardy
2006-08-18 13:55   ` ipt_vlan Amin Azez
2006-08-18 18:18     ` ipt_vlan Patrick McHardy

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.