From: Amin Azez Subject: lots of oopses Date: Thu, 17 Aug 2006 17:28:01 +0100 Message-ID: <44E49911.6080007@ufomechanic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: To: netfilter-devel@lists.netfilter.org, l7-filter-developers@lists.sourceforge.net List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org 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:[] 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] ipt_do_table+0x239/0x4cd [ip_tables] ipt_route_hook+0x37/0x3b [iptable_mangle] [17179991.580000] nf_iterate+0x6f/0xaa br_nf_forward_finish+0x0/0x106 [bridge] [17179991.580000] nf_hook_slow+0x6b/0xf7 br_nf_forward_finish+0x0/0x106 [bridge] [17179991.580000] br_nf_forward_ip+0xe0/0x173 [bridge] br_nf_forward_finish+0x0/0x106 [bridge] [17179991.580000] nf_iterate+0x6f/0xaa br_forward_finish+0x0/0x5b [bridge] [17179991.580000] nf_hook_slow+0x6b/0xf7 br_forward_finish+0x0/0x5b [bridge] [17179991.580000] __br_forward+0x57/0x6e [bridge] br_forward_finish+0x0/0x5b [bridge] [17179991.580000] br_handle_frame_finish+0xe8/0x138 [bridge] br_nf_pre_routing_finish+0x135/0x322 [bridge] [17179991.580000] br_handle_frame_finish+0x0/0x138 [bridge] ip_nat_in+0x43/0xb0 [iptable_nat] [17179991.580000] br_nf_pre_routing_finish+0x0/0x322 [bridge] nf_iterate+0x6f/0xaa [17179991.580000] br_nf_pre_routing_finish+0x0/0x322 [bridge] nf_hook_slow+0x6b/0xf7 [17179991.580000] br_nf_pre_routing_finish+0x0/0x322 [bridge] br_nf_pre_routing+0x264/0x3e4 [bridge] [17179991.580000] br_nf_pre_routing_finish+0x0/0x322 [bridge] nf_iterate+0x6f/0xaa [17179991.580000] br_handle_frame_finish+0x0/0x138 [bridge] nf_hook_slow+0x6b/0xf7 [17179991.580000] br_handle_frame_finish+0x0/0x138 [bridge] br_handle_frame+0x122/0x1d5 [bridge] [17179991.580000] br_handle_frame_finish+0x0/0x138 [bridge] netif_receive_skb+0x1b8/0x3ee [17179991.580000] process_backlog+0x84/0x109 net_rx_action+0x8e/0x15f [17179991.580000] __do_softirq+0xc2/0xd4 do_softirq+0x32/0x34 [17179991.580000] do_IRQ+0x3b/0x66 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 ae 75 08 84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 85 c0 c7 44 24 [17179991.580000] EIP: [] 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:[] 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] ipt_route_hook+0x37/0x3b [iptable_mangle] nf_iterate+0x6f/0xaa [17183769.024000] br_nf_forward_finish+0x0/0x106 [bridge] nf_hook_slow+0x6b/0xf7 [17183769.024000] br_nf_forward_finish+0x0/0x106 [bridge] br_nf_forward_ip+0xe0/0x173 [bridge] [17183769.024000] br_nf_forward_finish+0x0/0x106 [bridge] nf_iterate+0x6f/0xaa [17183769.024000] br_forward_finish+0x0/0x5b [bridge] nf_hook_slow+0x6b/0xf7 [17183769.024000] br_forward_finish+0x0/0x5b [bridge] __br_forward+0x57/0x6e [bridge] [17183769.024000] br_forward_finish+0x0/0x5b [bridge] br_handle_frame_finish+0xe8/0x138 [bridge] [17183769.024000] br_nf_pre_routing_finish+0x135/0x322 [bridge] br_handle_frame_finish+0x0/0x138 [bridge] [17183769.024000] ip_nat_in+0x43/0xb0 [iptable_nat] br_nf_pre_routing_finish+0x0/0x322 [bridge] [17183769.024000] nf_iterate+0x6f/0xaa br_nf_pre_routing_finish+0x0/0x322 [bridge] [17183769.024000] nf_hook_slow+0x6b/0xf7 br_nf_pre_routing_finish+0x0/0x322 [bridge] [17183769.024000] br_nf_pre_routing+0x264/0x3e4 [bridge] br_nf_pre_routing_finish+0x0/0x322 [bridge] [17183769.024000] nf_iterate+0x6f/0xaa br_handle_frame_finish+0x0/0x138 [bridge] [17183769.024000] nf_hook_slow+0x6b/0xf7 br_handle_frame_finish+0x0/0x138 [bridge] [17183769.024000] br_handle_frame+0x122/0x1d5 [bridge] br_handle_frame_finish+0x0/0x138 [bridge] [17183769.024000] netif_receive_skb+0x1b8/0x3ee process_backlog+0x84/0x109 [17183769.024000] net_rx_action+0x8e/0x15f __do_softirq+0xc2/0xd4 [17183769.024000] ksoftirqd+0x0/0xbd do_softirq+0x32/0x34 [17183769.024000] ksoftirqd+0x7b/0xbd kthread+0xb7/0xbd [17183769.024000] kthread+0x0/0xbd 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: [] 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