[FUG-BR] Crash com IPNAT
Márcio Elias
marcioelias em gmail.com
Sábado Agosto 20 10:29:06 BRT 2016
Bom dia pessoal.
Estou com um problema com IPNAT no FreeBSD 10.3-RELEASE.
Ativei o IPNAT_LARGE, mais mesmo assim estou sofrendo com esses crashs,
abaixo segue um trecho do dump.
Unread portion of the kernel message buffer:
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0x7fffffffcc4b
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff80d53bac
stack pointer = 0x28:0xfffffe00002a5410
frame pointer = 0x28:0xfffffe00002a5420
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 12 (irq265: bce0)
trap number = 12
panic: page fault
cpuid = 0
KDB: stack backtrace:
#0 0xffffffff8098e390 at kdb_backtrace+0x60
#1 0xffffffff80951066 at vpanic+0x126
#2 0xffffffff80950f33 at panic+0x43
#3 0xffffffff80d55f7b at trap_fatal+0x36b
#4 0xffffffff80d5627d at trap_pfault+0x2ed
#5 0xffffffff80d558fa at trap+0x47a
#6 0xffffffff80d3b8d2 at calltrap+0x8
#7 0xffffffff81c1e402 at ipf_frag_lookup+0x112
#8 0xffffffff81c1e27a at ipf_frag_natknown+0x4a
#9 0xffffffff81c1b790 at ipf_nat_checkin+0x150
#10 0xffffffff81c378ef at ipf_check+0x2af
#11 0xffffffff80a24ef4 at pfil_run_hooks+0x84
#12 0xffffffff80a849be at ip_input+0x2fe
#13 0xffffffff80a24092 at netisr_dispatch_src+0x62
#14 0xffffffff80a1b456 at ether_demux+0x126
#15 0xffffffff80a1c0fe at ether_nh_input+0x35e
#16 0xffffffff80a24092 at netisr_dispatch_src+0x62
#17 0xffffffff80a1b3c1 at ether_demux+0x91
Uptime: 2h34m33s
Dumping 436 out of 8158 MB:..4%..11%..22%..33%..41%..52%..63%..74%..81%..92%
Reading symbols from /boot/kernel/ipl.ko.symbols...done.
Loaded symbols for /boot/kernel/ipl.ko.symbols
Reading symbols from /boot/kernel/if_lagg.ko.symbols...done.
Loaded symbols for /boot/kernel/if_lagg.ko.symbols
Reading symbols from /boot/kernel/uhid.ko.symbols...done.
Loaded symbols for /boot/kernel/uhid.ko.symbols
#0 doadump (textdump=<value optimized out>) at pcpu.h:219
219 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) #0 doadump (textdump=<value optimized out>) at pcpu.h:219
#1 0xffffffff80950cc2 in kern_reboot (howto=260)
at /usr/src/sys/kern/kern_shutdown.c:486
#2 0xffffffff809510a5 in vpanic (fmt=<value optimized out>,
ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:889
#3 0xffffffff80950f33 in panic (fmt=0x0)
at /usr/src/sys/kern/kern_shutdown.c:818
#4 0xffffffff80d55f7b in trap_fatal (frame=<value optimized out>,
eva=<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:858
#5 0xffffffff80d5627d in trap_pfault (frame=0xfffffe00002a5360,
usermode=<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:681
#6 0xffffffff80d558fa in trap (frame=0xfffffe00002a5360)
at /usr/src/sys/amd64/amd64/trap.c:447
#7 0xffffffff80d3b8d2 in calltrap ()
at /usr/src/sys/amd64/amd64/exception.S:236
#8 0xffffffff80d53bac in bcmp () at /usr/src/sys/amd64/amd64/support.S:87
#9 0xffffffff81c1e402 in ipf_frag_lookup ()
at
/usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_frag.c:697
#10 0xffffffff81c1e27a in ipf_frag_natknown (fin=<value optimized out>)
at
/usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_frag.c:813
#11 0xffffffff81c1b790 in ipf_nat_checkin (fin=0xfffffe00002a5608,
passp=0xfffffe00002a5604)
at
/usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/ip_nat.c:5421
#12 0xffffffff81c378ef in ipf_check (ctx=<value optimized out>,
ip=<value optimized out>, hlen=<value optimized out>,
ifp=<value optimized out>, out=<value optimized out>,
mp=<value optimized out>)
at
/usr/src/sys/modules/ipfilter/../../contrib/ipfilter/netinet/fil.c:2996
#13 0xffffffff80a24ef4 in pfil_run_hooks (ph=0xffffffff816a6e88,
mp=0xfffffe00002a57f0, ifp=0xfffff8000a82b000, dir=1, inp=0x0)
at /usr/src/sys/net/pfil.c:82
#14 0xffffffff80a849be in ip_input (m=0xfffff8006f400800)
at /usr/src/sys/netinet/ip_input.c:488
#15 0xffffffff80a24092 in netisr_dispatch_src (proto=<value optimized out>,
source=<value optimized out>, m=0x1) at /usr/src/sys/net/netisr.c:976
#16 0xffffffff80a1b456 in ether_demux (ifp=<value optimized out>,
m=0xfffff8006f400800) at /usr/src/sys/net/if_ethersubr.c:851
#17 0xffffffff80a1c0fe in ether_nh_input (m=<value optimized out>)
at /usr/src/sys/net/if_ethersubr.c:646
#18 0xffffffff80a24092 in netisr_dispatch_src (proto=<value optimized out>,
source=<value optimized out>, m=0x1) at /usr/src/sys/net/netisr.c:976
#19 0xffffffff80a1b3c1 in ether_demux (ifp=0xfffff8000a7f4800,
m=0xfffff8006f400800) at /usr/src/sys/net/if_ethersubr.c:760
#20 0xffffffff80a1c0fe in ether_nh_input (m=<value optimized out>)
at /usr/src/sys/net/if_ethersubr.c:646
#21 0xffffffff80a24092 in netisr_dispatch_src (proto=<value optimized out>,
source=<value optimized out>, m=0x1) at /usr/src/sys/net/netisr.c:976
#22 0xffffffff80492ab7 in bce_intr (xsc=0xfffffe0000977000)
at /usr/src/sys/dev/bce/if_bce.c:6828
#23 0xffffffff8091c99b in intr_event_execute_handlers (
p=<value optimized out>, ie=0xfffff80005422c00)
at /usr/src/sys/kern/kern_intr.c:1264
#24 0xffffffff8091cde6 in ithread_loop (arg=0xfffff8000544db00)
at /usr/src/sys/kern/kern_intr.c:1277
#25 0xffffffff8091a4ea in fork_exit (
callout=0xffffffff8091cd50 <ithread_loop>, arg=0xfffff8000544db00,
frame=0xfffffe00002a5c00) at /usr/src/sys/kern/kern_fork.c:1027
#26 0xffffffff80d3be0e in fork_trampoline ()
at /usr/src/sys/amd64/amd64/exception.S:611
#27 0x0000000000000000 in ?? ()
Current language: auto; currently minimal
(kgdb)
Não tenho ideia de o que pode estar causando isso, pelo dump o processo que
causa o crash está atrelado a placa de rede, alguma ideia? Algum membro da
lista usando IPNAT para um grande quantidade de conexões que tenha um case
de sucesso pra passar alguns tunnings?
Estou usando um Dell R210 com 8G de ram e HD SSD.
Mais detalhes sobre a lista de discussão freebsd