i commited a fix for this on monday.

please try a newer snapshot when available.

/Benno

[email protected]([email protected]) on 2017.02.01 10:39:56 +0100:
> >Synopsis:    a pflow interface panics the -current kernel
> >Category:    kernel
> >Environment:
>       System      : OpenBSD 6.0
>       Details     : OpenBSD 6.0-current (GENERIC.MP) #159: Tue Jan 31 
> 21:48:51 MST 2017
>                        
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>       Architecture: OpenBSD.amd64
>       Machine     : amd64
> >Description:
>       When I add a /etc/hostname.pflow0 to any system with the following 
> contents:
> 
> flowsrc [2001:db8:0:10::202] flowdst [2001:db8:0:10::352]:12345 pflowproto 5
> 
> The kernel panics on boot/ifconfig.  Here is the backtrace information:
> 
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> panic: netlock: lock not held
> Stopped at      Debugger+0x9:   leave
>     TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND                    
>    
> *464082  95409      0         0x3          0    0  ifconfig                   
>    
> Debugger() at Debugger+0x9
> panic() at panic+0xfe
> rw_assert_wrlock() at rw_assert_wrlock+0x43
> rw_exit_write() at rw_exit_write+0x1b
> soo_ioctl() at soo_ioctl+0xce
> sys_ioctl() at sys_ioctl+0x1b1
> syscall() at syscall+0x27b
> --- syscall (number 54) ---
> end of kernel
> end trace frame: 0xa889b755160, count: 8
> 0xa889b51b05a:
> https://www.openbsd.org/ddb.html describes the minimum info required in bug
> reports.  Insufficient info makes it difficult to find and fix bugs.
> ddb{0}> Debugger() at Debugger+0x9
> panic() at panic+0xfe
> rw_assert_wrlock() at rw_assert_wrlock+0x43
> rw_exit_write() at rw_exit_write+0x1b
> soo_ioctl() at soo_ioctl+0xce
> sys_ioctl() at sys_ioctl+0x1b1
> syscall() at syscall+0x27b
> --- syscall (number 54) ---
> end of kernel
> end trace frame: 0xa889b755160, count: -7
> 0xa889b51b05a:
> ddb{0}>    PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND    
>    
> *95409  464082   2330      0  7         0x3                ifconfig
>  82550  397717      1     77  3    0x100090  poll          dhclient
>  75486  212090      1      0  3        0x80  poll          dhclient
>   2330  304939  48754      0  3    0x10008b  pause         sh
>  48754  344137      1      0  3    0x10008b  pause         sh
>  22821  420432      0      0  3     0x14200  bored         ttm_swap
>  76121  230121      0      0  3     0x14200  pgzero        zerothread
>  60354  475719      0      0  3     0x14200  aiodoned      aiodoned
>  87896  133504      0      0  3     0x14200  syncer        update
>  28849  498134      0      0  3     0x14200  cleaner       cleaner
>   9346  241691      0      0  3     0x14200  reaper        reaper
>  39520  393395      0      0  3     0x14200  pgdaemon      pagedaemon
>  3
>  50458    2445      0      0  3     0x14200  bored         crynlk
>  10046  333897      0      0  3     0x14200  bored         crypto
>  46425  112178      0      0  3     0x14200  pftm          pfpurge
>  44098  270817      0      0  3     0x14200  bored         sensors
>  39627  224577      0      0  3     0x14200  usbtsk        usbtask
>  39708  262741      0      0  3     0x14200  usbatsk       usbatsk
>  98704    8197      0      0  3  0x40014200  acpi0         acpi0
>  34875  336516      0      0  7  0x40014200                idle1
>  55665  381009      0      0  3     0x14200  bored         softnet
>  77493   19636      0      0  3     0x14200  bored         systqmp
>  89690  4
>  63785  159328      0      0  3  0x40014200  bored         softclock
>  17636  200595      0      0  3  0x40014200                idle0
>  66013  340518      0      0  3     0x14200  bored         sbar
>      1  364300      0      0  3        0x82  wait          init
>      0       0
> 
> >How-To-Repeat:
>       add the following /etc/hostname.pflow0 and reboot with the -current 
> system downloaded from ftp.eu.openbsd.org on Feb 1st, 2017.
> >Fix:
>       unknown.
> 
> 
> dmesg:
> OpenBSD 6.0-current (GENERIC.MP) #159: Tue Jan 31 21:48:51 MST 2017
>     [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> RTC BIOS diagnostic error 80<clock_battery>
> real mem = 3987992576 (3803MB)
> avail mem = 3862466560 (3683MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe3e70 (51 entries)
> bios0: vendor Acer version "V1.08" date 12/06/2011
> bios0: Acer AO722
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET APIC MCFG BOOT SLIC SSDT SSDT
> acpi0: wakeup devices SPB2(S4) GEC_(S4) USB0(S3) USB4(S3) P2P_(S5)
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpihpet0 at acpi0: 14318180 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD C-60 APU with Radeon(tm) HD Graphics, 998.34 MHz
> cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
> cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 
> 64b/line 16-way L2 cache
> cpu0: 8 4MB entries fully associative
> cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: TSC frequency 998343360 Hz
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 199MHz
> cpu0: mwait min=64, max=64, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: AMD C-60 APU with Radeon(tm) HD Graphics, 997.51 MHz
> cpu1: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
> cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 
> 64b/line 16-way L2 cache
> cpu1: 8 4MB entries fully associative
> cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 21, 24 pins
> acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (PB2_)
> acpiprt2 at acpi0: bus -1 (PB3_)
> acpiprt3 at acpi0: bus -1 (PB4_)
> acpiprt4 at acpi0: bus -1 (PB5_)
> acpiprt5 at acpi0: bus -1 (PB6_)
> acpiprt6 at acpi0: bus -1 (PB7_)
> acpiprt7 at acpi0: bus 2 (SPB0)
> acpiprt8 at acpi0: bus -1 (SPB1)
> acpiprt9 at acpi0: bus 6 (SPB2)
> acpiprt10 at acpi0: bus 7 (SPB3)
> acpiprt11 at acpi0: bus 1 (P2P_)
> acpiec0 at acpi0
> acpicpu0 at acpi0: C2(0@100 io@0xf800), C1(@1 halt!), PSS
> acpicpu1 at acpi0: C2(0@100 io@0xf800), C1(@1 halt!), PSS
> acpibtn0 at acpi0: PWRB
> acpibtn1 at acpi0: SLPB
> "PNP0303" at acpi0 not configured
> "ETD0500" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> acpibat0 at acpi0: BAT1 model "13848633228217409" serial 417d type Lion oem 
> "Sanyo "
> acpiac0 at acpi0: AC unit online
> acpibtn2 at acpi0: LID_
> acpivideo0 at acpi0: VGA_
> acpivout0 at acpivideo0: LCD_
> acpivideo1 at acpi0: VGA_
> acpivideo2 at acpi0: VGA_
> cpu0: 998 MHz: speeds: 1000 800 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
> radeondrm0 at pci0 dev 1 function 0 "ATI Radeon HD 6290" rev 0x00
> drm0 at radeondrm0
> radeondrm0: msi
> azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
> azalia0: no supported codecs
> ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x00: apic 4 int 19, 
> AHCI 1.2
> ahci0: port 0: 3.0Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD3200BPVT-2, 01.0> SCSI3 0/direct 
> fixed naa.50014ee25be3a7df
> sd0: 305245MB, 512 bytes/sector, 625142448 sectors
> ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 4 int 18, 
> version 1.0, legacy support
> ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 4 int 17
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 
> addr 1
> ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 4 int 18, 
> version 1.0, legacy support
> ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 4 int 17
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00 
> addr 1
> piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling
> iic0 at piixpm0
> spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
> azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 4 int 16
> azalia1: codecs: Conexant/0x506c
> audio0 at azalia1
> pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
> ppb0 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
> pci1 at ppb0 bus 1
> ppb1 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00: msi
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 21 function 2 "ATI SB800 PCIE" rev 0x00
> pci3 at ppb2 bus 6
> alc0 at pci3 dev 0 function 0 "Attansic Technology L2C" rev 0xc1: msi, 
> address dc:0e:a1:54:ba:16
> atphy0 at alc0 phy 0: F2 10/100 PHY, rev. 5
> ppb3 at pci0 dev 21 function 3 "ATI SB800 PCIE" rev 0x00
> pci4 at ppb3 bus 7
> "Atheros AR9485" rev 0x01 at pci4 dev 0 function 0 not configured
> pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
> pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
> pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
> km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
> pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
> pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
> pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
> pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
> usb2 at ohci0: USB revision 1.0
> uhub2 at usb2 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 
> addr 1
> usb3 at ohci1: USB revision 1.0
> uhub3 at usb3 configuration 1 interface 0 "ATI OHCI root hub" rev 1.00/1.00 
> addr 1
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> pms0 at pckbc0 (aux slot)
> wsmouse0 at pms0 mux 0
> pms0: Elantech Touchpad, version 2, firmware 0x40213
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> vmm at mainbus0 not configured
> uvideo0 at uhub1 port 1 configuration 1 interface 0 "Chicony Electronics Co., 
> Ltd. WebCam" rev 2.00/82.57 addr 2
> video0 at uvideo0
> umass0 at uhub1 port 2 configuration 1 interface 0 "Generic USB2.0-CRW" rev 
> 2.00/38.82 addr 3
> umass0: using SCSI over Bulk-Only
> scsibus2 at umass0: 2 targets, initiator 0
> sd1 at scsibus2 targ 1 lun 0: <Generic-, Multi-Card, 1.00> SCSI0 0/direct 
> removable serial.0bda0138516388200000
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on sd0a (c7bc81e8706c270b.a) swap on sd0b dump on sd0b
> radeondrm0: 1366x768, 32bpp
> wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> 
> usbdevs:
> Controller /dev/usb0:
> addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), 
> ATI(0x1002), rev 1.00
>  port 1 powered
>  port 2 powered
>  port 3 powered
>  port 4 powered
>  port 5 powered
> Controller /dev/usb1:
> addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), 
> ATI(0x1002), rev 1.00
>  port 1 addr 2: high speed, power 500 mA, config 1, WebCam(0xb209), Chicony 
> Electronics Co., Ltd.(0x04f2), rev 82.57
>  port 2 addr 3: high speed, power 500 mA, config 1, USB2.0-CRW(0x0138), 
> Generic(0x0bda), rev 38.82, iSerialNumber 20090516388200000
>  port 3 powered
>  port 4 powered
>  port 5 powered
> Controller /dev/usb2:
> addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), 
> ATI(0x1002), rev 1.00
>  port 1 powered
>  port 2 powered
>  port 3 powered
>  port 4 powered
>  port 5 powered
> Controller /dev/usb3:
> addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), 
> ATI(0x1002), rev 1.00
>  port 1 powered
>  port 2 powered
>  port 3 powered
>  port 4 powered
>  port 5 powered
> 

Reply via email to