panic: receive 1a: so 0xfffffd806f6ed640, so_type 3, m 0xfffffd8063138d00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 246133 94950 0 0 0 1 syz-executor.1 *413788 32313 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d7317) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6ed640,0,ffff800020abdd78,0,0,ffff800020abdc84) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8070632260,ffff800020abdd78,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c9c8,6,ffff800020abdd78,0,ffff800020abde60) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c9c8,ffff800020abde10,ffff800020abde60) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdee0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdee0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1650, 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 0xfffffd806f6ed640, so_type 3, m 0xfffffd8063138d00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d7317) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6ed640,0,ffff800020abdd78,0,0,ffff800020abdc84) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8070632260,ffff800020abdd78,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c9c8,6,ffff800020abdd78,0,ffff800020abde60) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c9c8,ffff800020abde10,ffff800020abde60) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdee0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdee0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1650, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abdac0 rbx 0xffff800020abdb70 rdx 0xffff800020a7c9c8 rcx 0 rax 0 r8 0xffffffff81712b6f kprintf+0x16f r9 0x1 r10 0x25 r11 0x1013e21074e3f79b r12 0x3000000008 r13 0xffff800020abdad0 r14 0x100 r15 0x1 rip 0xffffffff819ace08 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abdab0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=413788 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7cc38,0xffff800020a7ceb8 process=0xffff800020a903d0 user=0xffff800020ab8000, vmspace=0xfffffd807efff450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94950 246133 81647 0 7 0 syz-executor.1 94950 278301 81647 0 3 0x4000080 fsleep syz-executor.1 81647 512118 22759 0 2 0x482 syz-executor.1 20415 479797 0 0 3 0x14200 bored sosplice 13134 329740 22759 0 3 0x82 nanosleep syz-executor.0 22759 260887 20072 0 3 0x82 thrsleep syz-fuzzer 22759 513756 20072 0 2 0x4000482 syz-fuzzer 22759 106325 20072 0 3 0x4000082 thrsleep syz-fuzzer 22759 412360 20072 0 3 0x4000082 thrsleep syz-fuzzer 22759 143696 20072 0 3 0x4000082 kqread syz-fuzzer 22759 372793 20072 0 3 0x4000082 thrsleep syz-fuzzer 22759 111945 20072 0 3 0x4000082 thrsleep syz-fuzzer 22759 19982 20072 0 3 0x4000082 thrsleep syz-fuzzer 22759 463695 20072 0 3 0x4000082 thrsleep syz-fuzzer 22759 42356 20072 0 2 0x4000482 syz-fuzzer 20072 16410 59976 0 3 0x10008a pause ksh 59976 509002 25663 0 3 0x92 select sshd 27049 283492 1 0 3 0x100083 ttyin getty 25663 93944 1 0 3 0x80 select sshd 87201 259893 52901 74 3 0x100092 bpf pflogd 52901 222614 1 0 3 0x80 netio pflogd 96672 340179 28020 73 3 0x100090 kqread syslogd 28020 283167 1 0 3 0x100082 netio syslogd 19695 516912 1 77 3 0x100090 poll dhclient *32313 413788 1 0 7 0 dhclient 35531 211298 0 0 3 0x14200 pgzero zerothread 73668 412263 0 0 3 0x14200 aiodoned aiodoned 44399 340086 0 0 3 0x14200 syncer update 56575 520730 0 0 3 0x14200 cleaner cleaner 68946 356277 0 0 3 0x14200 reaper reaper 57520 521805 0 0 3 0x14200 pgdaemon pagedaemon 17339 122519 0 0 3 0x14200 bored crynlk 57588 126600 0 0 3 0x14200 bored crypto 5392 126558 0 0 3 0x40014200 acpi0 acpi0 56401 503220 0 0 3 0x40014200 idle1 33240 95340 0 0 3 0x14200 bored softnet 77390 202918 0 0 3 0x14200 bored systqmp 21265 155891 0 0 3 0x14200 bored systq 87223 238256 0 0 3 0x40014200 bored softclock 61175 424623 0 0 3 0x40014200 idle0 58326 445981 0 0 2 0x14200 smr 1 235173 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 32313 (dhclient) thread 0xffff800020a7c9c8 (413788) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8267edf8) #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 9545 6745K 7522K 78643K 11175 0 pcb 13 8K 8K 78643K 62 0 rtable 103 3K 3K 78643K 308 0 ifaddr 64 12K 14K 78643K 117 0 counters 43 33K 34K 78643K 57 0 ioctlops 0 0K 4K 78643K 1481 0 iov 0 0K 12K 78643K 48 0 mount 1 1K 1K 78643K 1 0 vnodes 1232 77K 78K 78643K 1393 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 12 1K 1K 78643K 54 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 220 0 sigio 0 0K 0K 78643K 4 0 proc 61 63K 83K 78643K 492 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 63 0 in_multi 47 2K 3K 78643K 101 0 ether_multi 1 0K 0K 78643K 10 0 mrt 0 0K 0K 78643K 4 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 246 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 124 87K 96K 78643K 1688 0 UVM aobj 14 2K 2K 78643K 14 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 53 0 NDP 11 0K 0K 78643K 25 0 temp 127 3022K 3086K 78643K 5604 0 kqueue 3 4K 8K 78643K 10 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 10 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 29 0 27 1 0 1 1 0 8 0 rtentry 112 64 0 21 2 0 2 2 0 8 0 unpcb 120 185 0 173 1 0 1 1 0 8 0 syncache 264 9 0 9 2 1 1 1 0 8 1 tcpqe 32 60 0 60 1 0 1 1 0 8 1 tcpcb 544 185 0 180 1 0 1 1 0 8 0 inpcb 280 569 0 560 2 0 2 2 0 8 1 rttmr 72 2 0 2 1 0 1 1 0 8 1 nd6 48 10 0 6 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 3 0 3 2 1 1 1 0 482 1 pffrnode 88 3 0 3 2 1 1 1 0 8 1 pffrent 40 7 0 7 2 1 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 263 0 87 13 0 13 13 0 8 0 art_table 32 264 0 87 2 0 2 2 0 8 0 art_node 16 63 0 23 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 52 0 42 1 0 1 1 0 8 0 shmpl 112 12 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1699 0 294 46 0 46 46 0 8 0 ffsino 272 1699 0 294 95 0 95 95 0 8 1 nchpl 144 2187 0 584 61 0 61 61 0 8 0 uvmvnodes 72 1875 0 0 35 0 35 35 0 8 0 vnodes 208 1875 0 0 99 0 99 99 0 8 0 namei 1024 6013 0 6013 1 0 1 1 0 8 1 percpumem 16 39 0 7 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 560 6 0 0 1 0 1 1 0 8 0 scxspl 192 7060 0 7060 8 5 3 7 0 8 3 plimitpl 152 37 0 29 1 0 1 1 0 8 0 sigapl 432 416 0 401 3 1 2 3 0 8 0 futexpl 56 4217 0 4216 1 0 1 1 0 8 0 knotepl 112 73 0 54 1 0 1 1 0 8 0 kqueuepl 144 23 0 21 1 0 1 1 0 8 0 pipelkpl 48 119 0 109 1 0 1 1 0 8 0 pipepl 120 238 0 219 1 0 1 1 0 8 0 fdescpl 496 417 0 401 3 0 3 3 0 8 0 filepl 152 2756 0 2654 6 0 6 6 0 8 2 lockfpl 104 115 0 114 1 0 1 1 0 8 0 lockfspl 48 47 0 46 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 196 0 187 1 0 1 1 0 8 0 zombiepl 144 403 0 402 1 0 1 1 0 8 0 processpl 960 435 0 402 5 0 5 5 0 8 0 procpl 624 858 0 815 4 0 4 4 0 8 0 sosppl 128 11 0 11 1 0 1 1 0 8 1 sockpl 400 799 0 777 5 0 5 5 0 8 2 mcl64k 65536 266 0 0 34 0 34 34 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 161 0 0 20 0 20 20 0 8 0 mtagpl 80 34 0 0 1 0 1 1 0 8 0 mbufpl 256 702 0 0 44 0 44 44 0 8 0 bufpl 280 6980 0 712 448 0 448 448 0 8 0 anonpl 16 66989 0 50333 84 1 83 83 0 124 14 amapchunkpl 152 2523 0 2386 11 0 11 11 0 158 3 amappl16 192 2317 0 1404 61 7 54 58 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 52 0 49 2 1 1 1 0 8 0 amappl13 168 61 0 58 1 0 1 1 0 8 0 amappl12 160 6 0 6 1 1 0 1 0 8 0 amappl11 152 72 0 53 1 0 1 1 0 8 0 amappl10 144 118 0 109 1 0 1 1 0 8 0 amappl9 136 388 0 385 1 0 1 1 0 8 0 amappl8 128 349 0 320 3 1 2 2 0 8 0 amappl7 120 223 0 210 1 0 1 1 0 8 0 amappl6 112 26 0 25 1 0 1 1 0 8 0 amappl5 104 245 0 229 1 0 1 1 0 8 0 amappl4 96 600 0 562 2 1 1 2 0 8 0 amappl3 88 184 0 176 1 0 1 1 0 8 0 amappl2 80 2363 0 2289 3 1 2 3 0 8 0 amappl1 72 19181 0 18751 26 16 10 20 0 8 0 amappl 80 1138 0 1089 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 13 0 0 1 0 1 1 0 8 0 uaddrrnd 24 423 0 401 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 423 0 401 1 0 1 1 0 8 0 vmmpekpl 168 7269 0 7234 2 0 2 2 0 8 0 vmmpepl 168 59181 0 57108 135 10 125 125 0 357 29 vmsppl 368 422 0 401 3 0 3 3 0 8 0 pdppl 4096 853 0 808 7 0 7 7 0 8 1 pvpl 32 196143 0 176352 193 0 193 193 0 265 30 pmappl 232 422 0 401 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 237 0 3 7 0 7 7 0 8 0