panic: receive 1: so 0xfffffd806f68caf0, so_type 1, sb_cc 96 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *182113 77290 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823fd0e0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68caf0,ffff800020e1e510,ffff800020e1e4d8,0,ffff800020e1e508,ffff800020e1e684) at soreceive+0x16ec sys/kern/uipc_socket.c:829 recvit(ffff800020ddc9c8,4,ffff800020e1e658,0,ffff800020e1e740) at recvit+0x32b sys/kern/uipc_syscalls.c:817 sys_recvmsg(ffff800020ddc9c8,ffff800020e1e6f0,ffff800020e1e740) at sys_recvmsg+0x14b sys/kern/uipc_syscalls.c:753 syscall(ffff800020e1e7c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e7c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca1c0, count: 8 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 1: so 0xfffffd806f68caf0, so_type 1, sb_cc 96 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823fd0e0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68caf0,ffff800020e1e510,ffff800020e1e4d8,0,ffff800020e1e508,ffff800020e1e684) at soreceive+0x16ec sys/kern/uipc_socket.c:829 recvit(ffff800020ddc9c8,4,ffff800020e1e658,0,ffff800020e1e740) at recvit+0x32b sys/kern/uipc_syscalls.c:817 sys_recvmsg(ffff800020ddc9c8,ffff800020e1e6f0,ffff800020e1e740) at sys_recvmsg+0x14b sys/kern/uipc_syscalls.c:753 syscall(ffff800020e1e7c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e7c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca1c0, count: -7 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e320 rbx 0xffff800020e1e3d0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81a9f99f kprintf+0x16f r9 0x1 r10 0x2 r11 0x4f814a3ba92e4dfd r12 0x3000000008 r13 0xffff800020e1e330 r14 0x100 r15 0x1 rip 0xffffffff821c4b18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e310 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=182113 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcea8,0xffff800020ddcc48 process=0xffff800020df03f0 user=0xffff800020e19000, vmspace=0xfffffd807f000450 estcpu=0, cpticks=1, pctcpu=0.1 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72427 406216 77426 0 3 0x80 nanosleep syz-executor.1 72427 379190 77426 0 3 0x4000080 select syz-executor.1 72427 303488 77426 0 3 0x4000080 fsleep syz-executor.1 77426 47567 28588 0 3 0x82 nanosleep syz-executor.1 29580 333034 0 0 3 0x14200 acct acct 72367 378684 0 0 3 0x14200 bored sosplice 69922 509084 28588 0 3 0x82 piperd syz-executor.0 28588 26994 6688 0 3 0x82 thrsleep syz-fuzzer 28588 191511 6688 0 3 0x4000082 thrsleep syz-fuzzer 28588 379164 6688 0 3 0x4000082 thrsleep syz-fuzzer 28588 274815 6688 0 3 0x4000082 thrsleep syz-fuzzer 28588 499714 6688 0 3 0x4000082 thrsleep syz-fuzzer 28588 431060 6688 0 3 0x4000082 kqread syz-fuzzer 28588 210495 6688 0 3 0x4000082 thrsleep syz-fuzzer 28588 71143 6688 0 3 0x4000082 thrsleep syz-fuzzer 28588 314002 6688 0 3 0x4000082 thrsleep syz-fuzzer 28588 105659 6688 0 3 0x4000082 thrsleep syz-fuzzer 6688 462870 40378 0 3 0x10008a pause ksh 40378 359432 63554 0 3 0x92 select sshd 17251 178229 1 0 3 0x100083 ttyin getty 63554 93678 1 0 3 0x80 select sshd 28012 94425 42575 74 3 0x100092 bpf pflogd 42575 112138 1 0 3 0x80 netio pflogd 80007 435815 91517 73 3 0x100090 kqread syslogd 91517 433858 1 0 3 0x100082 netio syslogd 82305 461198 1 77 3 0x100090 poll dhclient *77290 182113 1 0 7 0 dhclient 46586 316437 0 0 3 0x14200 bored smr 37859 330931 0 0 3 0x14200 pgzero zerothread 30071 251260 0 0 3 0x14200 aiodoned aiodoned 29695 1788 0 0 3 0x14200 syncer update 59196 421350 0 0 3 0x14200 cleaner cleaner 35028 498546 0 0 3 0x14200 reaper reaper 54002 41899 0 0 3 0x14200 pgdaemon pagedaemon 90001 372311 0 0 3 0x14200 bored crynlk 76030 136659 0 0 3 0x14200 bored crypto 52016 466510 0 0 3 0x40014200 acpi0 acpi0 85067 481497 0 0 3 0x40014200 idle1 8260 239135 0 0 3 0x14200 bored softnet 64385 110926 0 0 3 0x14200 bored systqmp 22255 118082 0 0 3 0x14200 bored systq 96244 33470 0 0 3 0x40014200 bored softclock 6495 104231 0 0 7 0x40014200 idle0 1 357356 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 77290 (dhclient) thread 0xffff800020ddc9c8 (182113) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828c71f0) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0xb3a sys/kern/uipc_socket.c:956 #3 recvit+0x32b sys/kern/uipc_syscalls.c:817 #4 sys_recvmsg+0x14b sys/kern/uipc_syscalls.c:753 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9495 6408K 6726K 78643K 11046 0 pcb 14 8K 8K 78643K 42 0 rtable 108 7K 8K 78643K 344 0 ifaddr 63 13K 13K 78643K 102 0 counters 43 33K 34K 78643K 47 0 ioctlops 0 0K 4K 78643K 1518 0 iov 0 0K 16K 78643K 25 0 mount 1 1K 1K 78643K 1 0 vnodes 1229 77K 77K 78643K 1471 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 69 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 305 0 sigio 0 0K 0K 78643K 3 0 proc 61 63K 95K 78643K 496 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 32 0 in_multi 41 2K 3K 78643K 94 0 ether_multi 1 0K 0K 78643K 5 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 238 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 123 39K 39K 78643K 1896 0 UVM aobj 11 2K 2K 78643K 17 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 2 0K 0K 78643K 32 0 NDP 9 0K 0K 78643K 21 0 temp 95 3862K 3938K 78643K 7129 0 kqueue 3 4K 8K 78643K 17 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 9 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 25 0 23 1 0 1 1 0 8 0 rtentry 112 69 0 32 2 0 2 2 0 8 0 unpcb 120 118 0 108 1 0 1 1 0 8 0 syncache 264 10 0 10 2 2 0 1 0 8 0 tcpqe 32 892 0 892 1 1 0 1 0 8 0 tcpcb 544 120 0 115 1 0 1 1 0 8 0 inpcb 296 286 0 277 2 1 1 2 0 8 0 nd6 48 15 0 12 1 0 1 1 0 8 0 pfstscr 40 4 0 4 1 1 0 1 0 8 0 pffrag 232 1 0 1 1 0 1 1 0 482 1 pffrnode 88 1 0 1 1 0 1 1 0 8 1 pffrent 40 2 0 2 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 pfrktable 1344 35 0 27 1 0 1 1 0 8 0 pfstitem 24 32 0 4 1 0 1 1 0 8 0 pfstkey 112 36 0 8 1 0 1 1 0 8 0 pfstate 328 34 0 6 3 0 3 3 0 8 0 pfrule 1360 30 0 21 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 296 0 146 13 2 11 13 0 8 1 art_table 32 297 0 146 2 0 2 2 0 8 0 art_node 16 68 0 34 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 2 1 0 1 1 0 8 0 semupl 112 7 0 7 1 1 0 1 0 8 0 semapl 112 55 0 45 1 0 1 1 0 8 0 shmpl 112 14 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1812 0 403 89 0 89 89 0 8 0 ffsino 272 1812 0 403 96 1 95 95 0 8 0 nchpl 144 2508 0 913 60 0 60 60 0 8 0 uvmvnodes 72 2074 0 0 38 0 38 38 0 8 0 vnodes 208 2074 0 0 110 0 110 110 0 8 0 namei 1024 7034 0 7034 3 2 1 1 0 8 1 percpumem 16 34 0 2 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 12 0 6 1 0 1 1 0 8 0 scxspl 192 7159 0 7159 10 9 1 7 0 8 1 plimitpl 152 29 0 21 1 0 1 1 0 8 0 sigapl 424 519 0 486 4 0 4 4 0 8 0 futexpl 56 4066 0 4065 2 1 1 1 0 8 0 knotepl 112 91 0 72 1 0 1 1 0 8 0 kqueuepl 144 30 0 28 1 0 1 1 0 8 0 pipepl 304 107 0 97 2 1 1 2 0 8 0 fdescpl 496 502 0 486 3 0 3 3 0 8 0 filepl 152 2744 0 2642 7 2 5 5 0 8 1 lockfpl 104 55 0 54 1 0 1 1 0 8 0 lockfspl 48 22 0 21 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 23 0 12 1 0 1 1 0 8 0 ucredpl 96 198 0 188 1 0 1 1 0 8 0 zombiepl 144 486 0 486 3 2 1 1 0 8 1 processpl 992 519 0 486 6 1 5 5 0 8 0 procpl 624 1090 0 1046 4 0 4 4 0 8 0 sosppl 128 7 0 7 1 1 0 1 0 8 0 sockpl 400 429 0 408 6 3 3 4 0 8 0 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 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 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 173 0 0 21 0 21 21 0 8 0 mtagpl 96 22 0 0 1 0 1 1 0 8 0 mbufpl 256 260 0 0 16 0 16 16 0 8 0 bufpl 280 3874 0 132 268 0 268 268 0 8 0 anonpl 16 65735 0 51023 86 16 70 85 0 124 0 amapchunkpl 152 2601 0 2450 9 2 7 9 0 158 0 amappl16 192 2129 0 1213 59 12 47 58 0 8 1 amappl15 184 127 0 125 1 0 1 1 0 8 0 amappl14 176 143 0 137 1 0 1 1 0 8 0 amappl13 168 37 0 33 1 0 1 1 0 8 0 amappl12 160 27 0 21 2 1 1 1 0 8 0 amappl11 152 183 0 166 1 0 1 1 0 8 0 amappl10 144 143 0 137 1 0 1 1 0 8 0 amappl9 136 383 0 382 1 0 1 1 0 8 0 amappl8 128 357 0 330 1 0 1 1 0 8 0 amappl7 120 251 0 238 1 0 1 1 0 8 0 amappl6 112 141 0 138 1 0 1 1 0 8 0 amappl5 104 298 0 280 1 0 1 1 0 8 0 amappl4 96 628 0 596 1 0 1 1 0 8 0 amappl3 88 117 0 112 1 0 1 1 0 8 0 amappl2 80 3005 0 2934 2 0 2 2 0 8 0 amappl1 72 23492 0 23042 22 12 10 17 0 8 0 amappl 80 1350 0 1304 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 16 0 6 1 0 1 1 0 8 0 uaddrrnd 24 504 0 486 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 504 0 486 1 0 1 1 0 8 0 vmmpekpl 168 7844 0 7806 2 0 2 2 0 8 0 vmmpepl 168 71368 0 69275 152 26 126 126 0 357 35 vmsppl 368 503 0 486 2 0 2 2 0 8 0 pdppl 4096 1015 0 974 7 1 6 6 0 8 0 pvpl 32 212560 0 194631 204 36 168 201 0 265 2 pmappl 232 503 0 486 3 1 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 270 0 12 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82789ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffffffff82789ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: 10 ddb{0}> trace x86_ipi_db(ffffffff82789ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffffffff82789ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823fd0e0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68caf0,ffff800020e1e510,ffff800020e1e4d8,0,ffff800020e1e508,ffff800020e1e684) at soreceive+0x16ec sys/kern/uipc_socket.c:829 recvit(ffff800020ddc9c8,4,ffff800020e1e658,0,ffff800020e1e740) at recvit+0x32b sys/kern/uipc_syscalls.c:817 sys_recvmsg(ffff800020ddc9c8,ffff800020e1e6f0,ffff800020e1e740) at sys_recvmsg+0x14b sys/kern/uipc_syscalls.c:753 syscall(ffff800020e1e7c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e7c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca1c0, count: 8 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823fd0e0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68caf0,ffff800020e1e510,ffff800020e1e4d8,0,ffff800020e1e508,ffff800020e1e684) at soreceive+0x16ec sys/kern/uipc_socket.c:829 recvit(ffff800020ddc9c8,4,ffff800020e1e658,0,ffff800020e1e740) at recvit+0x32b sys/kern/uipc_syscalls.c:817 sys_recvmsg(ffff800020ddc9c8,ffff800020e1e6f0,ffff800020e1e740) at sys_recvmsg+0x14b sys/kern/uipc_syscalls.c:753 syscall(ffff800020e1e7c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e7c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca1c0, count: -7