panic: receive 1a: so 0xfffffd806315d000, so_type 3, m 0xfffffd805727cb00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *520132 82879 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d3dee) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806315d000,0,ffff80001d6e55f8,0,0,ffff80001d6e5504) at soreceive+0x170a sys/kern/uipc_socket.c:983 soo_read(fffffd8062bf37f8,ffff80001d6e55f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a9278,6,ffff80001d6e55f8,0,ffff80001d6e56e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a9278,ffff80001d6e5690,ffff80001d6e56e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5760) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffface0, 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 1a: so 0xfffffd806315d000, so_type 3, m 0xfffffd805727cb00, m_type 0 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d3dee) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806315d000,0,ffff80001d6e55f8,0,0,ffff80001d6e5504) at soreceive+0x170a sys/kern/uipc_socket.c:983 soo_read(fffffd8062bf37f8,ffff80001d6e55f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a9278,6,ffff80001d6e55f8,0,ffff80001d6e56e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a9278,ffff80001d6e5690,ffff80001d6e56e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5760) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffface0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6e5340 rbx 0xffff80001d6e53f0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff80001d6e5300 r9 0xffffffff817fa6cf kprintf+0x15f r10 0x1 r11 0xb26d4c4b0d2948b4 r12 0x3000000008 r13 0xffff80001d6e5350 r14 0x100 r15 0x1 rip 0xffffffff81e60e68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6e5330 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (dhclient) pid=520132 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6aa5f8,0xffff80001d6a94f8 process=0xffff80001d6c4af0 user=0xffff80001d6e0000, vmspace=0xfffffd806bc0a000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 24259 483684 87282 0 2 0 syz-executor.0 24259 2132 87282 0 2 0x4000000 syz-executor.0 7909 393753 31002 0 3 0x82 nanosleep syz-executor.1 87282 431438 31002 0 3 0x82 nanosleep syz-executor.0 31002 192590 61190 0 3 0x82 kqread syz-fuzzer 31002 356641 61190 0 3 0x4000082 thrsleep syz-fuzzer 31002 485463 61190 0 3 0x4000082 thrsleep syz-fuzzer 31002 302173 61190 0 3 0x4000082 thrsleep syz-fuzzer 31002 267023 61190 0 3 0x4000082 thrsleep syz-fuzzer 31002 72268 61190 0 3 0x4000082 thrsleep syz-fuzzer 61190 102939 42571 0 3 0x10008a pause ksh 42571 367283 86585 0 3 0x92 select sshd 88882 349125 1 0 3 0x100083 ttyin getty 86585 173726 1 0 3 0x80 select sshd 30617 47713 19748 73 3 0x100090 kqread syslogd 19748 384164 1 0 3 0x100082 netio syslogd 42290 151182 1 77 2 0x100010 dhclient *82879 520132 1 0 7 0 dhclient 44705 349885 0 0 3 0x14200 bored smr 78861 26076 0 0 2 0x14200 zerothread 38889 427493 0 0 3 0x14200 aiodoned aiodoned 41053 389204 0 0 3 0x14200 syncer update 1782 145299 0 0 3 0x14200 cleaner cleaner 85256 133849 0 0 3 0x14200 reaper reaper 78756 126175 0 0 3 0x14200 pgdaemon pagedaemon 61712 148195 0 0 3 0x14200 bored crynlk 6978 284410 0 0 3 0x14200 bored crypto 91777 51230 0 0 3 0x40014200 acpi0 acpi0 75638 92800 0 0 3 0x14200 bored softnet 37776 175587 0 0 3 0x14200 bored systqmp 94991 86247 0 0 3 0x14200 bored systq 8227 376545 0 0 3 0x40014200 bored softclock 38962 361469 0 0 3 0x40014200 idle0 1 150391 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 9454 6326K 6452K 78643K 10568 0 pcb 13 8K 8K 78643K 19 0 rtable 109 3K 3K 78643K 199 0 ifaddr 45 10K 10K 78643K 48 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 25 0 iov 0 0K 2K 78643K 10 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1234 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 0K 0K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 55 0 proc 48 38K 54K 78643K 359 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 37 2K 2K 78643K 41 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 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 183 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 118 22K 22K 78643K 975 0 UVM aobj 7 2K 2K 78643K 7 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 6 0K 0K 78643K 12 0 temp 66 3847K 3911K 78643K 1806 0 kqueue 3 4K 8K 78643K 5 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 6 0 0 1 0 1 1 0 8 0 rtpcb 80 19 0 17 1 0 1 1 0 8 0 rtentry 112 49 0 3 2 0 2 2 0 8 0 unpcb 120 37 0 29 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 65 0 65 1 0 1 1 0 8 1 tcpcb 544 10 0 6 1 0 1 1 0 8 0 inpcb 296 46 0 39 2 0 2 2 0 8 1 nd6 48 8 0 1 1 0 1 1 0 8 0 pfrule 1360 1 0 0 1 0 1 1 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 48 0 7 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1448 0 52 88 0 88 88 0 8 0 ffsino 240 1448 0 52 83 0 83 83 0 8 0 nchpl 144 1704 0 100 60 0 60 60 0 8 0 uvmvnodes 72 1497 0 0 28 0 28 28 0 8 0 vnodes 208 1497 0 0 79 0 79 79 0 8 0 namei 1024 4220 0 4220 1 0 1 1 0 8 1 scxspl 192 4678 0 4678 1 0 1 1 0 8 1 plimitpl 152 16 0 8 1 0 1 1 0 8 0 sigapl 424 241 0 213 4 0 4 4 0 8 0 futexpl 56 426 0 426 1 0 1 1 0 8 1 knotepl 112 64 0 44 1 0 1 1 0 8 0 kqueuepl 144 12 0 10 1 0 1 1 0 8 0 pipepl 272 79 0 68 2 0 2 2 0 8 1 fdescpl 432 227 0 213 2 0 2 2 0 8 0 filepl 120 1158 0 1060 4 0 4 4 0 8 1 lockfpl 104 14 0 13 1 0 1 1 0 8 0 lockfspl 48 6 0 5 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 70 0 63 1 0 1 1 0 8 0 zombiepl 144 213 0 212 1 0 1 1 0 8 0 processpl 928 241 0 212 4 0 4 4 0 8 0 procpl 624 271 0 236 3 0 3 3 0 8 0 sockpl 400 102 0 85 3 0 3 3 0 8 1 mcl4k 4096 10 0 10 2 1 1 1 0 8 1 mcl2k 2048 91400 0 91356 17 3 14 15 0 8 6 mtagpl 96 2 0 2 1 1 0 1 0 8 0 mbufpl 256 144455 0 144369 11 1 10 10 0 8 0 bufpl 280 3241 0 116 224 0 224 224 0 8 0 anonpl 16 39232 0 22743 69 1 68 68 0 107 1 amapchunkpl 152 1110 0 921 10 0 10 10 0 158 1 amappl16 192 1050 0 199 44 0 44 44 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 10 0 7 1 0 1 1 0 8 0 amappl13 168 40 0 34 1 0 1 1 0 8 0 amappl12 160 39 0 34 1 0 1 1 0 8 0 amappl11 152 46 0 36 1 0 1 1 0 8 0 amappl10 144 15 0 10 1 0 1 1 0 8 0 amappl9 136 362 0 360 1 0 1 1 0 8 0 amappl8 128 295 0 266 1 0 1 1 0 8 0 amappl7 120 102 0 92 1 0 1 1 0 8 0 amappl6 112 25 0 22 1 0 1 1 0 8 0 amappl5 104 161 0 149 1 0 1 1 0 8 0 amappl4 96 424 0 395 1 0 1 1 0 8 0 amappl3 88 116 0 108 1 0 1 1 0 8 0 amappl2 80 947 0 882 2 0 2 2 0 8 0 amappl1 72 13835 0 13418 21 5 16 17 0 8 6 amappl 80 521 0 469 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 6 0 0 1 0 1 1 0 8 0 uaddrrnd 24 227 0 213 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 227 0 213 1 0 1 1 0 8 0 vmmpekpl 168 5751 0 5722 2 0 2 2 0 8 0 vmmpepl 168 35384 0 33442 119 1 118 118 0 357 28 vmsppl 272 226 0 213 2 0 2 2 0 8 1 pdppl 4096 460 0 426 6 0 6 6 0 8 1 pvpl 32 131698 0 112263 165 0 165 165 0 265 7 pmappl 200 226 0 213 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 238 0 7 7 0 7 7 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(ffffffff823d3dee) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806315d000,0,ffff80001d6e55f8,0,0,ffff80001d6e5504) at soreceive+0x170a sys/kern/uipc_socket.c:983 soo_read(fffffd8062bf37f8,ffff80001d6e55f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a9278,6,ffff80001d6e55f8,0,ffff80001d6e56e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a9278,ffff80001d6e5690,ffff80001d6e56e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5760) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffface0, 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(ffffffff823d3dee) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806315d000,0,ffff80001d6e55f8,0,0,ffff80001d6e5504) at soreceive+0x170a sys/kern/uipc_socket.c:983 soo_read(fffffd8062bf37f8,ffff80001d6e55f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a9278,6,ffff80001d6e55f8,0,ffff80001d6e56e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a9278,ffff80001d6e5690,ffff80001d6e56e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5760) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffface0, count: -8