panic: receive 1: so 0xfffffd806f6fa190, so_type 3, sb_cc 208
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
492653 51767 0 0 0 1 syz-executor.1
*157728 51840 0 0 0 0K dhclient
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821e0f84) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f6fa190,0,ffff800020aad308,0,0,ffff800020aad214) at soreceive+0x16ec sys/kern/uipc_socket.c:823
soo_read(fffffd80720d17b8,ffff800020aad308,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a6c4e8,6,ffff800020aad308,0,ffff800020aad3f0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237
sys_read(ffff800020a6c4e8,ffff800020aad3a0,ffff800020aad3f0) at sys_read+0x83 sys/kern/sys_generic.c:157
syscall(ffff800020aad470) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020aad470) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff17f0, count: 7
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}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
receive 1: so 0xfffffd806f6fa190, so_type 3, sb_cc 208
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821e0f84) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f6fa190,0,ffff800020aad308,0,0,ffff800020aad214) at soreceive+0x16ec sys/kern/uipc_socket.c:823
soo_read(fffffd80720d17b8,ffff800020aad308,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a6c4e8,6,ffff800020aad308,0,ffff800020aad3f0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237
sys_read(ffff800020a6c4e8,ffff800020aad3a0,ffff800020aad3f0) at sys_read+0x83 sys/kern/sys_generic.c:157
syscall(ffff800020aad470) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020aad470) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff17f0, count: -8
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff800020aad050
rbx 0xffff800020aad100
rdx 0xffff800020a6c4e8
rcx 0
rax 0
r8 0xffffffff8162977f kprintf+0x16f
r9 0x1
r10 0x25
r11 0xefa8c0707a1f619e
r12 0x3000000008
r13 0xffff800020aad060
r14 0x100
r15 0x1
rip 0xffffffff81844358 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800020aad040
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (dhclient) pid=157728 stat=onproc
flags process=0 proc=0
pri=24, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xffff800020a6d5f8,0xffff800020a6c9d8
process=0xffff800020a80790 user=0xffff800020aa8000, vmspace=0xfffffd807f000730
estcpu=0, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
51767 492653 4879 0 7 0 syz-executor.1
51767 505595 4879 0 3 0x4000080 fsleep syz-executor.1
4879 203210 60520 0 2 0x482 syz-executor.1
8302 521444 60520 0 3 0x2 biowait syz-executor.0
60520 411294 15363 0 2 0x482 syz-fuzzer
60520 336786 15363 0 2 0x4000482 syz-fuzzer
60520 23722 15363 0 3 0x4000082 thrsleep syz-fuzzer
60520 109457 15363 0 3 0x4000082 thrsleep syz-fuzzer
60520 466145 15363 0 3 0x4000082 thrsleep syz-fuzzer
60520 33943 15363 0 3 0x4000082 thrsleep syz-fuzzer
60520 511035 15363 0 3 0x4000082 kqread syz-fuzzer
60520 306917 15363 0 3 0x4000082 thrsleep syz-fuzzer
60520 268587 15363 0 3 0x4000082 thrsleep syz-fuzzer
60520 51216 15363 0 3 0x4000082 thrsleep syz-fuzzer
15363 274920 2065 0 3 0x10008a pause ksh
2065 481116 4938 0 3 0x92 select sshd
61614 513742 1 0 3 0x100083 ttyin getty
4938 140074 1 0 3 0x80 select sshd
95906 29581 5353 74 3 0x100092 bpf pflogd
5353 1252 1 0 3 0x80 netio pflogd
21552 323190 2088 73 3 0x100090 kqread syslogd
2088 30141 1 0 3 0x100082 netio syslogd
14030 364374 1 77 3 0x100090 poll dhclient
*51840 157728 1 0 7 0 dhclient
40506 51533 0 0 3 0x14200 pgzero zerothread
81041 74136 0 0 3 0x14200 aiodoned aiodoned
24779 51449 0 0 3 0x14200 syncer update
24413 423638 0 0 3 0x14200 cleaner cleaner
77886 445931 0 0 3 0x14200 reaper reaper
33101 481651 0 0 3 0x14200 pgdaemon pagedaemon
25220 172145 0 0 3 0x14200 bored crynlk
22119 505711 0 0 3 0x14200 bored crypto
88721 326825 0 0 3 0x40014200 acpi0 acpi0
48785 459489 0 0 3 0x40014200 idle1
65388 167123 0 0 3 0x14200 bored softnet
42565 51016 0 0 3 0x14200 bored systqmp
35887 134251 0 0 3 0x14200 bored systq
34158 218889 0 0 3 0x40014200 bored softclock
12690 287352 0 0 3 0x40014200 idle0
9730 268512 0 0 3 0x14200 bored smr
1 13218 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 8302 (syz-executor.0) thread 0xffff800020a6c008 (521444)
exclusive rrwlock inode r = 0 (0xfffffd806ed935e8)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 rw_enter+0x453 sys/kern/kern_rwlock.c:309
#2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453
#3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140
#4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352
#5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392
#6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164
#7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:449
#8 domkdirat+0x121 sys/kern/vfs_syscalls.c:3058
#9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#10 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806b425098)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 rw_enter+0x453 sys/kern/kern_rwlock.c:309
#2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453
#3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602
#4 vn_lock+0x81 sys/kern/vfs_vnops.c:571
#5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419
#6 namei+0x63c sys/kern/vfs_lookup.c:249
#7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3043
#8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#9 Xsyscall+0x128
Process 51840 (dhclient) thread 0xffff800020a6c4e8 (157728)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82653868)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 solock+0x66 sys/kern/uipc_socket2.c:292
#2 soreceive+0x114 sys/kern/uipc_socket.c:731
#3 soo_read+0x53 sys/kern/sys_socket.c:70
#4 dofilereadv+0x1a1 sys/kern/sys_generic.c:237
#5 sys_read+0x83 sys/kern/sys_generic.c:157
#6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#7 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9480 6401K 7302K 78643K 10759 0
pcb 13 8K 8K 78643K 45 0
rtable 101 3K 3K 78643K 215 0
ifaddr 48 11K 11K 78643K 55 0
counters 43 33K 33K 78643K 43 0
ioctlops 0 0K 4K 78643K 1475 0
iov 0 0K 16K 78643K 7 0
mount 1 1K 1K 78643K 1 0
vnodes 1232 77K 77K 78643K 1264 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 1K 78643K 2 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 19 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1809 196K 290K 78643K 12766 0
file desc 5 13K 25K 78643K 106 0
sigio 0 0K 0K 78643K 2 0
proc 61 63K 83K 78643K 442 0
subproc 32 2K 2K 78643K 34 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 15 0
in_multi 29 1K 2K 78643K 55 0
ether_multi 1 0K 0K 78643K 3 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 37 175K 175K 78643K 37 0
exec 0 0K 1K 78643K 212 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 32K 78643K 1 0
newblk 1 0K 0K 78643K 1 0
VM swap 7 26K 26K 78643K 7 0
UVM amap 109 22K 38K 78643K 1273 0
UVM aobj 3 2K 2K 78643K 3 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 26 0
NDP 7 0K 0K 78643K 12 0
temp 74 3020K 3084K 78643K 2504 0
kqueue 3 4K 17K 78643K 21 0
SYN cache 2 16K 16K 78643K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp 64 7 0 0 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 21 0 19 1 0 1 1 0 8 0
rtentry 112 50 0 8 2 0 2 2 0 8 0
unpcb 120 105 0 95 2 0 2 2 0 8 1
syncache 264 4 0 4 1 1 0 1 0 8 0
tcpqe 32 633 0 633 1 1 0 1 0 8 0
tcpcb 544 56 0 52 1 0 1 1 0 8 0
inpcb 280 155 0 146 2 0 2 2 0 8 1
nd6 48 7 0 3 1 0 1 1 0 8 0
pkpcb 40 4 0 4 1 1 0 1 0 8 0
pfosfp 40 846 0 423 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfstitem 24 23 0 1 1 0 1 1 0 8 0
pfstkey 112 23 0 1 1 0 1 1 0 8 0
pfstate 328 23 0 1 2 0 2 2 0 8 0
pfrule 1360 21 0 16 2 1 1 2 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 212 0 40 13 0 13 13 0 8 0
art_table 32 213 0 40 2 0 2 2 0 8 0
art_node 16 49 0 10 1 0 1 1 0 8 0
semupl 112 2 0 2 1 0 1 1 0 8 1
semapl 112 17 0 7 1 0 1 1 0 8 0
shmpl 112 1 0 0 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 1513 0 105 46 0 46 46 0 8 0
ffsino 272 1513 0 105 94 0 94 94 0 8 0
nchpl 144 1883 0 266 61 0 61 61 0 8 0
uvmvnodes 72 1593 0 0 29 0 29 29 0 8 0
vnodes 208 1593 0 0 84 0 84 84 0 8 0
namei 1024 4896 0 4895 1 0 1 1 0 8 0
percpumem 16 32 0 0 1 0 1 1 0 8 0
vmpool 560 4 0 4 1 0 1 1 0 8 1
scxspl 192 5619 0 5618 8 5 3 7 0 8 2
plimitpl 152 17 0 9 1 0 1 1 0 8 0
sigapl 432 305 0 290 3 1 2 3 0 8 0
futexpl 56 1595 0 1594 1 0 1 1 0 8 0
knotepl 112 76 0 57 1 0 1 1 0 8 0
kqueuepl 144 30 0 28 1 0 1 1 0 8 0
pipelkpl 48 104 0 94 1 0 1 1 0 8 0
pipepl 120 208 0 189 2 1 1 2 0 8 0
fdescpl 496 306 0 290 3 0 3 3 0 8 0
filepl 152 1822 0 1721 6 0 6 6 0 8 2
lockfpl 104 19 0 18 1 0 1 1 0 8 0
lockfspl 48 7 0 6 1 0 1 1 0 8 0
sessionpl 112 18 0 7 1 0 1 1 0 8 0
pgrppl 48 18 0 7 1 0 1 1 0 8 0
ucredpl 96 112 0 103 1 0 1 1 0 8 0
zombiepl 144 290 0 290 1 0 1 1 0 8 1
processpl 960 321 0 290 5 0 5 5 0 8 1
procpl 624 513 0 472 4 0 4 4 0 8 0
sockpl 400 285 0 266 6 0 6 6 0 8 4
mcl64k 65536 1 0 0 1 0 1 1 0 8 0
mcl16k 16384 1 0 0 1 0 1 1 0 8 0
mcl12k 12288 1 0 0 1 0 1 1 0 8 0
mcl9k 9216 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 3 0 0 1 0 1 1 0 8 0
mcl2k 2048 268 0 0 33 0 33 33 0 8 0
mtagpl 80 10 0 0 1 0 1 1 0 8 0
mbufpl 256 288 0 0 17 0 17 17 0 8 0
bufpl 280 4212 0 174 289 0 289 289 0 8 0
anonpl 16 50195 0 33755 84 1 83 83 0 124 15
amapchunkpl 152 1711 0 1559 20 0 20 20 0 158 13
amappl16 192 1743 0 853 57 0 57 57 0 8 12
amappl15 184 9 0 7 1 0 1 1 0 8 0
amappl14 176 38 0 34 2 1 1 1 0 8 0
amappl13 168 25 0 24 1 0 1 1 0 8 0
amappl12 160 11 0 9 2 1 1 1 0 8 0
amappl11 152 74 0 56 1 0 1 1 0 8 0
amappl10 144 19 0 13 1 0 1 1 0 8 0
amappl9 136 421 0 417 1 0 1 1 0 8 0
amappl8 128 353 0 329 1 0 1 1 0 8 0
amappl7 120 119 0 108 1 0 1 1 0 8 0
amappl6 112 23 0 20 1 0 1 1 0 8 0
amappl5 104 186 0 171 1 0 1 1 0 8 0
amappl4 96 542 0 504 2 1 1 2 0 8 0
amappl3 88 143 0 135 1 0 1 1 0 8 0
amappl2 80 1500 0 1431 3 1 2 3 0 8 0
amappl1 72 16762 0 16322 25 15 10 20 0 8 0
amappl 80 764 0 718 2 0 2 2 0 84 0
dma4096 4096 1 0 1 1 1 0 1 0 8 0
dma256 256 6 0 6 1 1 0 1 0 8 0
dma128 128 253 0 253 1 1 0 1 0 8 0
dma64 64 6 0 6 1 1 0 1 0 8 0
dma32 32 7 0 7 1 1 0 1 0 8 0
dma16 16 18 0 17 1 0 1 1 0 8 0
aobjpl 64 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 310 0 294 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 310 0 294 1 0 1 1 0 8 0
vmmpekpl 168 6428 0 6395 2 0 2 2 0 8 0
vmmpepl 168 45220 0 43178 129 12 117 120 0 357 28
vmsppl 368 309 0 294 2 0 2 2 0 8 0
pdppl 4096 628 0 588 6 0 6 6 0 8 0
pvpl 32 158663 0 139054 196 1 195 195 0 265 34
pmappl 232 309 0 294 2 0 2 2 0 8 1
extentpl 40 46 0 29 1 0 1 1 0 8 0
phpool 112 189 0 3 6 0 6 6 0 8 0