Subject: kern/29895: frequent kernel trap (ipfilter+proto gre related?)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <egervary@expertlan.hu>
List: netbsd-bugs
Date: 04/05/2005 18:52:00
>Number:         29895
>Category:       kern
>Synopsis:       frequent kernel trap (ipfilter+proto gre related?)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 05 18:52:00 +0000 2005
>Originator:     Gergely EGERVARY
>Release:        2.0-STABLE (netbsd-2 branch)
>Organization:
ExpertLAN Computer Corp.
>Environment:
NetBSD duna.sulinova.hu 2.0_STABLE NetBSD 2.0_STABLE (BSD-DUNA) #4: Fri Mar 31 23:05:24 CET 2005  root@duna.sulinova.hu:/var/data/usr_src/sys/arch/i386/compile/BSD-DUNA i386

>Description:
Frequent traps occur, mostly when PPTP VPN clients are connected.
(latest poptop pptpd + mppe_lkm from pkgsrc)

(anyway... please pullup the latest ipfilter from -current to netbsd-2 and netbsd-2-0 if possible!)

(gdb) bt
#0  0x00000000 in ?? ()
#1  0xc070b000 in ?? ()
#2  0xc03643c9 in cpu_reboot (howto=256, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:745
#3  0xc02d29e8 in panic (fmt=0xc046d76a "trap")
    at ../../../../kern/subr_prf.c:242
#4  0xc036da0f in trap (frame=0xc7453aa4)
    at ../../../../arch/i386/i386/trap.c:296
#5  0xc010c4a7 in calltrap ()
#6  0xc014ce97 in fr_checkstate (fin=0xc7453ba4, passp=0xc7453ba0)
    at ../../../../dist/ipf/netinet/ip_state.c:2424
#7  0xc0131905 in fr_check (ip=0xc10cefec, hlen=20, ifp=0xc0baf034, out=1,
    mp=0xc7453cbc) at ../../../../dist/ipf/netinet/fil.c:2368
#8  0xc0136fbf in fr_check_wrapper (arg=0x0, mp=0xc7453cbc, ifp=0xc0baf034,
    dir=2) at ../../../../dist/ipf/netinet/ip_fil_netbsd.c:178
#9  0xc032852f in pfil_run_hooks (ph=0xc0509ae0, mp=0xc7453d3c,
    ifp=0xc0baf034, dir=2) at ../../../../net/pfil.c:69
#10 0xc012220f in ip_output (m0=0xc10cef00)
    at ../../../../netinet/ip_output.c:734
#11 0xc0123c86 in rip_output (m=0xc0cad100) at ../../../../netinet/raw_ip.c:390
#12 0xc0124169 in rip_usrreq (so=0xc0fd6670, req=9, m=0xc0cad100, nam=0x0,
    control=0x0, p=0xc6e62e5c) at ../../../../netinet/raw_ip.c:653
#13 0xc02ea1fe in sosend (so=0xc0fd6670, addr=0x0, uio=0xc7453ec4,
    top=0xc0cad100, control=0x0, flags=0) at ../../../../kern/uipc_socket.c:879
#14 0xc02da032 in soo_write (fp=0xc6e76f18, offset=0xc6e76f40, uio=0xc7453ec4,
    cred=0xc0af2e80, flags=1) at ../../../../kern/sys_socket.c:81
#15 0xc02d68a9 in dofilewrite (p=0xc6e62e5c, fd=5, fp=0xc6e76f18,
    buf=0x8057780, nbyte=234, offset=0xc6e76f40, flags=1, retval=0xc7453f5c)
    at ../../../../kern/sys_generic.c:358
#16 0xc02d680c in sys_write (l=0xc79a3d74, v=0xc7453f64, retval=0xc7453f5c)
    at ../../../../kern/sys_generic.c:314
#17 0xc036d3ba in syscall_plain (frame=0xc7453fa8)
    at ../../../../arch/i386/i386/syscall.c:159

>How-To-Repeat:

>Fix:
Yes please :)