panic: receive 1: so 0xfffffd806f689190, so_type 3, sb_cc 6432 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 395100 64712 0 0x2 0x4000000 1 syz-fuzzer *300295 59138 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d9e7d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f689190,0,ffff800020e1d2a8,0,0,ffff800020e1d1b4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807b03a2f8,ffff800020e1d2a8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1d2a8,0,ffff800020e1d390) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1d340,ffff800020e1d390) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d410) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d410) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0370, 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 0xfffffd806f689190, so_type 3, sb_cc 6432 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d9e7d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f689190,0,ffff800020e1d2a8,0,0,ffff800020e1d1b4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807b03a2f8,ffff800020e1d2a8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1d2a8,0,ffff800020e1d390) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1d340,ffff800020e1d390) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d410) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d410) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0370, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1cff0 rbx 0xffff800020e1d0a0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff813837bf kprintf+0x16f r9 0x1 r10 0x2 r11 0x1d4a53b2fffab986 r12 0x3000000008 r13 0xffff800020e1d000 r14 0x100 r15 0x1 rip 0xffffffff8196be18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1cfe0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=300295 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc9c8,0xffff800020ddd398 process=0xffff800020df0f70 user=0xffff800020e18000, vmspace=0xfffffd807f0002e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 65630 133943 78218 0 2 0 syz-executor.1 65630 88559 78218 0 3 0x4000000 smrbar syz-executor.1 78218 272921 64712 0 3 0x82 nanosleep syz-executor.1 30851 449662 0 0 3 0x14200 bored sosplice 87002 119864 64712 0 3 0x82 piperd syz-executor.0 64712 119283 64401 0 3 0x82 thrsleep syz-fuzzer 64712 395100 64401 0 7 0x4000002 syz-fuzzer 64712 266883 64401 0 3 0x4000082 thrsleep syz-fuzzer 64712 130107 64401 0 3 0x4000082 thrsleep syz-fuzzer 64712 459590 64401 0 3 0x4000082 thrsleep syz-fuzzer 64712 113871 64401 0 3 0x4000082 thrsleep syz-fuzzer 64712 358248 64401 0 3 0x4000082 thrsleep syz-fuzzer 64712 504860 64401 0 3 0x4000082 kqread syz-fuzzer 64712 302834 64401 0 3 0x4000082 thrsleep syz-fuzzer 64712 434469 64401 0 3 0x4000082 thrsleep syz-fuzzer 64712 126075 64401 0 2 0x4000002 syz-fuzzer 64401 253595 68885 0 3 0x10008a pause ksh 68885 4495 55001 0 3 0x92 select sshd 38922 128338 1 0 3 0x100083 ttyin getty 55001 313955 1 0 3 0x80 select sshd 9292 189877 77847 74 3 0x100092 bpf pflogd 77847 447339 1 0 3 0x80 netio pflogd 17374 260895 70080 73 3 0x100090 kqread syslogd 70080 122383 1 0 3 0x100082 netio syslogd 52314 88021 1 77 3 0x100090 poll dhclient *59138 300295 1 0 7 0 dhclient 80463 88422 0 0 3 0x14200 bored smr 20180 496189 0 0 2 0x14200 zerothread 18285 204228 0 0 3 0x14200 aiodoned aiodoned 60622 270406 0 0 3 0x14200 syncer update 38160 37957 0 0 3 0x14200 cleaner cleaner 41326 147369 0 0 3 0x14200 reaper reaper 18531 76074 0 0 3 0x14200 pgdaemon pagedaemon 75637 51966 0 0 3 0x14200 bored crynlk 94044 247347 0 0 3 0x14200 bored crypto 29713 437157 0 0 3 0x40014200 acpi0 acpi0 53658 106735 0 0 3 0x40014200 idle1 10687 46848 0 0 3 0x14200 bored softnet 68425 47513 0 0 3 0x14200 bored systqmp 58492 338050 0 0 3 0x14200 bored systq 46474 412856 0 0 2 0x40014200 softclock 28811 3634 0 0 3 0x40014200 idle0 1 260704 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 59138 (dhclient) thread 0xffff800020ddcc38 (300295) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828b9310) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 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 9556 6443K 6935K 78643K 12048 0 pcb 13 8K 8K 78643K 194 0 rtable 92 4K 5K 78643K 499 0 ifaddr 106 19K 19K 78643K 222 0 sysctl 2 0K 0K 78643K 2 0 counters 45 34K 34K 78643K 67 0 ioctlops 0 0K 4K 78643K 1592 0 iov 0 0K 32K 78643K 137 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1720 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 14 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 157 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 967 0 sigio 0 0K 0K 78643K 8 0 proc 61 63K 83K 78643K 536 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 110 0 in_multi 66 3K 3K 78643K 272 0 ether_multi 1 0K 0K 78643K 41 0 mrt 0 0K 0K 78643K 8 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 294 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 149 121K 121K 78643K 4422 0 UVM aobj 46 2K 2K 78643K 47 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 203 0 NDP 17 0K 0K 78643K 43 0 temp 155 3861K 3925K 78643K 12366 0 kqueue 3 4K 10K 78643K 44 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 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 54 0 52 1 0 1 1 0 8 0 rtentry 112 97 0 64 2 0 2 2 0 8 0 unpcb 120 2152 0 2142 2 1 1 2 0 8 0 syncache 264 10 0 10 4 4 0 1 0 8 0 tcpqe 32 660 0 660 1 1 0 1 0 8 0 tcpcb 544 434 0 430 2 1 1 2 0 8 0 inpcb 296 1250 0 1241 4 2 2 3 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 28 0 24 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 3 0 3 3 2 1 1 0 8 1 pfstscr 40 4 0 3 1 0 1 1 0 8 0 pffrag 232 5 0 4 3 2 1 1 0 482 0 pffrnode 88 5 0 4 3 2 1 1 0 8 0 pffrent 40 13 0 12 3 2 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 pfrktable 1344 32 0 29 2 1 1 1 0 8 0 pfstitem 24 41 0 35 1 0 1 1 0 8 0 pfstkey 112 43 0 37 2 1 1 2 0 8 0 pfstate 328 41 0 36 3 1 2 3 0 8 0 pfrule 1360 35 0 24 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 486 0 298 17 3 14 15 0 8 0 art_table 32 487 0 298 2 0 2 2 0 8 0 art_node 16 96 0 67 1 0 1 1 0 8 0 sysvmsgpl 40 57 0 36 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 145 0 135 1 0 1 1 0 8 0 shmpl 112 45 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3045 0 1641 89 0 89 89 0 8 0 ffsino 272 3045 0 1641 96 1 95 95 0 8 0 nchpl 144 4638 0 3048 60 0 60 60 0 8 0 uvmvnodes 72 3429 0 0 63 0 63 63 0 8 0 vnodes 208 3429 0 0 181 0 181 181 0 8 0 namei 1024 13369 0 13369 3 2 1 1 0 8 1 percpumem 16 44 0 11 1 0 1 1 0 8 0 vcpupl 1984 9 0 0 2 0 2 2 0 8 0 vmpool 560 23 0 14 1 0 1 1 0 8 0 pfiaddrpl 120 10 0 8 5 4 1 1 0 8 0 scxspl 192 14268 0 14268 10 9 1 7 0 8 1 plimitpl 152 104 0 96 1 0 1 1 0 8 0 sigapl 424 1180 0 1148 4 0 4 4 0 8 0 futexpl 56 17639 0 17639 2 1 1 1 0 8 1 knotepl 112 115 0 96 1 0 1 1 0 8 0 kqueuepl 144 144 0 139 1 0 1 1 0 8 0 pipelkpl 48 205 0 195 1 0 1 1 0 8 0 pipepl 120 410 0 391 1 0 1 1 0 8 0 fdescpl 496 1164 0 1148 3 0 3 3 0 8 0 filepl 152 8594 0 8494 7 2 5 6 0 8 1 lockfpl 104 227 0 226 1 0 1 1 0 8 0 lockfspl 48 70 0 69 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 28 0 17 1 0 1 1 0 8 0 ucredpl 96 866 0 857 1 0 1 1 0 8 0 zombiepl 144 1148 0 1148 2 1 1 1 0 8 1 processpl 984 1180 0 1148 6 1 5 5 0 8 0 procpl 624 3218 0 3175 4 0 4 4 0 8 0 sosppl 128 8 0 8 2 2 0 1 0 8 0 sockpl 400 3464 0 3445 10 6 4 5 0 8 2 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 15 0 0 2 0 2 2 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 254 0 0 31 0 31 31 0 8 0 mtagpl 96 115 0 0 3 0 3 3 0 8 0 mbufpl 256 512 0 0 28 0 28 28 0 8 0 bufpl 280 5719 0 136 399 0 399 399 0 8 0 anonpl 16 123795 0 107659 112 44 68 84 0 124 0 amapchunkpl 152 7880 0 7724 25 17 8 20 0 158 0 amappl16 192 5851 0 4957 80 34 46 57 0 8 1 amappl15 184 10 0 8 1 0 1 1 0 8 0 amappl14 176 23 0 19 1 0 1 1 0 8 0 amappl13 168 289 0 285 1 0 1 1 0 8 0 amappl12 160 19 0 15 1 0 1 1 0 8 0 amappl11 152 62 0 47 1 0 1 1 0 8 0 amappl10 144 589 0 582 1 0 1 1 0 8 0 amappl9 136 501 0 498 1 0 1 1 0 8 0 amappl8 128 502 0 468 2 0 2 2 0 8 0 amappl7 120 681 0 669 1 0 1 1 0 8 0 amappl6 112 28 0 22 1 0 1 1 0 8 0 amappl5 104 1070 0 1053 1 0 1 1 0 8 0 amappl4 96 753 0 725 1 0 1 1 0 8 0 amappl3 88 151 0 146 1 0 1 1 0 8 0 amappl2 80 8334 0 8260 2 0 2 2 0 8 0 amappl1 72 33848 0 33412 24 14 10 18 0 8 0 amappl 80 3809 0 3755 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 46 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1187 0 1162 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1187 0 1162 1 0 1 1 0 8 0 vmmpekpl 168 12260 0 12224 2 0 2 2 0 8 0 vmmpepl 168 148239 0 146164 175 53 122 126 0 357 30 vmsppl 368 1186 0 1162 3 0 3 3 0 8 0 pdppl 4096 2381 0 2333 9 2 7 7 0 8 1 pvpl 32 364525 0 345246 239 66 173 197 0 265 12 pmappl 232 1186 0 1162 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 307 0 18 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d9e7d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f689190,0,ffff800020e1d2a8,0,0,ffff800020e1d1b4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807b03a2f8,ffff800020e1d2a8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1d2a8,0,ffff800020e1d390) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1d340,ffff800020e1d390) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d410) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d410) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0370, count: -8 ddb{0}> machine ddbcpu 1