panic: receive 3: so 0xfffffd806f6f54b0, so_type 3, m 0xfffffd8062fd3700, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 158170 92661 0 0 0 1 syz-executor.0 *259687 85963 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cbb5d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f54b0,0,ffff800020abd958,0,0,ffff800020abd864) at soreceive+0x1727 soo_read(fffffd807a001390,ffff800020abd958,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cea8,6,ffff800020abd958,0,ffff800020abda40) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cea8,ffff800020abd9f0,ffff800020abda40) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdac0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdac0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0ce0, 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 3: so 0xfffffd806f6f54b0, so_type 3, m 0xfffffd8062fd3700, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cbb5d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f54b0,0,ffff800020abd958,0,0,ffff800020abd864) at soreceive+0x1727 soo_read(fffffd807a001390,ffff800020abd958,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cea8,6,ffff800020abd958,0,ffff800020abda40) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cea8,ffff800020abd9f0,ffff800020abda40) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdac0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdac0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0ce0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd6a0 rbx 0xffff800020abd750 rdx 0xffff800020a7cea8 rcx 0 rax 0 r8 0xffffffff816f3ccf kprintf+0x16f r9 0x1 r10 0x25 r11 0x8a577d48de03307a r12 0x3000000008 r13 0xffff800020abd6b0 r14 0x100 r15 0x1 rip 0xffffffff81945118 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd690 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=259687 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7c9c8,0xffff800020a7d128 process=0xffff800020a90010 user=0xffff800020ab8000, vmspace=0xfffffd807efff000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2874 345272 58104 0 2 0 syz-executor.1 2874 256062 58104 0 3 0x4000080 fsleep syz-executor.1 92661 158170 91986 0 7 0 syz-executor.0 92661 331660 91986 0 3 0x4000080 bell syz-executor.0 58104 391724 98347 0 3 0x82 nanosleep syz-executor.1 92324 443708 0 0 3 0x14200 bored sosplice 29445 125514 1 0 3 0x100083 ttyin getty 91986 492648 98347 0 3 0x82 nanosleep syz-executor.0 98347 186392 38173 0 3 0x82 thrsleep syz-fuzzer 98347 318804 38173 0 3 0x4000082 thrsleep syz-fuzzer 98347 117627 38173 0 3 0x4000082 thrsleep syz-fuzzer 98347 118345 38173 0 3 0x4000082 thrsleep syz-fuzzer 98347 310371 38173 0 3 0x4000082 thrsleep syz-fuzzer 98347 57878 38173 0 3 0x4000082 thrsleep syz-fuzzer 98347 450505 38173 0 3 0x4000082 thrsleep syz-fuzzer 98347 492715 38173 0 3 0x4000082 thrsleep syz-fuzzer 98347 223422 38173 0 3 0x4000082 kqread syz-fuzzer 98347 155397 38173 0 3 0x4000082 thrsleep syz-fuzzer 38173 191418 72513 0 3 0x10008a pause ksh 72513 54255 15617 0 3 0x92 select sshd 15617 233801 1 0 3 0x80 select sshd 52163 152733 53405 74 3 0x100092 bpf pflogd 53405 317649 1 0 3 0x80 netio pflogd 90062 163675 61929 73 3 0x100090 kqread syslogd 61929 114858 1 0 3 0x100082 netio syslogd 26701 233846 1 77 3 0x100090 poll dhclient *85963 259687 1 0 7 0 dhclient 84174 120508 0 0 2 0x14200 zerothread 25302 120443 0 0 3 0x14200 aiodoned aiodoned 32642 980 0 0 3 0x14200 syncer update 17114 317953 0 0 3 0x14200 cleaner cleaner 63240 119787 0 0 3 0x14200 reaper reaper 9229 399823 0 0 3 0x14200 pgdaemon pagedaemon 35039 215411 0 0 3 0x14200 bored crynlk 56808 288260 0 0 3 0x14200 bored crypto 31131 114315 0 0 3 0x40014200 acpi0 acpi0 53780 461960 0 0 3 0x40014200 idle1 3064 472129 0 0 3 0x14200 bored softnet 30651 477848 0 0 3 0x14200 bored systqmp 9274 475216 0 0 3 0x14200 bored systq 32360 490182 0 0 3 0x40014200 bored softclock 76166 358566 0 0 3 0x40014200 idle0 73568 436796 0 0 3 0x14200 bored smr 1 497641 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 85963 (dhclient) thread 0xffff800020a7cea8 (259687) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262e460) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0xb3a sys/kern/uipc_socket.c:950 #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 9523 6423K 7075K 78643K 10891 0 pcb 13 8K 8K 78643K 71 0 rtable 103 3K 3K 78643K 294 0 ifaddr 68 13K 13K 78643K 99 0 counters 43 33K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1482 0 iov 0 0K 16K 78643K 32 0 mount 1 1K 1K 78643K 1 0 vnodes 1228 77K 77K 78643K 1346 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 12 0K 0K 78643K 55 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 207 0 sigio 0 0K 0K 78643K 6 0 proc 62 63K 83K 78643K 512 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 88 0 in_multi 43 2K 2K 78643K 110 0 ether_multi 1 0K 0K 78643K 11 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 109 493K 493K 78643K 109 0 exec 0 0K 1K 78643K 251 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 22K 31K 78643K 1661 0 UVM aobj 20 2K 2K 78643K 20 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 57 0 NDP 13 0K 0K 78643K 22 0 temp 118 3020K 3086K 78643K 8710 0 kqueue 3 4K 10K 78643K 27 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 8 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 64 0 21 2 0 2 2 0 8 0 unpcb 120 239 0 229 2 0 2 2 0 8 1 syncache 264 13 0 13 2 1 1 1 0 8 1 tcpqe 32 79 0 79 1 1 0 1 0 8 0 tcpcb 544 249 0 244 2 0 2 2 0 8 1 inpcb 280 563 0 555 3 0 3 3 0 8 2 nd6 48 12 0 6 1 0 1 1 0 8 0 pffrag 232 5 0 5 1 0 1 1 0 482 1 pffrnode 88 5 0 5 1 0 1 1 0 8 1 pffrent 40 139 0 139 1 0 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 35 0 3 1 0 1 1 0 8 0 pfstkey 112 35 0 3 1 0 1 1 0 8 0 pfstate 328 35 0 3 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 280 0 87 14 0 14 14 0 8 1 art_table 32 281 0 87 2 0 2 2 0 8 0 art_node 16 63 0 24 1 0 1 1 0 8 0 sysvmsgpl 40 28 0 15 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 53 0 43 1 0 1 1 0 8 0 shmpl 112 18 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1691 0 285 46 0 46 46 0 8 0 ffsino 272 1691 0 285 95 0 95 95 0 8 0 nchpl 144 2172 0 567 61 0 61 61 0 8 0 uvmvnodes 72 1819 0 0 34 0 34 34 0 8 0 vnodes 208 1819 0 0 96 0 96 96 0 8 0 namei 1024 6307 0 6307 1 0 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 vmpool 560 2 0 2 1 0 1 1 0 8 1 scsiplug 64 2 0 2 1 0 1 1 0 8 1 scxspl 192 6809 0 6809 8 5 3 7 0 8 3 plimitpl 152 25 0 17 1 0 1 1 0 8 0 sigapl 424 421 0 388 4 0 4 4 0 8 0 futexpl 56 4174 0 4173 1 0 1 1 0 8 0 knotepl 112 104 0 85 1 0 1 1 0 8 0 kqueuepl 144 130 0 128 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 405 0 388 3 0 3 3 0 8 0 filepl 152 3144 0 3042 7 0 7 7 0 8 2 lockfpl 104 66 0 65 1 0 1 1 0 8 0 lockfspl 48 23 0 22 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 437 0 428 1 0 1 1 0 8 0 zombiepl 144 388 0 388 1 0 1 1 0 8 1 processpl 960 421 0 388 5 0 5 5 0 8 0 procpl 624 814 0 770 4 0 4 4 0 8 0 sosppl 128 5 0 5 1 0 1 1 0 8 1 sockpl 400 843 0 823 6 0 6 6 0 8 3 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 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 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 208 0 0 25 0 25 25 0 8 0 mtagpl 80 7 0 0 1 0 1 1 0 8 0 mbufpl 256 494 0 0 30 0 30 30 0 8 0 bufpl 280 4554 0 176 313 0 313 313 0 8 0 anonpl 16 55739 0 41742 74 1 73 73 0 124 3 amapchunkpl 152 2382 0 2241 11 4 7 11 0 158 0 amappl16 192 1840 0 905 50 0 50 50 0 8 3 amappl15 184 83 0 80 1 0 1 1 0 8 0 amappl14 176 13 0 11 2 1 1 1 0 8 0 amappl13 168 32 0 31 1 0 1 1 0 8 0 amappl12 160 81 0 79 1 0 1 1 0 8 0 amappl11 152 76 0 57 1 0 1 1 0 8 0 amappl10 144 18 0 12 1 0 1 1 0 8 0 amappl9 136 397 0 392 1 0 1 1 0 8 0 amappl8 128 380 0 343 2 0 2 2 0 8 0 amappl7 120 128 0 114 1 0 1 1 0 8 0 amappl6 112 29 0 22 2 1 1 1 0 8 0 amappl5 104 301 0 283 1 0 1 1 0 8 0 amappl4 96 526 0 493 1 0 1 1 0 8 0 amappl3 88 117 0 111 1 0 1 1 0 8 0 amappl2 80 2388 0 2311 3 1 2 3 0 8 0 amappl1 72 19125 0 18674 26 16 10 20 0 8 0 amappl 80 1086 0 1039 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 19 0 0 1 0 1 1 0 8 0 uaddrrnd 24 407 0 390 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 407 0 390 1 0 1 1 0 8 0 vmmpekpl 168 7105 0 7067 2 0 2 2 0 8 0 vmmpepl 168 57951 0 55754 142 14 128 128 0 357 32 vmsppl 368 406 0 390 2 0 2 2 0 8 0 pdppl 4096 821 0 780 6 0 6 6 0 8 0 pvpl 32 183309 0 166104 179 0 179 179 0 265 11 pmappl 232 406 0 390 3 1 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 198 0 3 6 0 6 6 0 8 0