panic: receive 1a: so 0xfffffd806f6f6000, so_type 3, m 0xfffffd806d836f00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 432392 53547 0 0 0 1 syz-executor.1 *175186 3258 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d6508) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f6000,0,ffff800020abd318,0,0,ffff800020abd224) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd80751f22f8,ffff800020abd318,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7d118,6,ffff800020abd318,0,ffff800020abd400) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7d118,ffff800020abd3b0,ffff800020abd400) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd480) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd480) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5020, 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 1a: so 0xfffffd806f6f6000, so_type 3, m 0xfffffd806d836f00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d6508) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f6000,0,ffff800020abd318,0,0,ffff800020abd224) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd80751f22f8,ffff800020abd318,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7d118,6,ffff800020abd318,0,ffff800020abd400) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7d118,ffff800020abd3b0,ffff800020abd400) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd480) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd480) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5020, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd060 rbx 0xffff800020abd110 rdx 0xffff800020a7d118 rcx 0 rax 0 r8 0xffffffff810edbff kprintf+0x16f r9 0x1 r10 0x25 r11 0x770943ff44afb877 r12 0x3000000008 r13 0xffff800020abd070 r14 0x100 r15 0x1 rip 0xffffffff81824028 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd050 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=175186 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7c758,0xffff800020a7d608 process=0xffff800020a912d0 user=0xffff800020ab8000, vmspace=0xfffffd807efff450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 53547 432392 51580 0 7 0 syz-executor.1 53547 163307 51580 0 3 0x4000080 fsleep syz-executor.1 53547 453663 51580 0 2 0x4000000 syz-executor.1 21487 43347 0 0 3 0x14200 bored sosplice 51580 355776 47898 0 3 0x82 nanosleep syz-executor.1 49436 310115 47898 0 2 0x2 syz-executor.0 47898 167947 90445 0 3 0x82 thrsleep syz-fuzzer 47898 514703 90445 0 3 0x4000082 nanosleep syz-fuzzer 47898 381585 90445 0 3 0x4000082 thrsleep syz-fuzzer 47898 244633 90445 0 3 0x4000082 thrsleep syz-fuzzer 47898 504035 90445 0 3 0x4000082 thrsleep syz-fuzzer 47898 441275 90445 0 3 0x4000082 nanosleep syz-fuzzer 47898 8755 90445 0 3 0x4000082 thrsleep syz-fuzzer 47898 235571 90445 0 3 0x4000082 thrsleep syz-fuzzer 47898 440240 90445 0 3 0x4000082 kqread syz-fuzzer 47898 355508 90445 0 3 0x4000082 thrsleep syz-fuzzer 90445 329401 34869 0 3 0x10008a pause ksh 34869 465788 41641 0 3 0x92 select sshd 35350 158403 1 0 3 0x100083 ttyin getty 41641 217252 1 0 3 0x80 select sshd 5552 474824 78825 74 3 0x100092 bpf pflogd 78825 100846 1 0 3 0x80 netio pflogd 34222 424501 27835 73 3 0x100090 kqread syslogd 27835 324002 1 0 3 0x100082 netio syslogd 40571 508752 1 77 3 0x100090 poll dhclient * 3258 175186 1 0 7 0 dhclient 82642 13870 0 0 3 0x14200 pgzero zerothread 24936 376367 0 0 3 0x14200 aiodoned aiodoned 65167 48126 0 0 3 0x14200 syncer update 55824 501156 0 0 3 0x14200 cleaner cleaner 23034 144834 0 0 3 0x14200 reaper reaper 95271 142100 0 0 3 0x14200 pgdaemon pagedaemon 46387 455183 0 0 3 0x14200 bored crynlk 11078 263148 0 0 3 0x14200 bored crypto 54871 252297 0 0 3 0x40014200 acpi0 acpi0 98121 256643 0 0 3 0x40014200 idle1 41337 233206 0 0 3 0x14200 bored softnet 17191 388665 0 0 3 0x14200 bored systqmp 46475 513402 0 0 3 0x14200 bored systq 95443 41563 0 0 3 0x40014200 bored softclock 53781 507114 0 0 3 0x40014200 idle0 85543 196174 0 0 3 0x14200 bored smr 1 25024 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 3258 (dhclient) thread 0xffff800020a7d118 (175186) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82675f38) #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 9514 6415K 7379K 78643K 10894 0 pcb 13 8K 8K 78643K 44 0 rtable 99 4K 4K 78643K 326 0 ifaddr 75 15K 15K 78643K 130 0 counters 45 34K 34K 78643K 65 0 ioctlops 0 0K 4K 78643K 1487 0 iov 0 0K 12K 78643K 24 0 mount 1 1K 1K 78643K 1 0 vnodes 1229 77K 77K 78643K 1301 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 30 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 134 0 proc 61 63K 83K 78643K 462 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 7 0 in_multi 51 2K 2K 78643K 72 0 ether_multi 1 0K 0K 78643K 2 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 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 214 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 38K 38K 78643K 1376 0 UVM aobj 8 5K 5K 78643K 10 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 9 0 NDP 12 0K 0K 78643K 29 0 temp 110 3016K 3081K 78643K 2870 0 kqueue 3 4K 8K 78643K 6 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 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 37 0 35 1 0 1 1 0 8 0 rtentry 112 62 0 24 2 0 2 2 0 8 0 unpcb 120 119 0 109 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpqe 32 91 0 91 2 1 1 1 0 8 1 tcpcb 544 43 0 38 1 0 1 1 0 8 0 inpcb 280 348 0 340 3 0 3 3 0 8 2 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 10 0 5 1 0 1 1 0 8 0 ppxss 1128 4 0 4 1 0 1 1 0 8 1 pffrag 232 2 0 2 1 1 0 1 0 482 0 pffrnode 88 2 0 2 1 1 0 1 0 8 0 pffrent 40 90 0 90 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 24 0 2 1 0 1 1 0 8 0 pfstkey 112 24 0 2 1 0 1 1 0 8 0 pfstate 328 24 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 337 0 130 15 1 14 15 0 8 1 art_table 32 338 0 130 2 0 2 2 0 8 0 art_node 16 61 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 30 0 7 1 0 1 1 0 8 0 semapl 112 28 0 18 1 0 1 1 0 8 0 shmpl 112 8 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1589 0 180 46 0 46 46 0 8 0 ffsino 272 1589 0 180 95 0 95 95 0 8 0 nchpl 144 1990 0 371 61 0 61 61 0 8 0 uvmvnodes 72 1692 0 0 31 0 31 31 0 8 0 vnodes 208 1692 0 0 90 0 90 90 0 8 0 namei 1024 5245 0 5245 1 0 1 1 0 8 1 percpumem 16 43 0 10 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 5 0 4 2 1 1 1 0 8 0 scxspl 192 6092 0 6092 8 1 7 7 0 8 7 plimitpl 152 21 0 13 1 0 1 1 0 8 0 sigapl 432 333 0 318 3 1 2 3 0 8 0 futexpl 56 2443 0 2442 1 0 1 1 0 8 0 knotepl 112 57 0 38 1 0 1 1 0 8 0 kqueuepl 144 30 0 28 1 0 1 1 0 8 0 pipelkpl 48 90 0 80 1 0 1 1 0 8 0 pipepl 120 180 0 161 2 1 1 2 0 8 0 fdescpl 496 334 0 318 3 0 3 3 0 8 0 filepl 152 2061 0 1960 6 1 5 6 0 8 1 lockfpl 104 41 0 40 1 0 1 1 0 8 0 lockfspl 48 18 0 17 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 125 0 116 1 0 1 1 0 8 0 zombiepl 144 318 0 318 1 0 1 1 0 8 1 processpl 960 350 0 318 5 0 5 5 0 8 0 procpl 624 611 0 568 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 9 0 9 1 0 1 1 0 8 1 sockpl 400 511 0 491 5 0 5 5 0 8 2 mcl64k 65536 8 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 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 176 0 0 21 0 21 21 0 8 0 mtagpl 80 12 0 0 1 0 1 1 0 8 0 mbufpl 256 233 0 0 15 0 15 15 0 8 0 bufpl 280 4398 0 174 302 0 302 302 0 8 0 anonpl 16 50471 0 33645 86 1 85 85 0 124 16 amapchunkpl 152 1685 0 1552 7 0 7 7 0 158 0 amappl16 192 1711 0 787 59 0 59 59 0 8 12 amappl15 184 54 0 51 1 0 1 1 0 8 0 amappl14 176 5 0 3 2 1 1 1 0 8 0 amappl13 168 33 0 31 1 0 1 1 0 8 0 amappl12 160 6 0 4 2 1 1 1 0 8 0 amappl11 152 76 0 57 1 0 1 1 0 8 0 amappl10 144 71 0 65 1 0 1 1 0 8 0 amappl9 136 392 0 389 1 0 1 1 0 8 0 amappl8 128 322 0 298 1 0 1 1 0 8 0 amappl7 120 166 0 155 1 0 1 1 0 8 0 amappl6 112 26 0 22 1 0 1 1 0 8 0 amappl5 104 242 0 225 1 0 1 1 0 8 0 amappl4 96 510 0 475 2 1 1 2 0 8 0 amappl3 88 105 0 99 1 0 1 1 0 8 0 amappl2 80 1808 0 1738 3 1 2 3 0 8 0 amappl1 72 17279 0 16854 26 16 10 20 0 8 0 amappl 80 862 0 817 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 9 0 2 1 0 1 1 0 8 0 uaddrrnd 24 339 0 322 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 339 0 322 1 0 1 1 0 8 0 vmmpekpl 168 6621 0 6585 2 0 2 2 0 8 0 vmmpepl 168 48437 0 46387 124 8 116 119 0 357 24 vmsppl 368 338 0 322 2 0 2 2 0 8 0 pdppl 4096 685 0 645 6 0 6 6 0 8 0 pvpl 32 161966 0 141994 199 0 199 199 0 265 36 pmappl 232 338 0 322 3 1 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 177 0 4 5 0 5 5 0 8 0