Hi,

As soon as dlg@ sent the patch to tech@ for sys/net/if.c (1.408) and
sys/dev/pci/if_de.c (1.127), a few days ago, I wanted to test them
before the actual commit, but was not able until today. And it bit me
the hard way, my Hyper-V VMs don't boot anymore with the lastest kernel
from today, it crashes as soon as "starting network" appears in the
screen (I know it's not real hardware, and I still can boot from a
previous kernel, so it's not critical, nevertheless you should be aware
of this).

crash, trace, ps, registers, and dmesg from kernel built on 15/11 below:

=== crash ===
panic: kernel diagnostic assertion "pl->head == m" failed: file
"../../../../net
/if.c", line 2819
Stopped at      Debugger+0x9:   leave
        TID     PID     UID     PRFLAGS PFLAGS  CPU     COMMAND
*       1038    1038    0       0x3     0       0       ifconfig
Debugger() at Debugger+0x9
panic() at panic+0xfe
__assert() at __assert+0x25
priq_enq() at priq_enq
ifq_deq_commit() at ifq_deq_commit+0x1c
tulip_txput() at tulip_txput+0x4b9
tulip_ifstart() at tulip_ifstart+0x50
tulip_intr_handler() at tulip_intr_handler+0x165
tulip_intr_normal() at tulip_intr_normal+0x25
intr_handler() at intr_handler+0x28
Xintr_legacy11() at Xintr_legacy11+0xe1
--- interrupt ---
Xspllower() at Xspllower+0xc
tulip_ifioctl() at tulip_ifioctl+0x78
in_addmulti() at in_addmulti+0x112
end trace frame: 0xffff800014c1ec20, count: 0

=== trace ===
ddb> trace
Debugger() at Debugger+0x9
panic() at panic+0xfe
__assert() at __assert+0x25
priq_enq() at priq_enq
ifq_deq_commit() at ifq_deq_commit+0x1c
tulip_txput() at tulip_txput+0x4b9
tulip_ifstart() at tulip_ifstart+0x50
tulip_intr_handler() at tulip_intr_handler+0x165
tulip_intr_normal() at tulip_intr_normal+0x25
intr_handler() at intr_handler+0x28
Xintr_legacy11() at Xintr_legacy11+0xe1
--- interrupt ---
Xspllower() at Xspllower+0xc
tulip_ifioctl() at tulip_ifioctl+0x78
in_addmulti() at in_addmulti+0x112
in_ifinit() at in_ifinit+0x2e5
in_control() at in_control+0x445
ifioctl() at ifioctl+0x175
sys_ioctl() at sys_ioctl+0x196
syscall() at syscall+0x19b
--- syscall (number 54) ---
end of kernel
end trace frame: 0x19fce484fa80, count: -19
0x19fce4621d3a:

=== ps ===
ddb> ps
TID             PPID    PGRP    UID     S       FLAGS           WAIT            
COMMAND
*1038   10767   8133    0       7       0x3                                     
        ifconfig
10767   8133    8133    0       3       0X10008B        pause           sh
8133    1               8133    0       3       0X10008B        pause           
sh
6825    0               0               0       2       0x14200                 
                zerothread
1491    0               0               0       3       0x14200         
aiodoned        aiodoned
10641   0               0               0       3       0x14200         syncer  
        update
20104   0               0               0       3       0x14200         cleaner 
        cleaner
18041   0               0               0       3       0x14200         reaper  
        reaper
28270   0               0               0       3       0x14200         
pgdaemon        pagedaemon
12278   0               0               0       3       0x14200         bored   
        crypto
22174   0               0               0       3       0x14200         pftm    
        pfpurge
17720   0               0               0       2       0x14200                 
                softnet
31682   0               0               0       3       0x14200         bored   
        systqmp
3605    0               0               0       3       0x14200         bored   
        systq
6489    0               0               0       3       0x40014200              
                idle0
1               0               1               0       3       0x82            
wait            init
0               -1              0               0       3       0x10200         
scheduler       swapper

=== registers ===
ddb> show registers
rdi                     0x1
rsi                     0x5
rbp                     0xffff800014c1e730
rbx                     0xffffffff81705870      systqmp+0x2080
rdx                     0
rcx                     0x296
rax                     0x1
r8                      0xffff800014c1e650
r9                      0x1
r10                     0
r11                     0xffff800014c1e4e8
r12                     0x100
r13                     0xffff800014c1e740
r14                     0xffffff0003a52020
r15                     0xffffff0003a52030
rip                     0xffffffff81341639      Debugger+0x9
cs                      0x8
rflags          0x282
rsp                     0xffff800014c1e720
ss                      0x10
Debugger+0x9:   leave

=== dmesg ===
OpenBSD 5.8-current (GENERIC) #1498: Sun Nov 15 23:24:05 MST 2015
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1056899072 (1007MB)
avail mem = 1020817408 (973MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf8ec0 (216 entries)
bios0: vendor American Megatrends Inc. version "090006" date 05/23/2012
bios0: Microsoft Corporation Virtual Machine
acpi at bios0 not configured
mpbios at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD FX(tm)-8350 Eight-Core Processor, 2412.38 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,XOP,FMA4,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
pvbus0 at mainbus0: Hyper-V 6.3.9600
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82443BX" rev 0x03
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x01
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <Virtual HD>
wd0: 128-sector PIO, LBA48, 51200MB, 104857600 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <Msft, Virtual CD/ROM, 1.0> ATAPI 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: SMBus
disabled
vga1 at pci0 dev 8 function 0 "Microsoft VGA" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
de0 at pci0 dev 10 function 0 "DEC 21140" rev 0x20, 21140A pass 2.0: irq
11, address 00:15:5d:5b:b1:19
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
fd1 at fdc0 drive 1: density unknown
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm at mainbus0 not configured
nvram: invalid checksum
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd0a (dac9d820054c1818.a) swap on wd0b dump on wd0b

Reply via email to