panic: receive 1: so 0xfffffd806f668000, so_type 3, sb_cc 3798
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
299072 93037 0 0x2 0 0 syz-fuzzer
* 45641 99871 0 0 0 1K dhclient
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821bcb56) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f668000,0,ffff800020abb628,0,0,ffff800020abb534) at soreceive+0x16ec sys/kern/uipc_socket.c:798
soo_read(fffffd8073ffe260,ffff800020abb628,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a6f640,6,ffff800020abb628,0,ffff800020abb710) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff800020a6f640,ffff800020abb6c0,ffff800020abb710) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff800020abb790) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020abb790) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffc1780, 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{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
receive 1: so 0xfffffd806f668000, so_type 3, sb_cc 3798
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821bcb56) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f668000,0,ffff800020abb628,0,0,ffff800020abb534) at soreceive+0x16ec sys/kern/uipc_socket.c:798
soo_read(fffffd8073ffe260,ffff800020abb628,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a6f640,6,ffff800020abb628,0,ffff800020abb710) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff800020a6f640,ffff800020abb6c0,ffff800020abb710) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff800020abb790) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020abb790) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffc1780, count: -8
ddb{1}> show registers
rdi 0
rsi 0x1
rbp 0xffff800020abb370
rbx 0xffff800020abb420
rdx 0xffff800020a6f640
rcx 0
rax 0
r8 0xffffffff81400edf kprintf+0x16f
r9 0x1
r10 0x25
r11 0xabc797c97d6cbc7a
r12 0x3000000008
r13 0xffff800020abb380
r14 0x100
r15 0x1
rip 0xffffffff815de968 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800020abb360
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{1}> show proc
PROC (dhclient) pid=45641 stat=onproc
flags process=0 proc=0
pri=50, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xffff800020a6e008,0xffff800020a6f8c8
process=0xffff800020a9a398 user=0xffff800020ab6000, vmspace=0xfffffd807f0052e0
estcpu=0, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
22430 103589 93037 0 2 0x482 syz-executor.1
93037 299072 34553 0 7 0x2 syz-fuzzer
93037 246002 34553 0 3 0x4000082 nanosleep syz-fuzzer
93037 480831 34553 0 3 0x4000082 thrsleep syz-fuzzer
93037 401519 34553 0 3 0x4000082 thrsleep syz-fuzzer
93037 216622 34553 0 3 0x4000082 nanosleep syz-fuzzer
93037 179206 34553 0 3 0x4000082 thrsleep syz-fuzzer
93037 327687 34553 0 3 0x4000082 thrsleep syz-fuzzer
93037 451667 34553 0 3 0x4000082 thrsleep syz-fuzzer
93037 186511 34553 0 3 0x4000082 thrsleep syz-fuzzer
93037 372946 34553 0 3 0x4000082 thrsleep syz-fuzzer
34553 438311 1307 0 3 0x10008a pause ksh
1307 456263 67413 0 3 0x92 select sshd
53212 40062 1 0 3 0x100083 ttyin getty
67413 404033 1 0 3 0x80 select sshd
21030 389873 63809 74 3 0x100092 bpf pflogd
63809 131012 1 0 3 0x80 netio pflogd
78554 13380 67826 73 3 0x100090 kqread syslogd
67826 382526 1 0 3 0x100082 netio syslogd
59393 15242 1 77 2 0x100010 dhclient
*99871 45641 1 0 7 0 dhclient
32989 423564 0 0 2 0x14200 zerothread
25477 238988 0 0 3 0x14200 aiodoned aiodoned
20626 64538 0 0 3 0x14200 syncer update
37293 221439 0 0 3 0x14200 cleaner cleaner
91708 387933 0 0 3 0x14200 reaper reaper
35034 450394 0 0 3 0x14200 pgdaemon pagedaemon
83322 215480 0 0 3 0x14200 bored crynlk
73321 420295 0 0 3 0x14200 bored crypto
68339 383864 0 0 3 0x14200 bored viomb
26332 493045 0 0 3 0x40014200 acpi0 acpi0
21798 3163 0 0 3 0x40014200 idle1
59305 163995 0 0 2 0x14200 softnet
29597 112975 0 0 2 0x14200 systqmp
38914 106165 0 0 3 0x14200 bored systq
22000 193521 0 0 3 0x40014200 bored softclock
22498 488129 0 0 3 0x40014200 idle0
86485 19516 0 0 3 0x14200 bored smr
1 353767 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
Process 99871 (dhclient) thread 0xffff800020a6f640 (45641)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8265cfc8)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 solock+0x66 sys/kern/uipc_socket2.c:292
#2 soreceive+0x114 sys/kern/uipc_socket.c:706
#3 soo_read+0x53 sys/kern/sys_socket.c:70
#4 dofilereadv+0x1a2 sys/kern/sys_generic.c:236
#5 sys_read+0x83 sys/kern/sys_generic.c:156
#6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#7 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9501 6422K 7001K 78643K 10788 0
pcb 13 8K 8K 78643K 41 0
rtable 88 3K 4K 78643K 235 0
ifaddr 46 10K 11K 78643K 68 0
counters 39 33K 33K 78643K 39 0
ioctlops 0 0K 4K 78643K 1470 0
iov 0 0K 48K 78643K 16 0
mount 1 1K 1K 78643K 1 0
vnodes 1222 77K 77K 78643K 1339 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 12 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1810 197K 290K 78643K 12817 0
file desc 4 9K 25K 78643K 101 0
proc 60 63K 83K 78643K 441 0
subproc 23 1K 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 24 0
in_multi 22 1K 2K 78643K 41 0
ether_multi 1 0K 0K 78643K 1 0
mrt 0 0K 0K 78643K 2 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 78 344K 344K 78643K 78 0
exec 0 0K 1K 78643K 209 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 121 22K 26K 78643K 1281 0
UVM aobj 2 2K 2K 78643K 2 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 10 0
NDP 7 0K 0K 78643K 14 0
temp 97 3025K 3089K 78643K 4657 0
SYN cache 2 16K 16K 78643K 2 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp 64 6 0 2 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 23 0 21 1 0 1 1 0 8 0
rtentry 112 50 0 16 2 0 2 2 0 8 0
unpcb 120 67 0 57 1 0 1 1 0 8 0
syncache 264 4 0 4 2 2 0 1 0 8 0
tcpqe 32 1823 0 1823 1 1 0 1 0 8 0
tcpcb 544 32 0 28 1 0 1 1 0 8 0
inpcb 280 138 0 131 3 1 2 2 0 8 1
rttmr 72 1 0 1 1 0 1 1 0 8 1
nd6 48 5 0 3 1 0 1 1 0 8 0
ppxss 1128 1 0 1 1 0 1 1 0 8 1
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 17 0 2 1 0 1 1 0 8 0
pfstkey 112 17 0 2 1 0 1 1 0 8 0
pfstate 328 17 0 2 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 236 0 39 14 0 14 14 0 8 0
art_table 32 237 0 39 2 0 2 2 0 8 0
art_node 16 49 0 10 1 0 1 1 0 8 0
sysvmsgpl 40 31 0 10 1 0 1 1 0 8 0
semupl 112 2 0 2 1 0 1 1 0 8 1
semapl 112 10 0 0 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 1594 0 186 46 0 46 46 0 8 0
ffsino 272 1594 0 186 95 0 95 95 0 8 0
nchpl 144 1949 0 342 61 0 61 61 0 8 0
uvmvnodes 72 1678 0 0 31 0 31 31 0 8 0
vnodes 208 1678 0 0 89 0 89 89 0 8 0
namei 1024 5825 0 5825 2 1 1 1 0 8 1
percpumem 16 30 0 0 1 0 1 1 0 8 0
scxspl 192 5425 0 5425 8 7 1 7 0 8 1
plimitpl 152 20 0 12 1 0 1 1 0 8 0
sigapl 432 300 0 286 3 1 2 3 0 8 0
futexpl 56 1826 0 1826 1 0 1 1 0 8 1
knotepl 112 54 0 37 1 0 1 1 0 8 0
kqueuepl 104 11 0 9 1 0 1 1 0 8 0
pipepl 160 178 0 163 3 1 2 2 0 8 1
fdescpl 488 301 0 286 3 0 3 3 0 8 0
filepl 152 2400 0 2313 7 1 6 6 0 8 2
lockfpl 104 25 0 24 1 0 1 1 0 8 0
lockfspl 48 10 0 9 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 722 0 713 1 0 1 1 0 8 0
zombiepl 144 287 0 285 3 2 1 1 0 8 0
processpl 904 317 0 285 4 0 4 4 0 8 0
procpl 632 503 0 462 5 0 5 5 0 8 0
sockpl 384 228 0 209 5 2 3 4 0 8 1
mcl64k 65536 3 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
mcl8k 8192 3 0 0 1 0 1 1 0 8 0
mcl4k 4096 4 0 0 1 0 1 1 0 8 0
mcl2k 2048 199 0 0 24 0 24 24 0 8 0
mtagpl 80 8 0 0 1 0 1 1 0 8 0
mbufpl 256 292 0 0 18 1 17 17 0 8 0
bufpl 280 6530 0 1340 371 0 371 371 0 8 0
anonpl 16 46560 0 27693 79 2 77 77 0 125 0
amapchunkpl 152 1490 0 1327 7 0 7 7 0 158 0
amappl16 192 1370 0 350 52 0 52 52 0 8 0
amappl15 184 67 0 63 1 0 1 1 0 8 0
amappl14 176 72 0 67 2 1 1 1 0 8 0
amappl13 168 1 0 0 1 0 1 1 0 8 0
amappl12 160 8 0 6 2 1 1 1 0 8 0
amappl11 152 61 0 45 1 0 1 1 0 8 0
amappl10 144 52 0 44 1 0 1 1 0 8 0
amappl9 136 591 0 588 1 0 1 1 0 8 0
amappl8 128 145 0 115 2 0 2 2 0 8 0
amappl7 120 134 0 121 1 0 1 1 0 8 0
amappl6 112 55 0 49 1 0 1 1 0 8 0
amappl5 104 149 0 135 1 0 1 1 0 8 0
amappl4 96 557 0 521 2 1 1 2 0 8 0
amappl3 88 155 0 147 1 0 1 1 0 8 0
amappl2 80 1480 0 1405 3 1 2 3 0 8 0
amappl1 72 16778 0 16338 26 16 10 20 0 8 0
amappl 80 757 0 708 2 0 2 2 0 84 0
dma4096 4096 1 0 1 1 1 0 1 0 8 0
dma1024 1024 1 0 0 1 0 1 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 1 0 0 1 0 1 1 0 8 0
uaddrrnd 24 301 0 286 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 301 0 286 1 0 1 1 0 8 0
vmmpekpl 168 6294 0 6263 3 1 2 2 0 8 0
vmmpepl 168 44791 0 42638 146 20 126 134 0 357 24
vmsppl 368 300 0 286 2 0 2 2 0 8 0
pdppl 4096 609 0 572 7 1 6 6 0 8 0
pvpl 32 158014 0 135698 192 3 189 189 0 265 7
pmappl 232 300 0 286 2 1 1 2 0 8 0
extentpl 40 50 0 32 1 0 1 1 0 8 0
phpool 112 180 0 6 5 0 5 5 0 8 0