>Synopsis: netstat -g panic
>Category: kernel
>Environment:
System : OpenBSD 6.0
Details : OpenBSD 6.0-current (GENERIC.MP) #163: Sun Feb 5
13:55:12 MST 2017
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
>Description:
# netstat -g
Virtual Interface Table is empty
uvm_fault(0xffffff0019e75200, 0x0, 0, 2) -> e
kernel: page fault trap, code=0
Stopped at L1: repe stosb %es:(%rdi)
ddb{0}> trace
L1() at L1
mrt_sysctl_mfc() at mrt_sysctl_mfc+0x3a
net_sysctl() at net_sysctl+0xf2
sys_sysctl() at sys_sysctl+0x213
syscall() at syscall+0x27b
--- syscall (number 202) ---
end of kernel
end trace frame: 0x4, count: -4
0x141a8cced95a:
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
*85700 85746 33600 0 7 0x3 netstat
33600 291009 1 0 3 0x10008b pause ksh
21581 97085 1 0 3 0x100098 poll cron
32983 398116 1 110 3 0x100090 poll sndiod
84660 163013 1 99 3 0x100090 poll sndiod
64562 221307 57801 95 3 0x100092 kqread smtpd
14338 499079 57801 103 3 0x100092 kqread smtpd
8105 463257 57801 95 3 0x100092 kqread smtpd
63476 445261 57801 95 3 0x100092 kqread smtpd
40367 411322 57801 95 3 0x100092 kqread smtpd
18654 94103 57801 95 3 0x100092 kqread smtpd
57801 399483 1 0 3 0x100080 kqread smtpd
78335 142990 63734 75 3 0x100092 poll bgpd
91195 181353 63734 75 3 0x100092 poll bgpd
63734 507122 1 0 3 0x80 poll bgpd
63864 393367 28854 90 3 0x90 kqread ospf6d
6769 69787 28854 90 3 0x90 kqread ospf6d
28854 221895 1 0 3 0x80 kqread ospf6d
74441 168758 85070 85 3 0x100090 kqread ospfd
73160 223643 85070 85 3 0x100090 kqread ospfd
85070 101412 1 0 3 0x80 kqread ospfd
30708 310860 95849 88 3 0x90 kqread ripd
89383 98843 95849 88 3 0x90 kqread ripd
95849 76400 1 0 3 0x80 kqread ripd
86620 373308 1 0 3 0x80 select sshd
88105 523464 15727 83 3 0x100092 poll ntpd
15727 248843 37436 83 3 0x100092 poll ntpd
37436 20413 1 0 3 0x100080 poll ntpd
80289 153396 16826 74 3 0x100090 bpf pflogd
16826 479945 1 0 3 0x80 netio pflogd
57083 68269 3777 73 2 0x100090 syslogd
3777 134323 1 0 3 0x100082 netio syslogd
54519 390704 0 0 2 0x14200 zerothread
58399 426234 0 0 3 0x14200 aiodoned aiodoned
77089 181808 0 0 3 0x14200 syncer update
59388 415462 0 0 3 0x14200 cleaner cleaner
85669 22077 0 0 3 0x14200 reaper reaper
618 501459 0 0 3 0x14200 pgdaemon pagedaemon
71743 193630 0 0 3 0x14200 bored bfd
9264 433383 0 0 3 0x14200 bored crynlk
20220 89095 0 0 3 0x14200 bored crypto
22439 86015 0 0 3 0x14200 pftm pfpurge
89908 306300 0 0 3 0x14200 bored softnet
68912 260482 0 0 3 0x14200 bored systqmp
99634 27737 0 0 3 0x14200 bored systq
72779 137583 0 0 3 0x40014200 bored softclock
20928 261545 0 0 3 0x40014200 idle0
62533 406316 0 0 3 0x14200 bored sbar
1 182058 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show reg
rdi 0
rsi 0
rbp 0xffff80000e3fad40
rbx 0
rdx 0x2
rcx 0x2
rax 0
r8 0
r9 0
r10 0xffff80000e3fade0
r11 0
r12 0xffff80000e3fad10
r13 0xffffffff818e9bc0 inetdomain
r14 0x3
r15 0xffff80000e3fade4
rip 0xffffffff8131f85d L1
cs 0x8
rflags 0x10297 mptramp_longmode+0x1ef
rsp 0xffff80000e3fad08
ss 0x10
L1: repe stosb %es:(%rdi)
ddb{0}>
>How-To-Repeat:
Type netstat -g at the console.
>Fix:
Looks like more checks are needed in mrt_sysctl_mfc & friends.
dmesg:
OpenBSD 6.0-current (GENERIC.MP) #163: Sun Feb 5 13:55:12 MST 2017
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 520093696 (496MB)
avail mem = 499728384 (476MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0
acpi at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz, 2897.27 MHz
cpu0:
FPU,VME,DE,PSE,MSR,PAE,MCE,CX8,SEP,PGE,MCA,CMOV,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,HV,FSGSBASE,SMEP,ERMS
cpu0: smt 0, core 0, package 0
pvbus0 at mainbus0: OpenBSD
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "OpenBSD VMM PCI Host Bridge" rev 0x00
virtio0 at pci0 dev 1 function 0 "Qumranet Virtio RNG" rev 0x00
viornd0 at virtio0
virtio0: irq 3
virtio1 at pci0 dev 2 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk0 at virtio1
scsibus1 at vioblk0: 2 targets
sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd0: 1024MB, 512 bytes/sector, 2097152 sectors
virtio1: irq 5
virtio2 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio2: address fe:e1:ba:d1:94:55
virtio2: irq 7
virtio3 at pci0 dev 4 function 0 "Qumranet Virtio Network" rev 0x00
vio1 at virtio3: address fe:e1:ba:d1:94:56
virtio3: irq 9
virtio4 at pci0 dev 5 function 0 "OpenBSD VMM Control Interface" rev 0x00
vmmci0 at virtio4
virtio4: irq 10
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns8250, no fifo
com0: console
vmm at mainbus0 not configured
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (fedfb2a5b5dcc4ca.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
usbdevs:
usbdevs: no USB controllers found
pcidump:
Domain /dev/pci0:
0:0:0: OpenBSD VMM PCI Host Bridge
0x0000: Vendor ID: 0b5d Product ID: 0666
0x0004: Command: 0000 Status: 0000
0x0008: Class: 06 Subclass: 00 Interface: 00 Revision: 00
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR empty (00000000)
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 0b5d Product ID: 0000
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
0x0000: 06660b5d 00000000 06000000 00000000
0x0010: 00000000 00000000 00000000 00000000
0x0020: 00000000 00000000 00000000 00000b5d
0x0030: 00000000 00000000 00000000 00000000
0x0040: 00000000 00000000 00000000 00000000
0x0050: 00000000 00000000 00000000 00000000
0x0060: 00000000 00000000 00000000 00000000
0x0070: 00000000 00000000 00000000 00000000
0x0080: 00000000 00000000 00000000 00000000
0x0090: 00000000 00000000 00000000 00000000
0x00a0: 00000000 00000000 00000000 00000000
0x00b0: 00000000 00000000 00000000 00000000
0x00c0: 00000000 00000000 00000000 00000000
0x00d0: 00000000 00000000 00000000 00000000
0x00e0: 00000000 00000000 00000000 00000000
0x00f0: 00000000 00000000 00000000 00000000
0:1:0: Qumranet Virtio RNG
0x0000: Vendor ID: 1af4 Product ID: 1005
0x0004: Command: 0005 Status: 0000
0x0008: Class: 08 Subclass: 80 Interface: 00 Revision: 00
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR io addr: 0x00001000/0x1000
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 0b5d Product ID: 0004
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 03 Min Gnt: 00 Max Lat: 00
0x0000: 10051af4 00000005 08800000 00000000
0x0010: 00001001 00000000 00000000 00000000
0x0020: 00000000 00000000 00000000 00040b5d
0x0030: 00000000 00000000 00000000 00000103
0x0040: 00000001 00000000 00000000 00000000
0x0050: 00000010 00000000 00000000 00000000
0x0060: 00000000 80000000 7949606f 0000000d
0x0070: 00000000 00000000 00000000 00000000
0x0080: 00000000 00000000 00000000 00000000
0x0090: 00000000 00000000 00000000 00000000
0x00a0: 00000000 00000000 00000000 00000000
0x00b0: 00000000 00000000 00000000 00000000
0x00c0: 00000000 00000000 00000000 00000000
0x00d0: 00000000 00000000 00000000 00000000
0x00e0: 00000000 00000000 00000000 00000000
0x00f0: 00000000 00000000 00000000 00000000
0:2:0: Qumranet Virtio Storage
0x0000: Vendor ID: 1af4 Product ID: 1001
0x0004: Command: 0005 Status: 0000
0x0008: Class: 01 Subclass: 00 Interface: 00 Revision: 00
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR io addr: 0x00002000/0x1000
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 0b5d Product ID: 0002
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 05 Min Gnt: 00 Max Lat: 00
0x0000: 10011af4 00000005 01000000 00000000
0x0010: 00002001 00000000 00000000 00000000
0x0020: 00000000 00000000 00000000 00020b5d
0x0030: 00000000 00000000 00000000 00000105
0x0040: 00000001 00000000 00000000 00000000
0x0050: 00000010 00000000 00000000 00000000
0x0060: 00000000 50000000 7949606b 0000000d
0x0070: 00000000 00000000 00000000 00000000
0x0080: 00000000 00000000 00000000 00000000
0x0090: 00000000 00000000 7b7c680e 0000000d
0x00a0: 00000000 00000000 00000000 00000000
0x00b0: 00000000 00000000 00000000 00000000
0x00c0: 00000000 00000000 00000000 00000000
0x00d0: 00000000 00000000 00000000 00000000
0x00e0: 00000000 00000000 00000000 00000000
0x00f0: 00000000 00000000 00000000 00000000
0:3:0: Qumranet Virtio Network
0x0000: Vendor ID: 1af4 Product ID: 1000
0x0004: Command: 0005 Status: 0000
0x0008: Class: 08 Subclass: 80 Interface: 00 Revision: 00
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR io addr: 0x00003000/0x1000
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 0b5d Product ID: 0001
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 07 Min Gnt: 00 Max Lat: 00
0x0000: 10001af4 00000005 08800000 00000000
0x0010: 00003001 00000000 00000000 00000000
0x0020: 00000000 00000000 00000000 00010b5d
0x0030: 00000000 00000000 00000000 00000107
0x0040: 00000001 00000000 00000000 00000000
0x0050: 00000010 00000000 00000000 00000000
0x0060: 00000000 30000000 7949605d 0000000d
0x0070: 00000000 00000000 00000000 00000000
0x0080: 00000000 00000000 00000000 00000000
0x0090: 00000000 00000000 7c3d8242 0000000d
0x00a0: 00000000 00000000 00000000 00000000
0x00b0: 00000000 00000000 00000000 00000000
0x00c0: 00000000 00000000 00000000 00000000
0x00d0: 00000000 00000000 00000000 00000000
0x00e0: 00000000 00000000 00000000 00000000
0x00f0: 00000000 00000000 00000000 00000000
0:4:0: Qumranet Virtio Network
0x0000: Vendor ID: 1af4 Product ID: 1000
0x0004: Command: 0005 Status: 0000
0x0008: Class: 08 Subclass: 80 Interface: 00 Revision: 00
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR io addr: 0x00004000/0x1000
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 0b5d Product ID: 0001
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 09 Min Gnt: 00 Max Lat: 00
0x0000: 10001af4 00000005 08800000 00000000
0x0010: 00004001 00000000 00000000 00000000
0x0020: 00000000 00000000 00000000 00010b5d
0x0030: 00000000 00000000 00000000 00000109
0x0040: 00000001 00000000 00000000 00000000
0x0050: 00000010 00000000 00000000 00000000
0x0060: 00000000 30000000 7949605d 0000000d
0x0070: 00000000 00000000 00000000 00000000
0x0080: 00000000 00000000 00000000 00000000
0x0090: 00000000 e0000000 7c3d8242 0000000d
0x00a0: 00000000 00000000 00000000 00000000
0x00b0: 00000000 00000000 00000000 00000000
0x00c0: 00000000 00000000 00000000 00000000
0x00d0: 00000000 00000000 00000000 00000000
0x00e0: 00000000 00000000 00000000 00000000
0x00f0: 00000000 00000000 00000000 00000000
0:5:0: OpenBSD VMM Control Interface
0x0000: Vendor ID: 0b5d Product ID: 0777
0x0004: Command: 0005 Status: 0000
0x0008: Class: 07 Subclass: 80 Interface: 00 Revision: 00
0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00
0x0010: BAR io addr: 0x00005000/0x1000
0x0014: BAR empty (00000000)
0x0018: BAR empty (00000000)
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 0b5d Product ID: ffff
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
0x0000: 07770b5d 00000005 07800000 00000000
0x0010: 00005001 00000000 00000000 00000000
0x0020: 00000000 00000000 00000000 ffff0b5d
0x0030: 00000000 00000000 00000000 0000010a
0x0040: 00000001 00000000 00000000 00000000
0x0050: 00000010 00000000 00000000 00000000
0x0060: 00000000 50000000 79496055 0000000d
0x0070: 00000000 00000000 00000000 00000000
0x0080: 00000000 00000000 00000000 00000000
0x0090: 00000000 00000000 00000000 00000000
0x00a0: 00000000 00000000 00000000 00000000
0x00b0: 00000000 00000000 00000000 00000000
0x00c0: 00000000 00000000 00000000 00000000
0x00d0: 00000000 00000000 00000000 00000000
0x00e0: 00000000 00000000 00000000 00000000
0x00f0: 00000000 00000000 00000000 00000000
acpidump: