panic: receive 3: so 0xfffffd806f6f2190, so_type 3, m 0xfffffd807a23ab00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 299804 66656 0 0 0 0 syz-executor.1 *415734 82104 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821ce05d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2190,0,ffff800020abd9f8,0,0,ffff800020abd904) at soreceive+0x1727 soo_read(fffffd80723f2390,ffff800020abd9f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c4e8,6,ffff800020abd9f8,0,ffff800020abdae0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c4e8,ffff800020abda90,ffff800020abdae0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdb60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdb60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc19a0, 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 0xfffffd806f6f2190, so_type 3, m 0xfffffd807a23ab00, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821ce05d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2190,0,ffff800020abd9f8,0,0,ffff800020abd904) at soreceive+0x1727 soo_read(fffffd80723f2390,ffff800020abd9f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c4e8,6,ffff800020abd9f8,0,ffff800020abdae0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c4e8,ffff800020abda90,ffff800020abdae0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdb60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdb60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc19a0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd740 rbx 0xffff800020abd7f0 rdx 0xffff800020a7c4e8 rcx 0 rax 0 r8 0xffffffff821a0dcf kprintf+0x16f r9 0x1 r10 0x25 r11 0xfd6e7a0289c5af41 r12 0x3000000008 r13 0xffff800020abd750 r14 0x100 r15 0x1 rip 0xffffffff819c9588 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd730 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=415734 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7cea8,0xffff800020a7c9d8 process=0xffff800020a903d0 user=0xffff800020ab8000, vmspace=0xfffffd807efff730 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 39518 402679 34493 0 2 0 syz-executor.0 66656 299804 22197 0 7 0 syz-executor.1 66656 144898 22197 0 3 0x4000080 fsleep syz-executor.1 22197 22662 74409 0 3 0x82 nanosleep syz-executor.1 34493 80523 74409 0 3 0x82 nanosleep syz-executor.0 74409 223683 93454 0 3 0x82 kqread syz-fuzzer 74409 401773 93454 0 3 0x4000082 nanosleep syz-fuzzer 74409 308375 93454 0 3 0x4000082 thrsleep syz-fuzzer 74409 320931 93454 0 3 0x4000082 thrsleep syz-fuzzer 74409 292629 93454 0 3 0x4000082 thrsleep syz-fuzzer 74409 10274 93454 0 3 0x4000082 thrsleep syz-fuzzer 74409 163741 93454 0 3 0x4000082 thrsleep syz-fuzzer 74409 355259 93454 0 3 0x4000082 nanosleep syz-fuzzer 74409 116641 93454 0 3 0x4000082 thrsleep syz-fuzzer 74409 62751 93454 0 3 0x4000082 thrsleep syz-fuzzer 93454 254039 29321 0 3 0x10008a pause ksh 29321 261962 12089 0 3 0x92 select sshd 77089 281012 1 0 3 0x100083 ttyin getty 12089 167290 1 0 3 0x80 select sshd 47489 487889 99105 74 3 0x100092 bpf pflogd 99105 268591 1 0 3 0x80 netio pflogd 19317 141181 5280 73 3 0x100090 kqread syslogd 5280 378794 1 0 3 0x100082 netio syslogd 70876 104729 1 77 3 0x100090 poll dhclient *82104 415734 1 0 7 0 dhclient 81322 280479 0 0 3 0x14200 pgzero zerothread 86974 319435 0 0 3 0x14200 aiodoned aiodoned 16553 407364 0 0 3 0x14200 syncer update 4079 109710 0 0 3 0x14200 cleaner cleaner 34684 446629 0 0 3 0x14200 reaper reaper 84691 311482 0 0 3 0x14200 pgdaemon pagedaemon 68888 399287 0 0 3 0x14200 bored crynlk 57931 393537 0 0 3 0x14200 bored crypto 63169 273423 0 0 3 0x40014200 acpi0 acpi0 81319 366641 0 0 3 0x40014200 idle1 68320 486712 0 0 3 0x14200 bored softnet 59699 234309 0 0 3 0x14200 bored systqmp 94499 393633 0 0 3 0x14200 bored systq 5195 410147 0 0 3 0x40014200 bored softclock 5040 219390 0 0 3 0x40014200 idle0 23448 164560 0 0 3 0x14200 bored smr 1 401526 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 82104 (dhclient) thread 0xffff800020a7c4e8 (415734) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826463f0) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9476 6400K 6543K 78643K 10600 0 pcb 13 8K 8K 78643K 29 0 rtable 86 7K 7K 78643K 215 0 ifaddr 45 10K 11K 78643K 50 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1469 0 iov 0 0K 12K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1232 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 6 0K 0K 78643K 10 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 54 0 sigio 0 0K 0K 78643K 4 0 proc 59 63K 83K 78643K 445 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 18 0 in_multi 22 1K 2K 78643K 33 0 ether_multi 1 0K 0K 78643K 1 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 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 207 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 103 21K 22K 78643K 1081 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 2 0 NDP 7 0K 0K 78643K 11 0 temp 76 3016K 3080K 78643K 2119 0 kqueue 3 4K 4K 78643K 3 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 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 19 0 17 1 0 1 1 0 8 0 rtentry 112 46 0 13 2 0 2 2 0 8 0 unpcb 120 42 0 31 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 12 0 8 1 0 1 1 0 8 0 inpcb 280 81 0 73 2 0 2 2 0 8 0 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 6 0 3 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 15 0 1 1 0 1 1 0 8 0 pfstkey 112 15 0 1 1 0 1 1 0 8 0 pfstate 328 15 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 189 0 44 12 0 12 12 0 8 2 art_table 32 190 0 44 2 0 2 2 0 8 0 art_node 16 45 0 15 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 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 1448 0 41 46 0 46 46 0 8 0 ffsino 272 1448 0 41 94 0 94 94 0 8 0 nchpl 144 1705 0 90 61 0 61 61 0 8 1 uvmvnodes 72 1502 0 0 28 0 28 28 0 8 0 vnodes 208 1502 0 0 80 0 80 80 0 8 0 namei 1024 4366 0 4366 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 4944 0 4944 2 1 1 2 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 432 253 0 237 3 0 3 3 0 8 1 futexpl 56 400 0 399 1 0 1 1 0 8 0 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 144 7 0 4 1 0 1 1 0 8 0 pipelkpl 48 86 0 76 1 0 1 1 0 8 0 pipepl 120 172 0 153 1 0 1 1 0 8 0 fdescpl 496 254 0 237 3 0 3 3 0 8 0 filepl 152 1301 0 1198 5 0 5 5 0 8 1 lockfpl 104 21 0 20 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 57 0 48 1 0 1 1 0 8 0 zombiepl 144 237 0 237 1 0 1 1 0 8 1 processpl 960 269 0 237 5 0 5 5 0 8 1 procpl 624 330 0 288 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 0 1 1 0 8 1 sockpl 400 142 0 121 4 0 4 4 0 8 1 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 153 0 0 19 0 19 19 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 182 0 0 11 0 11 11 0 8 0 bufpl 280 4079 0 174 279 0 279 279 0 8 0 anonpl 16 38920 0 23522 64 1 63 63 0 124 1 amapchunkpl 152 1262 0 1124 8 0 8 8 0 158 1 amappl16 192 1033 0 195 43 0 43 43 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 15 0 12 2 1 1 1 0 8 0 amappl13 168 26 0 24 1 0 1 1 0 8 0 amappl12 160 8 0 7 1 0 1 1 0 8 0 amappl11 152 85 0 65 1 0 1 1 0 8 0 amappl10 144 17 0 12 1 0 1 1 0 8 0 amappl9 136 400 0 396 1 0 1 1 0 8 0 amappl8 128 321 0 302 1 0 1 1 0 8 0 amappl7 120 117 0 106 1 0 1 1 0 8 0 amappl6 112 31 0 28 1 0 1 1 0 8 0 amappl5 104 151 0 135 1 0 1 1 0 8 0 amappl4 96 508 0 471 2 1 1 2 0 8 0 amappl3 88 106 0 100 1 0 1 1 0 8 0 amappl2 80 1072 0 1003 3 1 2 3 0 8 0 amappl1 72 15533 0 15093 25 9 16 20 0 8 6 amappl 80 581 0 537 1 0 1 1 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 254 0 237 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 254 0 237 1 0 1 1 0 8 0 vmmpekpl 168 6004 0 5969 2 0 2 2 0 8 0 vmmpepl 168 38262 0 36212 117 4 113 113 0 357 23 vmsppl 368 253 0 237 2 0 2 2 0 8 0 pdppl 4096 515 0 474 6 0 6 6 0 8 0 pvpl 32 133746 0 115209 151 0 151 151 0 265 1 pmappl 232 253 0 237 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 164 0 3 5 0 5 5 0 8 0