netfilter (+/- kernel) crash with
Hi,
On continuous addition and deletion of iptables rules for around 2 hours, am having problem adding/deleting any rules as I am getting the following oops
Jan 28 02:50:51 rhtest kernel: Unable to handle kernel paging request at virtual address 07010012 Jan 28 02:50:51 rhtest kernel: c88ce075 Jan 28 02:50:51 rhtest kernel: *pde = 00000000 Jan 28 02:50:51 rhtest kernel: Oops: 0000 Jan 28 02:50:51 rhtest kernel: CPU: 0 Jan 28 02:50:51 rhtest kernel: EIP: 0010:[<c88ce075>] Not tainted Using defaults from ksymoops -t elf32-i386 -a i386 Jan 28 02:50:51 rhtest kernel: EFLAGS: 00010216 Jan 28 02:50:51 rhtest kernel: eax: 00000000 ebx: c890f0c0 ecx: ffffffff edx: c8904790 Jan 28 02:50:51 rhtest kernel: esi: c8904824 edi: 07010012 ebp: 00000094 esp: c1543c44 Jan 28 02:50:51 rhtest kernel: ds: 0018 es: 0018 ss: 0018 Jan 28 02:50:51 rhtest kernel: Process iptables (pid: 15667, stackpage=c1543000) Jan 28 02:50:51 rhtest kernel: Stack: c1542000 00000000 c890f000 c8904790 00000750 c1543c94 08057304 c1543d84 Jan 28 02:50:51 rhtest kernel: 080572e0 c88ce174 00003ac8 c88f4340 08057304 00000000 00000000 c88cea62 Jan 28 02:50:51 rhtest kernel: c1543c94 080572e0 c028adbb 00000000 0074616e 00000000 00000000 00000000 Jan 28 02:50:51 rhtest kernel: Call Trace: [<c88ce174>] [<c88f4340>] [<c88cea62>] [<c028adbb>] [<c88d0920>] Jan 28 02:50:51 rhtest kernel: [<c0241ed7>] [<c0241fd0>] [<c025340c>] [<c014c53c>] [<c0132975>] [<c0130ec5>] Jan 28 02:50:51 rhtest kernel: [<c0127102>] [<c0127154>] [<c0127352>] [<c01137b6>] [<c0271fa5>] [<c02340af>] Jan 28 02:50:51 rhtest kernel: [<c02346f6>] [<c0113610>] [<c0107194>] [<c01070a3>] Jan 28 02:50:51 rhtest kernel: Code: f2 ae f7 d1 49 41 51 8b 46 04 83 c0
08 50 8b 44 24 38 8b 7c
Quoted 1 line
Quoted 1 line
EIP;
c88ce075<[ip_tables]copy_entries_to_user+185/240> <=====
Trace; c88ce174 <[ip_tables]get_entries+44/70> Trace; c88f4340 <[iptable_nat]nat_table+0/40> Trace; c88cea62 <[ip_tables]do_ipt_get_ctl+222/250> Trace; c028adbb <clear_user+2b/40>
Trace; c88d0920 <[ip_tables]ipt_sockopts+0/40> Trace; c0241ed7 <nf_sockopt+87/130>
Trace; c0241fd0 <nf_getsockopt+20/30>
Trace; c025340c <ip_getsockopt+a9c/d05>
Trace; c014c53c <dput+1c/160>
Trace; c0132975 <__alloc_pages+75/2e0>
Trace; c0130ec5 <lru_cache_add+75/80>
Trace; c0127102 <do_anonymous_page+d2/f0>
Trace; c0127154 <do_no_page+34/1d0>
Trace; c0127352 <handle_mm_fault+62/d0>
Trace; c01137b6 <do_page_fault+1a6/4db>
Trace; c0271fa5 <inet_getsockopt+25/30>
Trace; c02340af <sys_getsockopt+4f/70>
Trace; c02346f6 <sys_socketcall+1c6/200>
Trace; c0113610 <do_page_fault+0/4db>
Trace; c0107194 <error_code+34/3c>
Trace; c01070a3 <system_call+33/38>
Code; c88ce075 <[ip_tables]copy_entries_to_user+185/240> 00000000 <_EIP>:
Code; c88ce075 <[ip_tables]copy_entries_to_user+185/240> <=====
0: f2 ae repnz scas %es:(%edi),%al <=====
Code; c88ce077 <[ip_tables]copy_entries_to_user+187/240>
2: f7 d1 not %ecx
Code; c88ce079 <[ip_tables]copy_entries_to_user+189/240>
4: 49 dec %ecx
Code; c88ce07a <[ip_tables]copy_entries_to_user+18a/240>
5: 41 inc %ecx
Code; c88ce07b <[ip_tables]copy_entries_to_user+18b/240>
6: 51 push %ecx
Code; c88ce07c <[ip_tables]copy_entries_to_user+18c/240>
7: 8b 46 04 mov 0x4(%esi),%eax
Code; c88ce07f <[ip_tables]copy_entries_to_user+18f/240>
a: 83 c0 08 add $0x8,%eax
Code; c88ce082 <[ip_tables]copy_entries_to_user+192/240>
d: 50 push %eax
Code; c88ce083 <[ip_tables]copy_entries_to_user+193/240>
e: 8b 44 24 38 mov 0x38(%esp,1),%eax
Code; c88ce087 <[ip_tables]copy_entries_to_user+197/240>
12: 8b 7c 00 00 mov 0x0(%eax,%eax,1),%edi
This is on a 500 MHz Celeron box with 128 MB of ram running kernel 2.4.23 with a modified quota patch from patch-o-matic and iptables1.2.9.
Am having this crash repeatedly when the system is acting as a gateway for one box that uses ftp with a transfer rate at around 2 Mbps.
The attachment enclosed includes the modified 'ipt_quota' files, the kernel config file, a few other ksymoops and the System.map
Of the ksymoops outputs enclosed the second one let to a kernel crash while in the other cases the system as a whole hasn't gone down.
On some servers in production that perform similar tasks, the kernel has been crashing on and off with a lot of junk in any log file that is being written to at the time. In these cases there aren't any messages from the kernel. On servers with ext3, an ext3 BUG was being reported in the kernel logs, but with reiserfs the crash is silent with, as mentioned earlier, junk characters and portions of other files on the disk in log files.
Can someone please let me know if this is a known issue? Any pointers to the possible cause would make my day.
Please do let me know if any other details of the system's configuration are needed.
Regards,
Vijaya Chandra Vupputuri,
Tachyon Technologies.
Quoted 2 lines · Vijaya Chandra Vupputuri
Can someone please let me know if this is a known issue? Any pointers to the possible cause would make my day.
No, this is definitely not a known issue.
Could you please try without the quota patch and see if the problem persists? I would be really surprised if a stock kernel without any modifications (apart from pom 'submitted') would cause such behaviour.
Quoted 2 lines
Vijaya Chandra Vupputuri,
Tachyon Technologies.
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie