panic: receive 3: so 0xfffffd806b640640, so_type 3, m 0xfffffd806bc23500, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *353142 38977 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c0713) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806b640640,0,ffff80001d6e5908,0,0,ffff80001d6e5814) at soreceive+0x16e7 soo_read(fffffd805fff82d0,ffff80001d6e5908,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6aa118,6,ffff80001d6e5908,0,ffff80001d6e59f0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6aa118,ffff80001d6e59a0,ffff80001d6e59f0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5a70) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffa350, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic receive 3: so 0xfffffd806b640640, so_type 3, m 0xfffffd806bc23500, m_type 0 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c0713) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806b640640,0,ffff80001d6e5908,0,0,ffff80001d6e5814) at soreceive+0x16e7 soo_read(fffffd805fff82d0,ffff80001d6e5908,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6aa118,6,ffff80001d6e5908,0,ffff80001d6e59f0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6aa118,ffff80001d6e59a0,ffff80001d6e59f0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5a70) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffa350, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6e5650 rbx 0xffff80001d6e5700 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81cace1f kprintf+0x15f r9 0x1 r10 0x2 r11 0x77a1819d85eafbbc r12 0x3000000008 r13 0xffff80001d6e5660 r14 0x100 r15 0x1 rip 0xffffffff81ebd538 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6e5640 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (dhclient) pid=353142 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6a9008,0xffff80001d6aa398 process=0xffff80001d6c43b0 user=0xffff80001d6e0000, vmspace=0xfffffd806bc0a220 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 89691 162823 57019 0 2 0 syz-executor.1 89691 405762 57019 0 3 0x4000080 netio syz-executor.1 89691 451535 57019 0 2 0x4000000 syz-executor.1 11524 503095 0 0 3 0x14200 acct acct 48779 474501 7562 0 3 0x82 piperd syz-executor.0 96333 217019 0 0 3 0x14280 nfsidl nfsio 31173 348772 0 0 3 0x14280 nfsidl nfsio 78065 215395 0 0 3 0x14280 nfsidl nfsio 25883 119112 0 0 3 0x14280 nfsidl nfsio 96748 344804 0 0 3 0x14280 nfsidl nfsio 9204 142500 0 0 3 0x14280 nfsidl nfsio 96331 120618 0 0 3 0x14280 nfsidl nfsio 49309 363731 0 0 3 0x14280 nfsidl nfsio 80569 376526 0 0 3 0x14280 nfsidl nfsio 30179 154828 0 0 3 0x14280 nfsidl nfsio 52257 212326 0 0 3 0x14280 nfsidl nfsio 23491 367815 0 0 3 0x14280 nfsidl nfsio 78215 370271 0 0 3 0x14280 nfsidl nfsio 92413 103543 0 0 3 0x14280 nfsidl nfsio 81924 441906 0 0 3 0x14280 nfsidl nfsio 26244 28803 0 0 3 0x14280 nfsidl nfsio 6055 215595 0 0 3 0x14280 nfsidl nfsio 2985 152061 0 0 3 0x14280 nfsidl nfsio 80905 300245 0 0 3 0x14280 nfsidl nfsio 10450 177689 0 0 3 0x14280 nfsidl nfsio 51687 250583 0 0 3 0x14200 bored sosplice 57019 489771 7562 0 3 0x82 nanosleep syz-executor.1 7562 170192 23527 0 2 0x2 syz-fuzzer 7562 209332 23527 0 3 0x4000082 nanosleep syz-fuzzer 7562 437243 23527 0 3 0x4000082 thrsleep syz-fuzzer 7562 429029 23527 0 3 0x4000082 thrsleep syz-fuzzer 7562 61164 23527 0 3 0x4000082 thrsleep syz-fuzzer 7562 390143 23527 0 3 0x4000082 thrsleep syz-fuzzer 7562 414896 23527 0 3 0x4000082 thrsleep syz-fuzzer 7562 297059 23527 0 3 0x4000082 thrsleep syz-fuzzer 23527 13701 81040 0 3 0x10008a pause ksh 81040 206467 91963 0 3 0x92 select sshd 42130 193655 1 0 3 0x100083 ttyin getty 91963 263486 1 0 3 0x80 select sshd 27455 9233 69223 73 3 0x100090 kqread syslogd 69223 55988 1 0 3 0x100082 netio syslogd 64492 277505 1 77 2 0x100010 dhclient *38977 353142 1 0 7 0 dhclient 72514 430276 0 0 3 0x14200 bored smr 13425 338278 0 0 2 0x14200 zerothread 77435 140930 0 0 3 0x14200 aiodoned aiodoned 68413 206068 0 0 3 0x14200 syncer update 29183 422327 0 0 3 0x14200 cleaner cleaner 45075 441585 0 0 3 0x14200 reaper reaper 87109 464421 0 0 3 0x14200 pgdaemon pagedaemon 50520 26137 0 0 3 0x14200 bored crynlk 76212 387772 0 0 3 0x14200 bored crypto 85572 249088 0 0 3 0x40014200 acpi0 acpi0 55230 263459 0 0 2 0x14200 softnet 32468 159633 0 0 3 0x14200 bored systqmp 40885 264858 0 0 3 0x14200 bored systq 49241 422117 0 0 3 0x40014200 bored softclock 47838 453687 0 0 3 0x40014200 idle0 1 292169 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9496 6349K 6598K 78643K 10951 0 pcb 13 8K 8K 78643K 111 0 rtable 141 10K 10K 78643K 584 0 ifaddr 85 18K 18K 78643K 207 0 sysctl 2 0K 0K 78643K 2 0 counters 22 16K 16K 78643K 33 0 ioctlops 0 0K 4K 78643K 99 0 iov 0 0K 32K 78643K 46 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 77K 78643K 1345 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 10 0 VM map 2 0K 0K 78643K 2 0 sem 11 1K 1K 78643K 15 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 604 0 sigio 0 0K 0K 78643K 6 0 proc 52 38K 55K 78643K 453 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 59 0 in_multi 58 3K 3K 78643K 195 0 ether_multi 1 0K 0K 78643K 20 0 mrt 0 0K 0K 78643K 3 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 250 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 131 55K 60K 78643K 2737 0 UVM aobj 24 2K 3K 78643K 38 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 99 0 NDP 11 0K 0K 78643K 35 0 temp 137 3882K 3946K 78643K 14495 0 kqueue 3 4K 12K 78643K 12 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 12 0 5 1 0 1 1 0 8 0 rtpcb 80 38 0 36 1 0 1 1 0 8 0 rtentry 112 90 0 44 2 0 2 2 0 8 0 unpcb 120 1829 0 1817 2 1 1 2 0 8 0 syncache 264 8 0 8 4 4 0 1 0 8 0 sackhl 24 2 0 2 2 1 1 1 0 8 1 tcpqe 32 95 0 95 1 1 0 1 0 8 0 tcpcb 544 224 0 220 1 0 1 1 0 8 0 inpcb 296 1231 0 1223 3 1 2 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 29 0 22 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 2 0 1 0 8 0 ppxss 1136 3 0 3 2 2 0 1 0 8 0 pfstscr 40 4 0 3 1 0 1 1 0 8 0 pfrktable 1344 89 0 77 3 2 1 2 0 8 0 pftag 88 18 0 12 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 112 14 0 10 1 0 1 1 0 8 0 pfstate 328 7 0 5 1 0 1 1 0 8 0 pfrule 1360 27 0 17 2 1 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 275 0 53 14 0 14 14 0 8 0 art_table 32 276 0 53 2 0 2 2 0 8 0 art_node 16 89 0 47 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 8 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 35 0 14 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2142 0 742 88 0 88 88 0 8 0 ffsino 240 2142 0 742 83 0 83 83 0 8 0 nchpl 144 3136 0 1556 60 0 60 60 0 8 0 uvmvnodes 72 2262 0 0 42 0 42 42 0 8 0 vnodes 208 2262 0 0 120 0 120 120 0 8 0 namei 1024 8399 0 8399 1 0 1 1 0 8 1 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 528 12 0 8 1 0 1 1 0 8 0 pfiaddrpl 120 30 0 20 2 1 1 1 0 8 0 scxspl 192 9125 0 9125 1 0 1 1 0 8 1 plimitpl 152 53 0 46 1 0 1 1 0 8 0 sigapl 424 809 0 759 6 0 6 6 0 8 0 futexpl 56 12855 0 12855 1 0 1 1 0 8 1 knotepl 112 90 0 71 1 0 1 1 0 8 0 kqueuepl 144 44 0 42 1 0 1 1 0 8 0 pipepl 272 148 0 138 1 0 1 1 0 8 0 fdescpl 432 773 0 759 2 0 2 2 0 8 0 filepl 120 5989 0 5889 5 1 4 5 0 8 0 lockfpl 104 97 0 96 1 0 1 1 0 8 0 lockfspl 48 34 0 33 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 26 0 16 1 0 1 1 0 8 0 ucredpl 96 334 0 327 1 0 1 1 0 8 0 zombiepl 144 759 0 759 1 0 1 1 0 8 1 processpl 928 809 0 759 7 0 7 7 0 8 0 procpl 624 1993 0 1934 8 3 5 6 0 8 0 sosppl 128 4 0 4 1 1 0 1 0 8 0 sockpl 400 3116 0 3095 11 7 4 6 0 8 1 mcl64k 65536 92 0 92 3 2 1 1 0 8 1 mcl16k 16384 7 0 7 5 5 0 1 0 8 0 mcl12k 12288 78 0 78 3 2 1 1 0 8 1 mcl9k 9216 108 0 108 5 4 1 1 0 8 1 mcl8k 8192 27 0 27 6 5 1 1 0 8 1 mcl4k 4096 493 0 492 3 2 1 2 0 8 0 mcl2k2 2112 5 0 5 4 4 0 1 0 8 0 mcl2k 2048 96409 0 96363 15 8 7 13 0 8 0 mtagpl 96 10 0 10 2 2 0 1 0 8 0 mbufpl 256 166240 0 166079 37 26 11 31 0 8 0 bufpl 280 4164 0 128 289 0 289 289 0 8 0 anonpl 16 94928 0 76745 85 11 74 74 0 107 0 amapchunkpl 152 4464 0 4309 21 10 11 11 0 158 5 amappl16 192 3742 0 2728 56 5 51 51 0 8 0 amappl15 184 60 0 58 1 0 1 1 0 8 0 amappl14 176 24 0 21 1 0 1 1 0 8 0 amappl13 168 178 0 175 2 1 1 1 0 8 0 amappl12 160 153 0 152 2 1 1 1 0 8 0 amappl11 152 46 0 37 1 0 1 1 0 8 0 amappl10 144 15 0 10 1 0 1 1 0 8 0 amappl9 136 373 0 372 1 0 1 1 0 8 0 amappl8 128 360 0 315 2 0 2 2 0 8 0 amappl7 120 121 0 107 1 0 1 1 0 8 0 amappl6 112 29 0 20 1 0 1 1 0 8 0 amappl5 104 642 0 632 1 0 1 1 0 8 0 amappl4 96 595 0 564 1 0 1 1 0 8 0 amappl3 88 440 0 433 1 0 1 1 0 8 0 amappl2 80 5397 0 5332 2 0 2 2 0 8 0 amappl1 72 30655 0 30235 22 13 9 17 0 8 0 amappl 80 2217 0 2169 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 37 0 14 1 0 1 1 0 8 0 uaddrrnd 24 785 0 767 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 785 0 767 1 0 1 1 0 8 0 vmmpekpl 168 9628 0 9593 2 0 2 2 0 8 0 vmmpepl 168 105978 0 103844 153 59 94 124 0 357 1 vmsppl 272 784 0 767 2 0 2 2 0 8 0 pdppl 4096 1576 0 1538 7 1 6 6 0 8 0 pvpl 32 266267 0 244954 202 29 173 174 0 265 1 pmappl 200 784 0 767 4 3 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 293 0 62 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c0713) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806b640640,0,ffff80001d6e5908,0,0,ffff80001d6e5814) at soreceive+0x16e7 soo_read(fffffd805fff82d0,ffff80001d6e5908,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6aa118,6,ffff80001d6e5908,0,ffff80001d6e59f0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6aa118,ffff80001d6e59a0,ffff80001d6e59f0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5a70) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffa350, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c0713) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806b640640,0,ffff80001d6e5908,0,0,ffff80001d6e5814) at soreceive+0x16e7 soo_read(fffffd805fff82d0,ffff80001d6e5908,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6aa118,6,ffff80001d6e5908,0,ffff80001d6e59f0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6aa118,ffff80001d6e59a0,ffff80001d6e59f0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5a70) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffffa350, count: -8