panic: receive 1a: so 0xfffffd806f6f04b0, so_type 3, m 0xfffffd806f185200, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 407063 57147 0 0 0 1 syz-executor.1 *404200 93355 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821ea9c0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f04b0,0,ffff800020abd998,0,0,ffff800020abd8a4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8078c10130,ffff800020abd998,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cc38,6,ffff800020abd998,0,ffff800020abda80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cc38,ffff800020abda30,ffff800020abda80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdb00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdb00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc92f0, 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 0xfffffd806f6f04b0, so_type 3, m 0xfffffd806f185200, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821ea9c0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f04b0,0,ffff800020abd998,0,0,ffff800020abd8a4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8078c10130,ffff800020abd998,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cc38,6,ffff800020abd998,0,ffff800020abda80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cc38,ffff800020abda30,ffff800020abda80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdb00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdb00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc92f0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd6e0 rbx 0xffff800020abd790 rdx 0xffff800020a7cc38 rcx 0 rax 0 r8 0xffffffff8175843f kprintf+0x16f r9 0x1 r10 0x25 r11 0x8e588ed621516992 r12 0x3000000008 r13 0xffff800020abd6f0 r14 0x100 r15 0x1 rip 0xffffffff820c8cb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd6d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=404200 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7c758,0xffff800020a7ceb8 process=0xffff800020a90010 user=0xffff800020ab8000, vmspace=0xfffffd807efff000 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 57147 407063 26089 0 7 0 syz-executor.1 57147 212733 26089 0 2 0x4000000 syz-executor.1 26089 144234 51493 0 3 0x82 nanosleep syz-executor.1 52007 383927 51493 0 2 0x2 syz-executor.0 51493 511952 76897 0 3 0x82 kqread syz-fuzzer 51493 213012 76897 0 3 0x4000082 nanosleep syz-fuzzer 51493 308414 76897 0 3 0x4000082 nanosleep syz-fuzzer 51493 102225 76897 0 3 0x4000082 thrsleep syz-fuzzer 51493 342134 76897 0 3 0x4000082 thrsleep syz-fuzzer 51493 368951 76897 0 3 0x4000082 thrsleep syz-fuzzer 51493 426821 76897 0 3 0x4000082 thrsleep syz-fuzzer 51493 54935 76897 0 3 0x4000082 thrsleep syz-fuzzer 51493 381058 76897 0 3 0x4000082 thrsleep syz-fuzzer 51493 171203 76897 0 3 0x4000082 thrsleep syz-fuzzer 76897 56417 57635 0 3 0x10008a pause ksh 57635 79948 45520 0 3 0x92 select sshd 38036 483481 1 0 3 0x100083 ttyin getty 45520 304430 1 0 3 0x80 select sshd 7542 202489 61087 74 3 0x100092 bpf pflogd 61087 352170 1 0 3 0x80 netio pflogd 73522 39888 69187 73 3 0x100090 kqread syslogd 69187 99294 1 0 3 0x100082 netio syslogd 69869 61973 1 77 3 0x100090 poll dhclient *93355 404200 1 0 7 0 dhclient 28951 438660 0 0 3 0x14200 pgzero zerothread 5851 346308 0 0 3 0x14200 aiodoned aiodoned 84032 14806 0 0 3 0x14200 syncer update 23414 358720 0 0 3 0x14200 cleaner cleaner 8761 337583 0 0 3 0x14200 reaper reaper 62211 137855 0 0 3 0x14200 pgdaemon pagedaemon 38453 173565 0 0 3 0x14200 bored crynlk 64798 350260 0 0 3 0x14200 bored crypto 6089 336791 0 0 3 0x40014200 acpi0 acpi0 28146 212115 0 0 3 0x40014200 idle1 42256 495451 0 0 3 0x14200 bored softnet 86416 68264 0 0 3 0x14200 bored systqmp 23455 258232 0 0 3 0x14200 bored systq 21808 515446 0 0 3 0x40014200 bored softclock 31339 95508 0 0 3 0x40014200 idle0 29765 261804 0 0 3 0x14200 bored smr 1 134344 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 93355 (dhclient) thread 0xffff800020a7cc38 (404200) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82635f40) #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 9477 6401K 6407K 78643K 10573 0 pcb 13 8K 8K 78643K 13 0 rtable 105 3K 3K 78643K 201 0 ifaddr 49 11K 11K 78643K 52 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1469 0 iov 0 0K 2K 78643K 1 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1225 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 38 0 sigio 0 0K 0K 78643K 2 0 proc 59 63K 83K 78643K 438 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 33 2K 2K 78643K 33 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 19 95K 95K 78643K 19 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 107 22K 22K 78643K 1023 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 7 0K 0K 78643K 11 0 temp 71 3020K 3083K 78643K 2065 0 kqueue 3 4K 4K 78643K 3 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 6 0 0 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 45 0 1 2 0 2 2 0 8 0 unpcb 120 25 0 15 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 350 0 350 1 0 1 1 0 8 1 tcpcb 544 11 0 7 1 0 1 1 0 8 0 inpcb 280 42 0 35 1 0 1 1 0 8 0 nd6 48 6 0 0 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 12 0 0 1 0 1 1 0 8 0 pfstkey 112 12 0 0 1 0 1 1 0 8 0 pfstate 328 12 0 0 1 0 1 1 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 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1432 0 24 46 0 46 46 0 8 0 ffsino 272 1432 0 24 94 0 94 94 0 8 0 nchpl 144 1664 0 47 61 0 61 61 0 8 0 uvmvnodes 72 1478 0 0 27 0 27 27 0 8 0 vnodes 208 1478 0 0 78 0 78 78 0 8 0 namei 1024 4235 0 4235 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 4827 0 4827 2 1 1 2 0 8 1 plimitpl 152 15 0 7 1 0 1 1 0 8 0 sigapl 432 237 0 222 3 0 3 3 0 8 1 futexpl 56 118 0 118 1 0 1 1 0 8 1 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 144 2 0 0 1 0 1 1 0 8 0 pipelkpl 48 80 0 70 1 0 1 1 0 8 0 pipepl 120 160 0 141 2 0 2 2 0 8 1 fdescpl 496 238 0 222 3 0 3 3 0 8 0 filepl 152 1168 0 1066 5 0 5 5 0 8 1 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 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 45 0 36 1 0 1 1 0 8 0 zombiepl 144 222 0 222 1 0 1 1 0 8 1 processpl 960 253 0 222 5 0 5 5 0 8 0 procpl 624 272 0 231 4 0 4 4 0 8 0 sockpl 400 86 0 66 3 0 3 3 0 8 1 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 174 0 0 21 0 21 21 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 187 0 0 12 0 12 12 0 8 0 bufpl 280 4064 0 174 278 0 278 278 0 8 0 anonpl 16 38086 0 22703 64 1 63 63 0 124 1 amapchunkpl 152 1033 0 886 9 0 9 9 0 158 2 amappl16 192 948 0 130 41 0 41 41 0 8 0 amappl15 184 9 0 8 2 1 1 1 0 8 0 amappl14 176 7 0 4 2 1 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 11 0 8 2 1 1 1 0 8 0 amappl11 152 82 0 62 2 0 2 2 0 8 1 amappl10 144 20 0 12 1 0 1 1 0 8 0 amappl9 136 388 0 385 1 0 1 1 0 8 0 amappl8 128 310 0 288 1 0 1 1 0 8 0 amappl7 120 122 0 109 1 0 1 1 0 8 0 amappl6 112 27 0 24 1 0 1 1 0 8 0 amappl5 104 133 0 119 1 0 1 1 0 8 0 amappl4 96 497 0 469 1 0 1 1 0 8 0 amappl3 88 104 0 98 1 0 1 1 0 8 0 amappl2 80 976 0 907 3 0 3 3 0 8 1 amappl1 72 15430 0 14988 25 9 16 20 0 8 6 amappl 80 520 0 475 2 0 2 2 0 84 1 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 238 0 222 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 238 0 222 1 0 1 1 0 8 0 vmmpekpl 168 5874 0 5844 2 0 2 2 0 8 0 vmmpepl 168 36713 0 34761 122 4 118 118 0 357 33 vmsppl 368 237 0 222 2 0 2 2 0 8 0 pdppl 4096 483 0 444 6 0 6 6 0 8 1 pvpl 32 131641 0 113147 154 0 154 154 0 265 2 pmappl 232 237 0 222 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 166 0 3 5 0 5 5 0 8 0