NetBSD-Bugs archive

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

kern/53140: Setting up etherip(4) results in panic



>Number:         53140
>Category:       kern
>Synopsis:       Setting up etherip(4) results in panic
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 28 17:10:00 +0000 2018
>Originator:     Hauke Fath
>Release:        NetBSD 8.0_BETA
>Organization:
Technische Universitaet Darmstadt
>Environment:
	
	
System: NetBSD 8.0_BETA (FIFI-$Revision$) #3: Mon Mar 26 11:29:06 CEST 2018
        hf@Hochstuhl:/var/obj/netbsd-builds/8/amd64/sys/arch/amd64/compile/FIFI
Architecture: x86_64
Machine: amd64
>Description:

	The machine in question is supposed to bridge  ethernet
	segments with several VLANs.

	The etherip(4) driver was added to the kernel config (it is
	only in ALL, not in GENERIC), and etherip0 was configured for
	tunneling to a remote machine, then added to a bridge together
	with a local NIC (wm1).

	While booting to multi-user, the machine panics with 

panic: kernel diagnostic assertion "ifp->if_percpuq == NULL" failed: file "/public/netbsd-8/sys/net/if.c", line 1103

	The full boot log:


8085032+140824+1956328 [409985+539448+369105]=0xb42688
WARNING: couldn't open /var/db/entropy-file
WARNING: 1 module failed to load
kernel text is mapped with 4 large pages and 0 normal pages
ksyms: checking .text
ksyms: checking .rodata
ksyms: checking .eh_frame
ksyms: checking link_set_modules
ksyms: checking link_set_evcnts
ksyms: checking link_set_sysctl_funcs
ksyms: checking link_set_ieee80211_funcs
ksyms: checking link_set_domains
ksyms: checking link_set_sdt_argtypes_set
ksyms: checking link_set_sdt_probes_set
ksyms: checking link_set_sdt_providers_set
ksyms: checking link_set_dkwedge_methods
ksyms: checking link_set_prop_linkpools
ksyms: checking .data
ksyms: checking .data.cacheline_aligned
ksyms: checking .data.read_mostly
ksyms: checking .bss
ksyms: checking .note.netbsd.ident
ksyms: checking .ident
ksyms: checking .comment
ksyms: checking .SUNW_ctf
Found CTF at 0xffffffff80c007f0, size 0x64181
Loaded initial symtab at 0xffffffff80c64978, strtab at 0xffffffff80ce84b0, # ent
ries 22477
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 8.0_BETA (FIFI-$Revision$) #3: Mon Mar 26 11:29:06 CEST 2018
        hf@Hochstuhl:/var/obj/netbsd-builds/8/amd64/sys/arch/amd64/compile/FIFI
total memory = 4094 MB
avail memory = 3963 MB
mainbus0 (root)
ACPI: RSDP 0x00000000000FA1D0 000024 (v02 ACPIAM)
ACPI: XSDT 0x00000000DFEA0100 000084 (v01 SMCI            20160318 MSFT 00000097)
ACPI: FACP 0x00000000DFEA0290 0000F4 (v04 031816 FACP1123 20160318 MSFT 00000097)
ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe0Block: 64/32 (20170303/tbfadt-642)
ACPI: DSDT 0x00000000DFEA0600 005699 (v02 1BA11  1BA11000 00000000 INTL 20051117)
ACPI: FACS 0x00000000DFEB2000 000040
ACPI: FACS 0x00000000DFEB2000 000040
ACPI: APIC 0x00000000DFEA0390 0000A4 (v02 031816 APIC1123 20160318 MSFT 00000097)
ACPI: MCFG 0x00000000DFEA0440 00003C (v01 031816 OEMMCFG  20160318 MSFT 00000097)
ACPI: OEMB 0x00000000DFEB2040 000075 (v01 031816 OEMB1123 20160318 MSFT 00000097)
ACPI: HPET 0x00000000DFEAA600 000038 (v01 031816 OEMHPET  20160318 MSFT 00000097)
ACPI: IVRS 0x00000000DFEAA640 0000C0 (v01 AMD    RD890S   00202031 AMD  00000000)
ACPI: SRAT 0x00000000DFEAA700 000108 (v02 AMD    AGESA    00000001 AMD  00000001)
ACPI: SSDT 0x00000000DFEAA810 000F7E (v01 A M I  POWERNOW 00000001 AMD  00000001)
ACPI: EINJ 0x00000000DFEAB790 000130 (v01 AMIER  AMI_EINJ 20160318 MSFT 00000097)
ACPI: BERT 0x00000000DFEAB920 000030 (v01 AMIER  AMI_BERT 20160318 MSFT 00000097)
ACPI: ERST 0x00000000DFEAB950 000210 (v01 AMIER  AMI_ERST 20160318 MSFT 00000097)
ACPI: HEST 0x00000000DFEABB60 0000A8 (v01 AMIER  ABC_HEST 20160318 MSFT 00000097)
ACPI: Executed 2 blocks of module-level executable AML code
ACPI: 2 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 0
ioapic1 at mainbus0 apid 1
cpu0 at mainbus0 apid 0
cpu0: AMD Opteron(tm) Processor 4180, id 0x100f81
cpu0: package 0, core 0, smt 0
cpu1 at mainbus0 apid 1
cpu1: AMD Opteron(tm) Processor 4180, id 0x100f81
cpu1: package 0, core 1, smt 0
cpu2 at mainbus0 apid 2
cpu2: AMD Opteron(tm) Processor 4180, id 0x100f81
cpu2: package 0, core 2, smt 0
cpu3 at mainbus0 apid 3
cpu3: AMD Opteron(tm) Processor 4180, id 0x100f81
cpu3: package 0, core 3, smt 0
cpu4 at mainbus0 apid 4
cpu4: AMD Opteron(tm) Processor 4180, id 0x100f81
cpu4: package 0, core 4, smt 0
cpu5 at mainbus0 apid 5
cpu5: AMD Opteron(tm) Processor 4180, id 0x100f81
cpu5: package 0, core 5, smt 0
acpi0 at mainbus0: Intel ACPICA 20170303
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
NMEM (PNP0C02) at acpi0 not configured
UMEM (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
sysbeep0 at pcppi1
SIOR (PNP0C02) at acpi0 not configured
OMSC (PNP0C02) at acpi0 not configured
RMSC (PNP0C02) at acpi0 not configured
UAR1 (PNP0501) at acpi0 not configured
UAR2 (PNP0501) at acpi0 not configured
PCIE (PNP0C02) at acpi0 not configured
RMEM (PNP0C01) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
attimer1: attached to pcppi1
ipmi0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0: vendor 1002 product 5a13 (rev. 0x02)
vendor 1002 product 5a23 (IOMMU system) at pci0 dev 0 function 2 not configured
ppb0 at pci0 dev 3 function 0: vendor 1002 product 5a17 (rev. 0x00)
ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x8 @ 5.0GT/s
ppb0: link is x4 @ 2.5GT/s
pci1 at ppb0 bus 1
wm0 at pci1 dev 0 function 0: Intel PRO/1000 PT (82571EB) (rev. 0x06)
wm0: interrupting at ioapic1 pin 4
wm0: Ethernet address 00:1b:21:87:b4:06
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm1 at pci1 dev 0 function 1: Intel PRO/1000 PT (82571EB) (rev. 0x06)
wm1: interrupting at ioapic1 pin 5
wm1: Ethernet address 00:1b:21:87:b4:07
igphy1 at wm1 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb1 at pci0 dev 9 function 0: vendor 1002 product 5a1c (rev. 0x00)
ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x2 @ 5.0GT/s
ppb1: link is x1 @ 2.5GT/s
pci2 at ppb1 bus 2
wm2 at pci2 dev 0 function 0: Intel i82574L (rev. 0x00)
wm2: interrupting at ioapic1 pin 24
wm2: Ethernet address 00:25:90:13:b6:8c
makphy0 at wm2 phy 1: Marvell 88E1149 Gigabit PHY, rev. 1
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb2 at pci0 dev 10 function 0: vendor 1002 product 5a1d (rev. 0x00)
ppb2: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x2 @ 5.0GT/s
ppb2: link is x1 @ 2.5GT/s
pci3 at ppb2 bus 3
wm3 at pci3 dev 0 function 0: Intel i82574L (rev. 0x00)
wm3: interrupting at ioapic1 pin 23
wm3: Ethernet address 00:25:90:13:b6:8d
makphy1 at wm3 phy 1: Marvell 88E1149 Gigabit PHY, rev. 1
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ahcisata0 at pci0 dev 17 function 0: vendor 1002 product 4391 (rev. 0x00)
ahcisata0: interrupting at ioapic0 pin 22
ahcisata0: AHCI revision 1.10, 4 ports, 32 slots, CAP 0xf722ff83<CCCS,PSC,SSC,PM
D,SPM,ISS=0x2=Gen2,SCLO,SAL,SALP,SMPS,SSNTF,SNCQ,S64A>
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
atabus2 at ahcisata0 channel 2
atabus3 at ahcisata0 channel 3
ohci0 at pci0 dev 18 function 0: vendor 1002 product 4397 (rev. 0x00)
csr: 02a00117
ohci0: interrupting at ioapic0 pin 16
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ohci1 at pci0 dev 18 function 1: vendor 1002 product 4398 (rev. 0x00)
csr: 02a00117
ohci1: interrupting at ioapic0 pin 16
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
ehci0 at pci0 dev 18 function 2: vendor 1002 product 4396 (rev. 0x00)
ehci0: interrupting at ioapic0 pin 17
ehci0: dropped intr workaround enabled
ehci0: 2 companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
ohci2 at pci0 dev 19 function 0: vendor 1002 product 4397 (rev. 0x00)
csr: 02a00117
ohci2: interrupting at ioapic0 pin 18
ohci2: OHCI version 1.0, legacy support
usb3 at ohci2: USB revision 1.0
ohci3 at pci0 dev 19 function 1: vendor 1002 product 4398 (rev. 0x00)
csr: 02a00117
ohci3: interrupting at ioapic0 pin 18
ohci3: OHCI version 1.0, legacy support
usb4 at ohci3: USB revision 1.0
ehci1 at pci0 dev 19 function 2: vendor 1002 product 4396 (rev. 0x00)
ehci1: interrupting at ioapic0 pin 19
ehci1: dropped intr workaround enabled
ehci1: 2 companion controllers, 3 ports each: ohci2 ohci3
usb5 at ehci1: USB revision 2.0
vendor 1002 product 4385 (SMBus serial bus, revision 0x3d) at pci0 dev 20 functi
on 0 not configured
vendor 1002 product 439c (IDE mass storage, interface 0x8a) at pci0 dev 20 funct
ion 1 not configured
pcib0 at pci0 dev 20 function 3: vendor 1002 product 439d (rev. 0x00)
ppb3 at pci0 dev 20 function 4: vendor 1002 product 4384 (rev. 0x00)
pci4 at ppb3 bus 4
vga0 at pci4 dev 4 function 0: vendor 102b product 0532 (rev. 0x0a)
wsdisplay0 at vga0 kbdmux 1
drm at vga0 not configured
ohci4 at pci0 dev 20 function 5: vendor 1002 product 4399 (rev. 0x00)
csr: 02a00117
ohci4: interrupting at ioapic0 pin 18
ohci4: OHCI version 1.0, legacy support
usb6 at ohci4: USB revision 1.0
pchb1 at pci0 dev 24 function 0: vendor 1022 product 1200 (rev. 0x00)
pchb2 at pci0 dev 24 function 1: vendor 1022 product 1201 (rev. 0x00)
pchb3 at pci0 dev 24 function 2: vendor 1022 product 1202 (rev. 0x00)
amdnb_misc0 at pci0 dev 24 function 3: AMD NB Misc Configuration
amdtemp0 at amdnb_misc0: AMD CPU Temperature Sensors (Family10h)
pchb4 at pci0 dev 24 function 4: vendor 1022 product 1204 (rev. 0x00)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
acpicpu0 at cpu0: ACPI CPU
acpicpu1 at cpu1: ACPI CPU
acpicpu2 at cpu2: ACPI CPU
acpicpu3 at cpu3: ACPI CPU
acpicpu4 at cpu4: ACPI CPU
acpicpu5 at cpu5: ACPI CPU
ah_attach: ah_max_authsize=32
uhub0 at usb0: vendor 1002 (0x1002) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb2: vendor 1002 (0x1002) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub2 at usb3: vendor 1002 (0x1002) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub3 at usb1: vendor 1002 (0x1002) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub4 at usb5: vendor 1002 (0x1002) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub5 at usb4: vendor 1002 (0x1002) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
ahcisata0 port 1: device present, speed: 3.0Gb/s
uhub6 at usb6: vendor 1002 (0x1002) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
ahcisata0 port 0: device present, speed: 3.0Gb/s
ehci1: handing over full speed device on port 5 to ohci3
wd0 at atabus0 drive 0
wd0: <ST9160511NS>
wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd1 at atabus1 drive 0
wd1: <ST9160511NS>
wd1: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
WARNING: findroot: double match for boot device (wd0, wd1)
Component on: wd0e: 312579760
   Row: 0 Column: 0 Num Rows: 1 Num Columns: 2
   Version: 2 Serial Number: 20170420 Mod Counter: 483
   Clean: Yes Status: 0
   sectPerSU: 128 SUsPerPU: 1 SUsPerRU: 1
   RAID Level: 1  blocksize: 512 numBlocks: 312579584
   Autoconfig: Yes
   Root partition: Soft
   Last configured as: raid0
Component on: wd1e: 312579760
   Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
   Version: 2 Serial Number: 20170420 Mod Counter: 483
   Clean: Yes Status: 0
   sectPerSU: 128 SUsPerPU: 1 SUsPerRU: 1
   RAID Level: 1  blocksize: 512 numBlocks: 312579584
   Autoconfig: Yes
   Root partition: Soft
   Last configured as: raid0
Found: wd0e at 0
Found: wd1e at 1
RAID autoconfigure
Configuring raid0:
Starting autoconfiguration of RAID set...
Looking for 0 in autoconfig
Found: wd0e at 0
Looking for 1 in autoconfig
Found: wd1e at 1
raid0: allocating 20 buffers of 65536 bytes.
raid0: RAID Level 1
raid0: Components: /dev/wd0e /dev/wd1e
raid0: Total Sectors: 312579584 (152626 MB)
boot device: raid0
root on raid0a dumps on raid0b
dump_misc_init: max_paddr = 0x120000000
mountroot: trying ffs...
root file system type: ffs
kern.module.path=/stand/amd64/8.0/modules
init: copying out path `/sbin/init' 11
Wed Mar 28 17:43:57 CEST 2018
uhidev0 at uhub5 port 2 configuration 1 interface 0
uhidev0: Winbond Electronics Corp (0x557) Hermon USB hidmouse Device (0x2221), r
ev 1.10/0.01, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub5 port 2 configuration 1 interface 1
uhidev1: Winbond Electronics Corp (0x557) Hermon USB hidmouse Device (0x2221), rev 1.10/0.01, addr 2, iclass 3/1
ukbd0 at uhidev1: 8 Variable keys, 6 Array codes
Starting root file system check:
/dev/rraid0a: file system is clean; not checking
swapctl: adding /dev/raid0b as swap device at priority 0
Starting file system checks:
wskbd0 at ukbd0 mux 1
/dev/rraid0e: file system is clean; not checking
Loaded entropy from /var/db/entropy-file.
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
Hostname: Mittagskogel
IPv6 mode: host
Configuring network interfaces: wm0wm0: link state DOWN (was UNKNOWN)
 wm1wm1: link state DOWN (was UNKNOWN)
 etherip0 bridge0.
Adding interface aliases:.
add net default: gateway 130.83.78.2
Waiting for DAD to complete for statically configured addresses...
wm0: link state UP (was DOWN)
wm1: link state UP (was DOWN)
Building databases: dev, utmp, utmpx.
Keyboard encoding -> de.nodead.metaesc
Starting syslogd.
Mounting all file systems...
Clearing temporary files.
Checking quotas: done.
panic: kernel diagnostic assertion "ifp->if_percpuq == NULL" failed: file "/public/netbsd-8/sys/net/if.c", line 1103
cpu0: Begin traceback...
vpanic() at netbsd:vpanic+0x140
ugen_get_alt_index() at netbsd:ugen_get_alt_index
if_input() at netbsd:if_input+0x77
ip_etherip_input() at netbsd:ip_etherip_input+0xf4
ipintr() at netbsd:ipintr+0xa28
softint_dispatch() at netbsd:softint_dispatch+0xd3
DDB lost frame for netbsd:Xsoftintr+0x4f, trying 0xffff80004855cff0
Xsoftintr() at netbsd:Xsoftintr+0x4f
--- interrupt ---
0:
cpu0: End traceback...

dumping to dev 18,1 (offset=12586703, size=1048102):
dump Skipping crash dump on recursive panic
panic: wddump: polled command has been queued
cpu0: Begin traceback...
vpanic() at netbsd:vpanic+0x140


	
>How-To-Repeat:

	Set up a tunnel with etherip(4), bridge it to local NIC. I
	have not yet figured out whether setting up etherip triggers
	the panic, or adding the device to the bridge.

	
>Fix:
	Yes, please.

	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index