NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/49506: panic in bpf



The following reply was made to PR kern/49506; it has been noted by GNATS.

From: "Kamil Rytarowski" <n54%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: ozaki-r%netbsd.org@localhost
Subject: Re: kern/49506: panic in bpf
Date: Fri, 26 Dec 2014 16:54:30 +0100

 Hello,
 
 I was trying to reproduce similar enough set-up from the crash. But I cannot trigger the panic. Not sure if missing ppp0 is relevant...
 
 My network setup was:
 
 internet ---- ([uhso0/ppp0] [axe0]) ==== (some local computer)
 
 I used set-up from: http://www.netbsd.org/docs/network/
 
 :quote:
 A simple NAT ("IP Masquerading") setup (top)
 
 To allow hosts that you have on a local private network (say: 10.0.0.0/24) use your NetBSD machine as router, and setup Network Address Translation (NAT, also called "IP Masquerading" in another universe), do the following:
 
     On your clients, use the NAT machine as default router (put defaultroute="a.b.c.d" into their /etc/rc.conf if they run NetBSD, where a.b.c.d is the internal IP number (from the 10.0.0.0 net, i.e.)).
 
     On your NAT machine, first make sure your kernel has ipfilter enabled (Most recently compiled GENERIC kernels include this by default.):
 
     options         PFIL_HOOKS    	        # pfil(9) packet filter hooks
     pseudo-device   ipfilter                # IP filter (firewall) and NAT
     	
 
     Put this into your ipf.conf(5):
 
     pass in from any to any
     pass out from any to any
       
 
     Put this into your ipnat.conf(5):
 
     map ppp0 10.0.0.0/24 -> 0/32 proxy port ftp ftp/tcp
     map ppp0 10.0.0.0/24 -> 0/32 portmap tcp/udp 40000:60000
     map ppp0 10.0.0.0/24 -> 0/32
       
 
     Enable everything in your /etc/rc.conf:
 
     ipfilter=YES                                    # uses /etc/ipf.conf
     ipnat=YES                                       # uses /etc/ipnat.conf
       
 
     Turn on IPv4 packet forwarding in /etc/sysctl.conf:
 
     net.inet.ip.forwarding=1
       
 
     Reboot.
     Use ping(8), tcpdump(8), ipfstat(8) and ipnat(8) to debug.
 
 If you want to use NAT on a PPPoE link (as usually used on DSL links), then you may want to enable MSS clamping too. 
 
 :end-of-quote:
 
 
 If you think your fix resolves the problem please apply it and close the report. If I will ever reproduce it I will file a new PR.
 
 This was older kernel and user-land, when I was forced to use 3G for few months.
 
 I preserved crash dump for later.
 
 ps from core:
 
 System panicked: trap
 Backtrace from time of crash is available.
 crash> ps
 PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
 125  >   1 7   0         0   fffffe8006f51120               nmap
 503      1 2   0   8020000   fffffe80ba014ba0                 sh
 689      1 2   1   8020000   fffffe80bdae8ac0              getty
 698      1 2   0   8020000   fffffe80bdf9b260              getty
 754      1 2   0   8020000   fffffe80be01d660              login
 630      1 2   1   8020000   fffffe80bdf9baa0              getty
 718      1 2   1   8020000   fffffe80bb006760               cron
 601      1 2   1   8020000   fffffe80bd5f1320              inetd
 629      1 2   1   8020000   fffffe80bcfe9b40               qmgr
 679      1 2   0   8020000   fffffe80bcfe9300             pickup
 680      1 2   0   8020000   fffffe80bb006b80             master
 412      1 2   0   8020000   fffffe80bd11c2e0             powerd
 300  >   1 7   1   8020000   fffffe80bdae86a0            syslogd
 1        1 2   1   8020000   fffffe80075fe200               init
 0       67 3   0       200   fffffe80bd8556e0               vnd0 vndbp
 0       66 3   0       200   fffffe80bdbe96c0            physiod physiod
 0       65 3   1       200   fffffe800764d220           aiodoned aiodoned
 0       64 3   0       200   fffffe80073419c0            ioflush syncer
 0       63 3   0       200   fffffe800764d640           pgdaemon pgdaemon
 0       59 3   0       200   fffffe8007340580               usb6 usbevt
 0       58 3   0       200   fffffe800733f140               usb4 usbevt
 0       57 3   0       200   fffffe800733f980               usb2 usbevt
 0       56 3   0       200   fffffe8007340160               usb0 usbevt
 0       55 3   0       200   fffffe80073409a0               usb5 usbevt
 0       54 3   0       200   fffffe800733f560               usb3 usbevt
 0       53 3   0       200   fffffe8007341180               usb1 usbevt
 0       52 3   0       200   fffffe800764da60          cryptoret crypto_w
 0       51 3   0       200   fffffe80075fe620              unpgc unpgc
 0       50 3   1       200   fffffe80075fea40          atapibus0 sccomp
 0       49 3   0       200   fffffe80072561e0          coretemp1 coretemp1
 0       48 3   1       200   fffffe8007256600          coretemp0 coretemp0
 0       47 3   0       200   fffffe8007256a20            acpitz4 acpitz4
 0       46 3   0       200   fffffe80073141c0            acpitz3 acpitz3
 0       45 3   0       200   fffffe80073145e0            acpitz2 acpitz2
 0       44 3   0       200   fffffe8007314a00            acpitz1 acpitz1
 0       43 3   0       200   fffffe80073521a0            acpitz0 acpitz0
 0       42 3   0       200   fffffe80073525c0           acpibat1 acpibat1
 0       41 3   0       200   fffffe80073529e0           acpibat0 acpibat0
 0       39 3   1       200   fffffe80073415a0        vmem_rehash vmem_rehash
 0       30 3   1       200   fffffe8006f51540            atabus1 atath
 0       29 3   0       200   fffffe8006f51960            atabus0 atath
 0       28 3   0       200   fffffe8006ef1100          cardslot0 cardslotev
 0       27 3   0       280   fffffe8006ef1520           fw0probe ieee1394
 0       26 3   0       200   fffffe8006ef1940         usbtask-dr usbtsk
 0       25 3   0       200   fffffe8006e260e0         usbtask-hc usbtsk
 0       24 3   0       200   fffffe8006e26500               pms0 pmsreset
 0       23 3   0       200   fffffe8006e26920    acpiec sci thre ecsci
 0       22 3   1       200   fffffe8006d350c0            xcall/1 xcall
 0       21 1   1       200   fffffe8006d354e0          softser/1
 0    >  20 7   1       200   fffffe8006d35900          softclk/1
 0       19 1   1       200   fffffe8006d360a0          softbio/1
 0       18 1   1       200   fffffe8006d364c0          softnet/1
 0       17 1   1       201   fffffe8006d368e0             idle/1
 0       16 3   1       200   fffffe80be399080             sysmon smtaskq
 0       15 3   0       200   fffffe80be3994a0         pmfsuspend pmfsuspend
 0       14 3   1       200   fffffe80be3998c0           pmfevent pmfevent
 0       13 3   0       200   fffffe80bed39060         sopendfree sopendfr
 0       12 3   0       200   fffffe80bed39480           nfssilly nfssilly
 0       11 3   0       200   fffffe80bed398a0            cachegc cachegc
 0       10 3   0       200   fffffe80bf340040              vrele vrele
 0        9 3   0       200   fffffe80bf340460             vdrain vdrain
 0        8 3   0       200   fffffe80bf340880          modunload mod_unld
 0        7 3   0       200   fffffe80bf34b020            xcall/0 xcall
 0        6 1   0       200   fffffe80bf34b440          softser/0
 0        5 1   0       200   fffffe80bf34b860          softclk/0
 0        4 1   0       200   fffffe80bf350000          softbio/0
 0        3 1   0       200   fffffe80bf350420          softnet/0
 0        2 1   0       201   fffffe80bf350840             idle/0
 0        1 3   0       200   ffffffff812f06a0            swapper uvm
 
 Please tell me if anything is still interesting from the core, as I want to remove all cores from my machine.
 
 Regads,
 


Home | Main Index | Thread Index | Old Index