panic: receive 3: so 0xfffffd806f6f64b0, so_type 3, m 0xfffffd806f3b7c00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 146237 96213 0 0 0 0 syz-executor.1 *486753 89285 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cd32f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f64b0,0,ffff800020abd628,0,0,ffff800020abd534) at soreceive+0x1727 soo_read(fffffd806fc81558,ffff800020abd628,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cc38,6,ffff800020abd628,0,ffff800020abd710) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cc38,ffff800020abd6c0,ffff800020abd710) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd790) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd790) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc26a0, 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 3: so 0xfffffd806f6f64b0, so_type 3, m 0xfffffd806f3b7c00, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cd32f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f64b0,0,ffff800020abd628,0,0,ffff800020abd534) at soreceive+0x1727 soo_read(fffffd806fc81558,ffff800020abd628,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cc38,6,ffff800020abd628,0,ffff800020abd710) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cc38,ffff800020abd6c0,ffff800020abd710) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd790) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd790) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc26a0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd370 rbx 0xffff800020abd420 rdx 0xffff800020a7cc38 rcx 0 rax 0 r8 0xffffffff817ca58f kprintf+0x16f r9 0x1 r10 0x25 r11 0x1c4eb13c986ddca1 r12 0x3000000008 r13 0xffff800020abd380 r14 0x100 r15 0x1 rip 0xffffffff810ff838 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd360 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=486753 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7c9c8,0xffff800020a7ceb8 process=0xffff800020a903d0 user=0xffff800020ab8000, vmspace=0xfffffd807efff000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 45606 481494 18377 0 2 0 syz-executor.0 96213 146237 14289 0 7 0 syz-executor.1 96213 337082 14289 0 3 0x4000080 fsleep syz-executor.1 96213 108021 14289 0 2 0x4000000 syz-executor.1 42222 318830 0 0 3 0x14200 bored sosplice 14289 466422 93488 0 3 0x82 nanosleep syz-executor.1 18377 350683 93488 0 3 0x82 nanosleep syz-executor.0 93488 168423 30570 0 3 0x82 thrsleep syz-fuzzer 93488 309022 30570 0 3 0x4000082 nanosleep syz-fuzzer 93488 19160 30570 0 3 0x4000082 thrsleep syz-fuzzer 93488 480027 30570 0 3 0x4000082 thrsleep syz-fuzzer 93488 414823 30570 0 3 0x4000082 kqread syz-fuzzer 93488 325358 30570 0 3 0x4000082 thrsleep syz-fuzzer 93488 495216 30570 0 3 0x4000082 thrsleep syz-fuzzer 93488 501162 30570 0 3 0x4000082 thrsleep syz-fuzzer 93488 142640 30570 0 3 0x4000082 thrsleep syz-fuzzer 93488 96077 30570 0 3 0x4000082 thrsleep syz-fuzzer 30570 221556 64299 0 3 0x10008a pause ksh 64299 482352 88039 0 3 0x92 select sshd 83848 102618 1 0 3 0x100083 ttyin getty 88039 471786 1 0 3 0x80 select sshd 1230 394595 22273 74 3 0x100092 bpf pflogd 22273 68316 1 0 3 0x80 netio pflogd 59924 324917 8283 73 3 0x100090 kqread syslogd 8283 474475 1 0 3 0x100082 netio syslogd 14889 134917 1 77 3 0x100090 poll dhclient *89285 486753 1 0 7 0 dhclient 67295 314038 0 0 2 0x14200 zerothread 18901 52931 0 0 3 0x14200 aiodoned aiodoned 58420 44373 0 0 3 0x14200 syncer update 21746 198897 0 0 3 0x14200 cleaner cleaner 97907 51573 0 0 3 0x14200 reaper reaper 25825 251185 0 0 3 0x14200 pgdaemon pagedaemon 6060 187837 0 0 3 0x14200 bored crynlk 4351 447309 0 0 3 0x14200 bored crypto 15395 82236 0 0 3 0x40014200 acpi0 acpi0 40440 297924 0 0 3 0x40014200 idle1 32420 93863 0 0 3 0x14200 bored softnet 4484 504231 0 0 3 0x14200 bored systqmp 64695 240558 0 0 3 0x14200 bored systq 95218 509064 0 0 3 0x40014200 bored softclock 54554 402404 0 0 3 0x40014200 idle0 52888 51530 0 0 3 0x14200 bored smr 1 443029 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 89285 (dhclient) thread 0xffff800020a7cc38 (486753) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82632cd8) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9479 6401K 6786K 78643K 10679 0 pcb 13 8K 8K 78643K 25 0 rtable 95 2K 3K 78643K 203 0 ifaddr 48 11K 11K 78643K 52 0 counters 45 34K 34K 78643K 45 0 ioctlops 0 0K 4K 78643K 1477 0 iov 0 0K 12K 78643K 8 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1288 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 1K 1K 78643K 2 0 sem 7 0K 0K 78643K 9 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 80 0 sigio 0 0K 0K 78643K 4 0 proc 60 63K 83K 78643K 453 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 2 0 in_multi 29 1K 2K 78643K 36 0 ether_multi 1 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 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 112 22K 38K 78643K 1196 0 UVM aobj 9 2K 2K 78643K 11 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 12 0 NDP 7 0K 0K 78643K 11 0 temp 76 3016K 3080K 78643K 2384 0 kqueue 3 4K 12K 78643K 10 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 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 27 0 25 1 0 1 1 0 8 0 rtentry 112 45 0 6 2 0 2 2 0 8 0 unpcb 120 79 0 67 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 213 0 213 1 0 1 1 0 8 1 tcpcb 544 24 0 20 1 0 1 1 0 8 0 inpcb 280 97 0 90 1 0 1 1 0 8 0 nd6 48 6 0 2 1 0 1 1 0 8 0 pffrag 232 1 0 1 1 0 1 1 0 482 1 pffrnode 88 1 0 1 1 0 1 1 0 8 1 pffrent 40 45 0 45 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 21 0 0 1 0 1 1 0 8 0 pfstkey 112 21 0 0 1 0 1 1 0 8 0 pfstate 328 21 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 188 0 16 12 0 12 12 0 8 0 art_table 32 189 0 16 2 0 2 2 0 8 0 art_node 16 44 0 8 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 6 0 1 1 0 1 1 0 8 0 shmpl 112 9 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1527 0 121 46 0 46 46 0 8 0 ffsino 272 1527 0 121 94 0 94 94 0 8 0 nchpl 144 1840 0 222 61 0 61 61 0 8 0 uvmvnodes 72 1611 0 0 30 0 30 30 0 8 0 vnodes 208 1611 0 0 85 0 85 85 0 8 0 namei 1024 5063 0 5063 2 1 1 1 0 8 1 percpumem 16 33 0 0 1 0 1 1 0 8 0 scxspl 192 5547 0 5547 8 2 6 7 0 8 6 plimitpl 152 15 0 7 1 0 1 1 0 8 0 sigapl 424 296 0 263 4 0 4 4 0 8 0 futexpl 56 1188 0 1187 1 0 1 1 0 8 0 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 18 0 16 1 0 1 1 0 8 0 pipelkpl 48 84 0 74 1 0 1 1 0 8 0 pipepl 120 168 0 149 2 0 2 2 0 8 1 fdescpl 496 280 0 263 3 0 3 3 0 8 0 filepl 152 1726 0 1625 7 1 6 6 0 8 2 lockfpl 104 22 0 21 1 0 1 1 0 8 0 lockfspl 48 9 0 8 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 83 0 74 1 0 1 1 0 8 0 zombiepl 144 263 0 263 2 1 1 1 0 8 1 processpl 960 296 0 263 6 1 5 5 0 8 0 procpl 624 428 0 384 4 0 4 4 0 8 0 sockpl 400 203 0 182 4 1 3 3 0 8 0 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 181 0 0 22 0 22 22 0 8 0 mtagpl 80 3 0 0 1 0 1 1 0 8 0 mbufpl 256 289 0 0 18 0 18 18 0 8 0 bufpl 280 4187 0 177 287 0 287 287 0 8 0 anonpl 16 42247 0 26515 69 1 68 68 0 124 3 amapchunkpl 152 1691 0 1538 20 0 20 20 0 158 12 amappl16 192 1252 0 393 47 0 47 47 0 8 3 amappl15 184 2 0 0 1 0 1 1 0 8 0 amappl14 176 51 0 46 2 1 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 3 0 3 1 1 0 1 0 8 0 amappl11 152 68 0 50 1 0 1 1 0 8 0 amappl10 144 23 0 16 1 0 1 1 0 8 0 amappl9 136 388 0 385 1 0 1 1 0 8 0 amappl8 128 326 0 301 2 0 2 2 0 8 0 amappl7 120 117 0 107 1 0 1 1 0 8 0 amappl6 112 25 0 24 1 0 1 1 0 8 0 amappl5 104 136 0 120 1 0 1 1 0 8 0 amappl4 96 546 0 507 2 1 1 2 0 8 0 amappl3 88 161 0 148 1 0 1 1 0 8 0 amappl2 80 1302 0 1230 3 1 2 3 0 8 0 amappl1 72 16127 0 15669 25 14 11 20 0 8 1 amappl 80 687 0 642 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 10 0 2 1 0 1 1 0 8 0 uaddrrnd 24 280 0 263 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 280 0 263 1 0 1 1 0 8 0 vmmpekpl 168 6097 0 6058 2 0 2 2 0 8 0 vmmpepl 168 41697 0 39605 126 11 115 115 0 357 24 vmsppl 368 279 0 263 2 0 2 2 0 8 0 pdppl 4096 567 0 526 7 1 6 6 0 8 0 pvpl 32 145603 0 126672 167 2 165 165 0 265 10 pmappl 232 279 0 263 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 177 0 6 5 0 5 5 0 8 0