2.4.25 crash with conntrack msgs in the kernel log
The following were the messages in the kernel log before the system (s/w h/w configuration detailed below) has frozen:
Mar 2 13:32:34 Sergeus kernel: device eth0 entered promiscuous mode Mar 2 13:32:48 Sergeus kernel: device eth0 left promiscuous mode Mar 2 13:55:53 Sergeus kernel: LIST_DELETE: ip_conntrack_core.c:302 `&ct->tuplehash[IP_CT_DIR_REPLY]'(eea82c38) not in &ip_conntrack_hash[hr]. Mar 2 13:55:58 Sergeus kernel: LIST_DELETE: ip_conntrack_core.c:302
`&ct->tuplehash[IP_CT_DIR_REPLY]'(f77af420) not in &ip_conntrack_hash[hr].
The server is running the 2.4.25 kernel (debugging enabled) compiled with gcc 3.2.3 (on redhat 7.3). Enclosed in the attachment is a copy of the config file. A slightly modified quota patch from patch-o-matic (modified source in the attachment) is the only addition to the vanilla-sources.
The system has a 2.4GHz Xeon processor(SMP disabled in the kernel) with 1GB of ram with two Intel Ethernet Pro NICs.
The system acts as the gateway for around 500 active users, with around 1000 rules in the forward chain and around 400 chains, each of these chains with one rule (using the 'ipt_quota' match), in the filter table and around 1500 rules in the 'nat' table, HTB, being the one used for shaping bandwidth.
Addition/deletion of 5-6 iptables rules takes place about every 5 seconds and the only warning msgs in the logs before the crash were
Mar 1 17:26:47 Sergeus kernel: ip_conntrack: table full, dropping packet. Mar 1 17:27:25 Sergeus kernel: ip_conntrack: table full, dropping packet. Mar 1 17:27:25 Sergeus kernel: ip_conntrack: table full, dropping packet. Mar 1 17:37:15 Sergeus kernel: Mar 1 17:37:15 Sergeus kernel: Quota Patch: src=10.19.35.207:81.250.245.74:99989 Mar 1 17:50:37 Sergeus kernel: Mar 1 17:50:37 Sergeus kernel: Quota Patch: src=66.28.176.251:10.19.45.101:99795 Mar 1 18:42:17 Sergeus kernel: conntrack_ftp: partial PORT 4154756532+1 Mar 1 18:42:39 Sergeus kernel: conntrack_ftp: partial PORT 4154756610+1 Mar 1 18:44:10 Sergeus kernel: conntrack_ftp: partial PORT 4154756637+1 Mar 1 18:44:11 Sergeus kernel: conntrack_ftp: partial PORT 4154756681+1
this was around 20 hrs before the crash.
The system had to be hard booted after this and some logs which are accessed at this time have either junk or content from other files appended at the end.
We've been having 'regular' crashes on similar systems with 2.4.23 (with SMP enabled and compiled gcc 2.96) but without netfilter debugging enabled (which is printing the LIST_DELETE warnings). There haven't been indications of the conntrack list size hitting conntrack_max value in the other crashes ( at least the logs before the crash don't have any such entries)
I'd had tried simulating the crash earlier on a system with quite a lower configuration compared to the actual setup (on a 500 MHz with 128 MB of ram) and was getting some virtual page request failure oops for ip_tables ('ve already s_p-a_m-m-e_d the list earlier with those oops). but after 2 weeks of beginner's luck, as doubted by some ppl on the list, the cause of the oops turned out to be bad ram on the test box. But on the systems in production, there aren't oops or kernel panics and the probability of problems due to bad ram seems to be extremely low as the crashes have been happening on and off on around 7-8 systems.
Does anyone have an idea what the cause for the crash might be and can someone suggest changes to be made/steps to follow that can help resolve the problem or atleast lead to the 'exact' cause for the problem?
Regards,
Vijaya Chandra Vupputuri,
Tachyon Technologies.
Hi,
Quoted 5 lines · Vijaya Chandra Vupputuri
The system acts as the gateway for around 500 active users, with around 1000 rules in the forward chain and around 400 chains, each of these chains with one rule (using the '
ipt_quota' match), in the filter table and around 1500 rules in the 'nat' table, HTB, being the one used for shaping bandwidth.
What conntrack/NAT helpers do you use? Which modules are loaded in the
kernel?
Signature · 2 lines
Regards, Krisztian KOVACS
Excuse me for not including details about the modules.
On the system with 2.4.25, all the modules had been into the kernel and typically the following would be the ones used
Module Size Used by Not tainted ip_nat_ftp 3808 0 (unused) ipt_quota 1632 566 (autoclean) cls_u32 5700 2 (autoclean) sch_htb 20672 2 (autoclean) ipt_REDIRECT 1472 17 (autoclean) ipt_mport 1344 1 (autoclean) ipt_state 1216 2 (autoclean) iptable_nat 21236 2 (autoclean) [ip_nat_ftp ipt_REDIRECT] iptable_filter 2432 1 (autoclean) ip_tables 14368 8 [ipt_quota ipt_REDIRECT ipt_mport
ipt_state iptable_nat iptable_filter]ip_conntrack_ftp 4928 1ip_conntrack 27188 3 [ip_nat_ftp ipt_REDIRECT ipt_stateiptable_nat ip_conntrack_ftp]
eepro100 20652 2
mii 3800 0 [eepro100]
This is a listing from a system with 2.4.23 where the modules were not built into the kernel.
Actually when the systems had ext3 as the filesystem, the kernel used to cry out loud saying BUG in checkpoint.c. Included are bzipped copies of some of the outputs from ksymoops. It's only with ext3 that we have any msgs in the kernel logs and with ext2 and reiserfs, the system crashes silently with junk in whatever log files are being written to (/that are in use).
Regards,
Vijaya Chandra Vupputuri,
Tachyon Technologies.
Quoted 11 lines · KOVACS Krisztian
Hi,
Quoted 5 lines · Vijaya Chandra Vupputuri
The system acts as the gateway for around 500 active users, with around 1000 rules in the forward chain and around 400 chains, each of these chains with one rule (using the '
ipt_quota' match), in the filter table and around 1500 rules in the 'nat' table, HTB, being the one used for shaping bandwidth.What conntrack/NAT helpers do you use? Which modules are loaded in the
kernel?