panic: receive 1: so 0xfffffd806f6f2000, so_type 3, sb_cc 4434
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
373361 78784 0 0 0x1 1 syz-executor.0
*427523 44761 0 0 0 0K dhclient
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821dec66) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f6f2000,0,ffff800020abd248,0,0,ffff800020abd154) at soreceive+0x16ec sys/kern/uipc_socket.c:823
soo_read(fffffd806fc83000,ffff800020abd248,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a7c4e8,6,ffff800020abd248,0,ffff800020abd330) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237
sys_read(ffff800020a7c4e8,ffff800020abd2e0,ffff800020abd330) at sys_read+0x83 sys/kern/sys_generic.c:157
syscall(ffff800020abd3b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020abd3b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffcf2e0, 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 0xfffffd806f6f2000, so_type 3, sb_cc 4434
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821dec66) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f6f2000,0,ffff800020abd248,0,0,ffff800020abd154) at soreceive+0x16ec sys/kern/uipc_socket.c:823
soo_read(fffffd806fc83000,ffff800020abd248,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a7c4e8,6,ffff800020abd248,0,ffff800020abd330) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237
sys_read(ffff800020a7c4e8,ffff800020abd2e0,ffff800020abd330) at sys_read+0x83 sys/kern/sys_generic.c:157
syscall(ffff800020abd3b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020abd3b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffcf2e0, count: -8
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff800020abcf90
rbx 0xffff800020abd040
rdx 0xffff800020a7c4e8
rcx 0
rax 0
r8 0xffffffff8151a22f kprintf+0x16f
r9 0x1
r10 0x25
r11 0xff68df4d2c0afafc
r12 0x3000000008
r13 0xffff800020abcfa0
r14 0x100
r15 0x1
rip 0xffffffff8106a8b8 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800020abcf80
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (dhclient) pid=427523 stat=onproc
flags process=0 proc=0
pri=24, usrpri=51, nice=20
forw=0xffffffffffffffff, list=0xffff800020a7d5f8,0xffff800020a7c018
process=0xffff800020a90b50 user=0xffff800020ab8000, vmspace=0xfffffd807f000000
estcpu=1, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
78784 373361 84635 0 7 0x1 syz-executor.0
78784 352627 84635 0 2 0x4000000 syz-executor.0
19590 133567 0 0 3 0x14200 bored sosplice
45004 435073 65950 0 3 0x82 nanosleep syz-executor.1
84635 242646 65950 0 2 0x482 syz-executor.0
65950 402768 95757 0 3 0x82 kqread syz-fuzzer
65950 378314 95757 0 3 0x4000082 nanosleep syz-fuzzer
65950 474326 95757 0 3 0x4000082 thrsleep syz-fuzzer
65950 332025 95757 0 3 0x4000082 thrsleep syz-fuzzer
65950 48307 95757 0 3 0x4000082 thrsleep syz-fuzzer
65950 407415 95757 0 3 0x4000082 thrsleep syz-fuzzer
65950 280323 95757 0 3 0x4000082 thrsleep syz-fuzzer
65950 455791 95757 0 3 0x4000082 thrsleep syz-fuzzer
65950 142965 95757 0 3 0x4000082 thrsleep syz-fuzzer
65950 93244 95757 0 3 0x4000082 thrsleep syz-fuzzer
95757 362826 78764 0 3 0x10008a pause ksh
78764 489874 99084 0 3 0x92 select sshd
75069 385082 1 0 3 0x100083 ttyin getty
99084 9979 1 0 3 0x80 select sshd
81142 433649 83687 74 3 0x100092 bpf pflogd
83687 125641 1 0 3 0x80 netio pflogd
62212 504399 48233 73 3 0x100090 kqread syslogd
48233 359046 1 0 3 0x100082 netio syslogd
18970 146763 1 77 3 0x100090 poll dhclient
*44761 427523 1 0 7 0 dhclient
17060 184379 0 0 2 0x14200 zerothread
86469 166621 0 0 3 0x14200 aiodoned aiodoned
52148 93467 0 0 3 0x14200 syncer update
78916 125419 0 0 3 0x14200 cleaner cleaner
40792 189827 0 0 3 0x14200 reaper reaper
29600 278543 0 0 3 0x14200 pgdaemon pagedaemon
48760 23682 0 0 3 0x14200 bored crynlk
54004 375695 0 0 3 0x14200 bored crypto
46451 10562 0 0 3 0x40014200 acpi0 acpi0
50489 424310 0 0 3 0x40014200 idle1
43567 344573 0 0 3 0x14200 bored softnet
76891 164007 0 0 3 0x14200 bored systqmp
78026 359397 0 0 2 0x14200 systq
2212 273604 0 0 3 0x40014200 bored softclock
50738 157605 0 0 3 0x40014200 idle0
67912 150504 0 0 3 0x14200 bored smr
1 470587 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 44761 (dhclient) thread 0xffff800020a7c4e8 (427523)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262d5b0)
#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 9506 6538K 7309K 78643K 10920 0
pcb 13 8K 8K 78643K 55 0
rtable 93 2K 3K 78643K 270 0
ifaddr 59 12K 12K 78643K 87 0
counters 45 34K 34K 78643K 51 0
ioctlops 0 0K 4K 78643K 1478 0
iov 0 0K 12K 78643K 21 0
mount 1 1K 1K 78643K 1 0
vnodes 1230 77K 77K 78643K 1327 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 1K 1K 78643K 21 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1809 196K 290K 78643K 12766 0
file desc 5 13K 25K 78643K 143 0
sigio 0 0K 0K 78643K 2 0
proc 63 63K 95K 78643K 466 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 18 0
in_multi 36 2K 2K 78643K 75 0
ether_multi 1 0K 0K 78643K 9 0
mrt 0 0K 0K 78643K 6 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 61 281K 281K 78643K 61 0
exec 0 0K 1K 78643K 221 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 117 38K 54K 78643K 1423 0
UVM aobj 16 2K 2K 78643K 16 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 29 0
NDP 9 0K 0K 78643K 20 0
temp 110 3023K 3087K 78643K 2523 0
kqueue 3 4K 14K 78643K 18 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 6 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 64 0 26 2 0 2 2 0 8 0
unpcb 120 126 0 116 1 0 1 1 0 8 0
syncache 264 4 0 4 1 1 0 1 0 8 0
tcpqe 32 579 0 579 1 1 0 1 0 8 0
tcpcb 544 60 0 56 1 0 1 1 0 8 0
inpcb 280 224 0 217 2 0 2 2 0 8 1
rttmr 72 2 0 2 1 0 1 1 0 8 1
nd6 48 11 0 9 1 0 1 1 0 8 0
pkpcb 40 2 0 2 1 1 0 1 0 8 0
pffrag 232 5 0 5 1 0 1 1 0 482 1
pffrnode 88 5 0 5 1 0 1 1 0 8 1
pffrent 40 225 0 225 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 28 0 2 1 0 1 1 0 8 0
pfstkey 112 28 0 2 1 0 1 1 0 8 0
pfstate 328 28 0 2 3 0 3 3 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 299 0 142 13 0 13 13 0 8 2
art_table 32 300 0 142 2 0 2 2 0 8 0
art_node 16 63 0 27 1 0 1 1 0 8 0
sysvmsgpl 40 49 0 14 1 0 1 1 0 8 0
semupl 112 1 0 1 1 1 0 1 0 8 0
semapl 112 19 0 9 1 0 1 1 0 8 0
shmpl 112 14 0 0 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 1605 0 198 46 0 46 46 0 8 0
ffsino 272 1605 0 198 94 0 94 94 0 8 0
nchpl 144 2044 0 435 61 0 61 61 0 8 0
uvmvnodes 72 1727 0 0 32 0 32 32 0 8 0
vnodes 208 1727 0 0 91 0 91 91 0 8 0
namei 1024 5808 0 5808 1 0 1 1 0 8 1
percpumem 16 36 0 3 1 0 1 1 0 8 0
vcpupl 1984 1 0 0 1 0 1 1 0 8 0
vmpool 560 1 0 0 1 0 1 1 0 8 0
scxspl 192 5864 0 5864 8 1 7 7 0 8 7
plimitpl 152 21 0 13 1 0 1 1 0 8 0
sigapl 432 342 0 327 3 1 2 3 0 8 0
futexpl 56 2910 0 2910 1 0 1 1 0 8 1
knotepl 112 74 0 55 1 0 1 1 0 8 0
kqueuepl 144 32 0 30 1 0 1 1 0 8 0
pipelkpl 48 110 0 100 1 0 1 1 0 8 0
pipepl 120 220 0 201 1 0 1 1 0 8 0
fdescpl 496 343 0 327 3 0 3 3 0 8 0
filepl 152 2403 0 2302 5 0 5 5 0 8 1
lockfpl 104 47 0 46 1 0 1 1 0 8 0
lockfspl 48 17 0 16 1 0 1 1 0 8 0
sessionpl 112 18 0 7 1 0 1 1 0 8 0
pgrppl 48 20 0 9 1 0 1 1 0 8 0
ucredpl 96 386 0 377 1 0 1 1 0 8 0
zombiepl 144 327 0 326 1 0 1 1 0 8 0
processpl 960 359 0 326 5 0 5 5 0 8 0
procpl 624 649 0 606 4 0 4 4 0 8 0
sosppl 128 3 0 3 1 1 0 1 0 8 0
sockpl 400 373 0 354 4 0 4 4 0 8 2
mcl64k 65536 6 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 3 0 0 1 0 1 1 0 8 0
mcl4k 4096 4 0 0 1 0 1 1 0 8 0
mcl2k 2048 172 0 0 21 0 21 21 0 8 0
mtagpl 80 23 0 0 1 0 1 1 0 8 0
mbufpl 256 426 0 0 26 0 26 26 0 8 0
bufpl 280 4197 0 176 288 0 288 288 0 8 0
anonpl 16 46112 0 29678 68 1 67 67 0 124 0
amapchunkpl 152 2165 0 2027 20 0 20 20 0 158 13
amappl16 192 1472 0 580 45 0 45 45 0 8 0
amappl15 184 1 0 1 1 1 0 1 0 8 0
amappl14 176 58 0 55 2 1 1 1 0 8 0
amappl13 168 80 0 78 1 0 1 1 0 8 0
amappl12 160 10 0 5 1 0 1 1 0 8 0
amappl11 152 72 0 54 1 0 1 1 0 8 0
amappl10 144 33 0 23 1 0 1 1 0 8 0
amappl9 136 389 0 386 1 0 1 1 0 8 0
amappl8 128 322 0 296 1 0 1 1 0 8 0
amappl7 120 121 0 108 1 0 1 1 0 8 0
amappl6 112 29 0 24 1 0 1 1 0 8 0
amappl5 104 243 0 226 1 0 1 1 0 8 0
amappl4 96 557 0 527 1 0 1 1 0 8 0
amappl3 88 107 0 102 1 0 1 1 0 8 0
amappl2 80 1812 0 1741 3 1 2 3 0 8 0
amappl1 72 17693 0 17256 25 15 10 20 0 8 0
amappl 80 902 0 857 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 15 0 0 1 0 1 1 0 8 0
uaddrrnd 24 344 0 327 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 344 0 327 1 0 1 1 0 8 0
vmmpekpl 168 6755 0 6715 2 0 2 2 0 8 0
vmmpepl 168 48820 0 46781 117 8 109 112 0 357 15
vmsppl 368 343 0 327 2 0 2 2 0 8 0
pdppl 4096 695 0 655 6 0 6 6 0 8 0
pvpl 32 157344 0 137779 163 0 163 163 0 265 3
pmappl 232 343 0 327 2 0 2 2 0 8 0
extentpl 40 46 0 29 1 0 1 1 0 8 0
phpool 112 184 0 3 6 0 6 6 0 8 0