panic: receive 3: so 0xfffffd806f6f8320, so_type 3, m 0xfffffd8068848700, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 245516 73931 0 0 0 1 syz-executor.1 *146135 73016 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cc881) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f8320,0,ffff800020abdaa8,0,0,ffff800020abd9b4) at soreceive+0x1727 soo_read(fffffd806fc81098,ffff800020abdaa8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cea8,6,ffff800020abdaa8,0,ffff800020abdb90) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cea8,ffff800020abdb40,ffff800020abdb90) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdc10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdc10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7050, 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 3: so 0xfffffd806f6f8320, so_type 3, m 0xfffffd8068848700, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cc881) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f8320,0,ffff800020abdaa8,0,0,ffff800020abd9b4) at soreceive+0x1727 soo_read(fffffd806fc81098,ffff800020abdaa8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cea8,6,ffff800020abdaa8,0,ffff800020abdb90) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cea8,ffff800020abdb40,ffff800020abdb90) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdc10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdc10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7050, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd7f0 rbx 0xffff800020abd8a0 rdx 0xffff800020a7cea8 rcx 0 rax 0 r8 0xffffffff82098d1f kprintf+0x16f r9 0x1 r10 0x25 r11 0x6b4861d4397ab795 r12 0x3000000008 r13 0xffff800020abd800 r14 0x100 r15 0x1 rip 0xffffffff821760c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd7e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=146135 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7c4e8,0xffff800020a7d128 process=0xffff800020a903d0 user=0xffff800020ab8000, vmspace=0xfffffd807f000000 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 73931 245516 31210 0 7 0 syz-executor.1 64429 460799 34505 0 2 0 syz-executor.0 64429 268182 34505 0 3 0x4000080 fsleep syz-executor.0 216 50973 0 0 3 0x14200 bored sosplice 34505 15005 25543 0 3 0x82 nanosleep syz-executor.0 31210 162135 25543 0 3 0x82 nanosleep syz-executor.1 25543 66837 93608 0 3 0x82 kqread syz-fuzzer 25543 55327 93608 0 3 0x4000082 nanosleep syz-fuzzer 25543 345238 93608 0 3 0x4000082 thrsleep syz-fuzzer 25543 235872 93608 0 3 0x4000082 thrsleep syz-fuzzer 25543 402657 93608 0 3 0x4000082 thrsleep syz-fuzzer 25543 520627 93608 0 3 0x4000082 thrsleep syz-fuzzer 25543 126321 93608 0 3 0x4000082 thrsleep syz-fuzzer 25543 490854 93608 0 3 0x4000082 thrsleep syz-fuzzer 25543 261794 93608 0 3 0x4000082 thrsleep syz-fuzzer 25543 185781 93608 0 3 0x4000082 thrsleep syz-fuzzer 25543 511461 93608 0 3 0x4000082 thrsleep syz-fuzzer 93608 117956 15019 0 3 0x10008a pause ksh 15019 49881 10078 0 3 0x92 select sshd 99087 422003 1 0 3 0x100083 ttyin getty 10078 374980 1 0 3 0x80 select sshd 92666 362673 41935 74 3 0x100092 bpf pflogd 41935 267488 1 0 3 0x80 netio pflogd 88453 123259 31209 73 3 0x100090 kqread syslogd 31209 222971 1 0 3 0x100082 netio syslogd 99036 39645 1 77 3 0x100090 poll dhclient *73016 146135 1 0 7 0 dhclient 4398 263566 0 0 2 0x14200 zerothread 88060 354555 0 0 3 0x14200 aiodoned aiodoned 65651 218621 0 0 3 0x14200 syncer update 87014 371548 0 0 3 0x14200 cleaner cleaner 59643 2971 0 0 3 0x14200 reaper reaper 62713 83659 0 0 3 0x14200 pgdaemon pagedaemon 43896 181135 0 0 3 0x14200 bored crynlk 8328 154393 0 0 3 0x14200 bored crypto 50407 97590 0 0 3 0x40014200 acpi0 acpi0 51810 2618 0 0 3 0x40014200 idle1 92779 86802 0 0 3 0x14200 bored softnet 37788 17688 0 0 3 0x14200 bored systqmp 65261 413622 0 0 3 0x14200 bored systq 91213 500850 0 0 3 0x40014200 bored softclock 368 376748 0 0 3 0x40014200 idle0 13043 101950 0 0 3 0x14200 bored smr 1 118314 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 73016 (dhclient) thread 0xffff800020a7cea8 (146135) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8265e2e8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0xb3a sys/kern/uipc_socket.c:950 #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 9493 6533K 6918K 78643K 10806 0 pcb 13 8K 8K 78643K 29 0 rtable 102 3K 4K 78643K 224 0 ifaddr 56 12K 12K 78643K 70 0 counters 45 34K 34K 78643K 47 0 ioctlops 0 0K 4K 78643K 1471 0 iov 0 0K 12K 78643K 6 0 mount 1 1K 1K 78643K 1 0 vnodes 1225 77K 77K 78643K 1280 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 10 0K 0K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 79 0 proc 60 63K 95K 78643K 444 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 4 0 in_multi 42 2K 2K 78643K 58 0 ether_multi 1 0K 0K 78643K 5 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 211 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 102 21K 22K 78643K 1160 0 UVM aobj 6 2K 2K 78643K 6 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 14 0 NDP 8 0K 0K 78643K 14 0 temp 79 3020K 3084K 78643K 2748 0 kqueue 3 4K 8K 78643K 9 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 34 0 32 1 0 1 1 0 8 0 rtentry 112 49 0 8 2 0 2 2 0 8 0 unpcb 120 89 0 79 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 301 0 301 1 0 1 1 0 8 1 tcpcb 544 42 0 38 1 0 1 1 0 8 0 inpcb 280 122 0 115 2 0 2 2 0 8 1 nd6 48 7 0 3 1 0 1 1 0 8 0 ppxss 1128 1 0 0 1 0 1 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 20 0 0 1 0 1 1 0 8 0 pfstkey 112 20 0 0 1 0 1 1 0 8 0 pfstate 328 20 0 0 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 48 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 4 1 0 1 1 0 8 0 semapl 112 10 0 2 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1493 0 85 46 0 46 46 0 8 0 ffsino 272 1493 0 85 95 0 95 95 0 8 0 nchpl 144 1795 0 177 61 0 61 61 0 8 0 uvmvnodes 72 1589 0 0 29 0 29 29 0 8 0 vnodes 208 1589 0 0 84 0 84 84 0 8 0 namei 1024 4681 0 4681 1 0 1 1 0 8 1 percpumem 16 34 0 1 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 scxspl 192 5187 0 5187 2 1 1 2 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 432 278 0 262 3 0 3 3 0 8 1 futexpl 56 1185 0 1184 1 0 1 1 0 8 0 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 26 0 24 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 0 2 2 0 8 1 fdescpl 496 279 0 262 3 0 3 3 0 8 0 filepl 152 1622 0 1521 6 0 6 6 0 8 2 lockfpl 104 29 0 28 1 0 1 1 0 8 0 lockfspl 48 12 0 11 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 65 0 56 1 0 1 1 0 8 0 zombiepl 144 262 0 262 1 0 1 1 0 8 1 processpl 960 295 0 262 5 0 5 5 0 8 0 procpl 624 419 0 375 4 0 4 4 0 8 0 sosppl 128 3 0 3 1 0 1 1 0 8 1 sockpl 400 247 0 228 5 0 5 5 0 8 3 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 191 0 0 23 0 23 23 0 8 0 mtagpl 80 37 0 0 1 0 1 1 0 8 0 mbufpl 256 217 0 0 14 0 14 14 0 8 0 bufpl 280 4141 0 175 284 0 284 284 0 8 0 anonpl 16 41618 0 25329 67 1 66 66 0 124 0 amapchunkpl 152 1285 0 1141 8 0 8 8 0 158 1 amappl16 192 1206 0 316 45 0 45 45 0 8 0 amappl15 184 29 0 26 2 1 1 1 0 8 0 amappl14 176 5 0 3 2 1 1 1 0 8 0 amappl13 168 26 0 25 1 0 1 1 0 8 0 amappl12 160 23 0 20 2 1 1 1 0 8 0 amappl11 152 72 0 54 1 0 1 1 0 8 0 amappl10 144 19 0 14 1 0 1 1 0 8 0 amappl9 136 390 0 387 1 0 1 1 0 8 0 amappl8 128 313 0 294 1 0 1 1 0 8 0 amappl7 120 118 0 107 1 0 1 1 0 8 0 amappl6 112 27 0 22 1 0 1 1 0 8 0 amappl5 104 180 0 162 1 0 1 1 0 8 0 amappl4 96 507 0 472 2 1 1 2 0 8 0 amappl3 88 105 0 100 1 0 1 1 0 8 0 amappl2 80 1347 0 1269 3 1 2 3 0 8 0 amappl1 72 16191 0 15750 24 11 13 20 0 8 3 amappl 80 665 0 620 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 281 0 262 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 281 0 262 1 0 1 1 0 8 0 vmmpekpl 168 6272 0 6238 2 0 2 2 0 8 0 vmmpepl 168 41367 0 39265 158 5 153 153 0 357 61 vmsppl 368 280 0 262 2 0 2 2 0 8 0 pdppl 4096 569 0 526 6 0 6 6 0 8 0 pvpl 32 143575 0 124087 158 0 158 158 0 265 0 pmappl 232 280 0 262 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 176 0 3 5 0 5 5 0 8 0