panic: receive 1: so 0xfffffd806f67c640, so_type 3, sb_cc 177 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 157468 31578 73 0x100010 0 1 syslogd * 86866 53374 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d669f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67c640,0,ffff800020e1d348,0,0,ffff800020e1d254) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807b3fa2f8,ffff800020e1d348,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1d348,0,ffff800020e1d430) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1d3e0,ffff800020e1d430) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d4b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d4b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe16b0, 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 1: so 0xfffffd806f67c640, so_type 3, sb_cc 177 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d669f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67c640,0,ffff800020e1d348,0,0,ffff800020e1d254) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807b3fa2f8,ffff800020e1d348,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1d348,0,ffff800020e1d430) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1d3e0,ffff800020e1d430) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d4b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d4b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe16b0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1d090 rbx 0xffff800020e1d140 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8113e8df kprintf+0x16f r9 0x1 r10 0x2 r11 0x6ab6e343a8df4ac5 r12 0x3000000008 r13 0xffff800020e1d0a0 r14 0x100 r15 0x1 rip 0xffffffff81c51768 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1d080 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=86866 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcc38,0xffff800020ddd128 process=0xffff800020df0010 user=0xffff800020e18000, vmspace=0xfffffd807f0005c0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 5430 460942 91331 0 2 0 syz-executor.1 5430 306284 91331 0 2 0x4000080 syz-executor.1 23055 286203 0 0 3 0x14200 bored sosplice 48164 106775 0 0 3 0x14280 nfsidl nfsio 55948 255266 0 0 3 0x14280 nfsidl nfsio 58527 431641 0 0 3 0x14280 nfsidl nfsio 95986 153255 0 0 3 0x14280 nfsidl nfsio 31689 247661 0 0 3 0x14280 nfsidl nfsio 79938 224661 0 0 3 0x14280 nfsidl nfsio 79571 181248 0 0 3 0x14280 nfsidl nfsio 52714 441490 0 0 3 0x14280 nfsidl nfsio 78056 279572 0 0 3 0x14280 nfsidl nfsio 57096 3505 0 0 3 0x14280 nfsidl nfsio 88322 358171 0 0 3 0x14280 nfsidl nfsio 68370 168127 0 0 3 0x14280 nfsidl nfsio 69956 28158 0 0 3 0x14280 nfsidl nfsio 31858 31600 0 0 3 0x14280 nfsidl nfsio 81047 138657 0 0 3 0x14280 nfsidl nfsio 88151 352107 0 0 3 0x14280 nfsidl nfsio 1440 80826 0 0 3 0x14280 nfsidl nfsio 74551 484815 0 0 3 0x14280 nfsidl nfsio 59074 22169 0 0 3 0x14280 nfsidl nfsio 48935 393160 0 0 3 0x14280 nfsidl nfsio 76905 29318 53999 0 3 0x82 nanosleep syz-executor.0 91331 235934 53999 0 3 0x82 nanosleep syz-executor.1 53999 169619 62087 0 3 0x82 thrsleep syz-fuzzer 53999 310617 62087 0 3 0x4000082 nanosleep syz-fuzzer 53999 98833 62087 0 3 0x4000082 thrsleep syz-fuzzer 53999 261725 62087 0 3 0x4000082 thrsleep syz-fuzzer 53999 174478 62087 0 3 0x4000082 thrsleep syz-fuzzer 53999 250117 62087 0 3 0x4000082 thrsleep syz-fuzzer 53999 366084 62087 0 3 0x4000082 thrsleep syz-fuzzer 53999 372220 62087 0 3 0x4000082 kqread syz-fuzzer 53999 309387 62087 0 3 0x4000082 thrsleep syz-fuzzer 53999 462784 62087 0 3 0x4000082 thrsleep syz-fuzzer 62087 405107 16874 0 3 0x10008a pause ksh 16874 60551 2487 0 3 0x92 select sshd 63953 424579 1 0 3 0x100083 ttyin getty 2487 30549 1 0 3 0x80 select sshd 74470 361656 93118 74 3 0x100092 bpf pflogd 93118 251647 1 0 3 0x80 netio pflogd 31578 157468 22493 73 7 0x100010 syslogd 22493 454728 1 0 3 0x100082 netio syslogd 27406 187555 1 77 3 0x100090 poll dhclient *53374 86866 1 0 7 0 dhclient 56717 64693 0 0 3 0x14200 bored smr 66733 500611 0 0 3 0x14200 pgzero zerothread 5205 182579 0 0 3 0x14200 aiodoned aiodoned 27393 463665 0 0 3 0x14200 syncer update 92637 112817 0 0 3 0x14200 cleaner cleaner 82520 99033 0 0 3 0x14200 reaper reaper 51523 338455 0 0 3 0x14200 pgdaemon pagedaemon 29918 168294 0 0 3 0x14200 bored crynlk 73283 27023 0 0 3 0x14200 bored crypto 33855 62380 0 0 3 0x40014200 acpi0 acpi0 13310 289943 0 0 3 0x40014200 idle1 49942 132456 0 0 3 0x14200 bored softnet 77944 253176 0 0 3 0x14200 bored systqmp 87558 296009 0 0 3 0x14200 bored systq 72209 114275 0 0 3 0x40014200 bored softclock 41322 267543 0 0 3 0x40014200 idle0 1 268915 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 53374 (dhclient) thread 0xffff800020ddc9c8 (86866) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828d13e8) #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+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 9521 6417K 6803K 78643K 11087 0 pcb 13 8K 8K 78643K 114 0 rtable 105 4K 7K 78643K 561 0 ifaddr 75 15K 16K 78643K 125 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1508 0 iov 0 0K 16K 78643K 98 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1374 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 14 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 51 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 371 0 sigio 0 0K 0K 78643K 7 0 proc 61 63K 95K 78643K 480 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 35 0 in_multi 63 3K 3K 78643K 137 0 ether_multi 1 0K 0K 78643K 18 0 mrt 0 0K 0K 78643K 7 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 232 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 128 39K 39K 78643K 2161 0 UVM aobj 29 2K 2K 78643K 33 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 62 0 NDP 11 0K 0K 78643K 24 0 temp 104 3848K 3912K 78643K 9433 0 kqueue 3 4K 8K 78643K 17 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 7 0 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 321 0 319 1 0 1 1 0 8 0 rtentry 112 74 0 33 2 0 2 2 0 8 0 unpcb 120 167 0 157 1 0 1 1 0 8 0 syncache 264 10 0 10 3 2 1 1 0 8 1 tcpqe 32 30 0 30 3 2 1 1 0 8 1 tcpcb 544 250 0 245 1 0 1 1 0 8 0 inpcb 280 584 0 576 5 3 2 2 0 8 1 rttmr 72 3 0 3 2 2 0 1 0 8 0 nd6 48 12 0 8 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 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 pfrktable 1344 21 0 20 2 1 1 1 0 8 0 pfstitem 24 12 0 6 1 0 1 1 0 8 0 pfstkey 112 12 0 6 1 0 1 1 0 8 0 pfstate 328 12 0 6 1 0 1 1 0 8 0 pfrule 1360 28 0 20 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 335 0 158 16 3 13 14 0 8 0 art_table 32 336 0 158 2 0 2 2 0 8 0 art_node 16 73 0 35 1 0 1 1 0 8 0 sysvmsgpl 40 35 0 9 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 41 0 31 1 0 1 1 0 8 0 shmpl 112 31 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1902 0 497 89 1 88 89 0 8 0 ffsino 272 1902 0 497 94 0 94 94 0 8 0 nchpl 144 2641 0 1030 60 0 60 60 0 8 0 uvmvnodes 72 2048 0 0 38 0 38 38 0 8 0 vnodes 208 2048 0 0 108 0 108 108 0 8 0 namei 1024 7286 0 7286 1 0 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 5 0 4 2 1 1 1 0 8 0 pfiaddrpl 120 6 0 6 2 1 1 1 0 8 1 scxspl 192 7505 0 7505 8 7 1 7 0 8 1 plimitpl 152 50 0 42 1 0 1 1 0 8 0 sigapl 424 607 0 555 6 0 6 6 0 8 0 futexpl 56 5838 0 5838 1 0 1 1 0 8 1 knotepl 112 78 0 59 1 0 1 1 0 8 0 kqueuepl 144 56 0 53 1 0 1 1 0 8 0 pipelkpl 48 128 0 118 1 0 1 1 0 8 0 pipepl 120 256 0 237 1 0 1 1 0 8 0 fdescpl 496 571 0 555 3 0 3 3 0 8 0 filepl 152 3715 0 3613 5 0 5 5 0 8 0 lockfpl 104 59 0 57 1 0 1 1 0 8 0 lockfspl 48 25 0 23 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 306 0 297 1 0 1 1 0 8 0 zombiepl 144 555 0 554 1 0 1 1 0 8 0 processpl 984 607 0 554 7 0 7 7 0 8 0 procpl 624 1389 0 1326 6 0 6 6 0 8 0 sosppl 128 5 0 5 2 1 1 1 0 8 1 sockpl 400 1076 0 1056 6 2 4 4 0 8 1 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 168 0 0 20 0 20 20 0 8 0 mtagpl 80 34 0 0 1 0 1 1 0 8 0 mbufpl 256 426 0 0 24 0 24 24 0 8 0 bufpl 280 3832 0 133 265 0 265 265 0 8 0 anonpl 16 65842 0 49436 82 14 68 80 0 124 0 amapchunkpl 152 2955 0 2799 9 1 8 9 0 158 0 amappl16 192 2833 0 1958 56 11 45 54 0 8 0 amappl15 184 2 0 2 2 2 0 1 0 8 0 amappl14 176 29 0 22 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 19 0 16 1 0 1 1 0 8 0 amappl11 152 230 0 213 1 0 1 1 0 8 0 amappl10 144 21 0 17 1 0 1 1 0 8 0 amappl9 136 390 0 388 1 0 1 1 0 8 0 amappl8 128 380 0 340 2 0 2 2 0 8 0 amappl7 120 128 0 116 1 0 1 1 0 8 0 amappl6 112 188 0 184 1 0 1 1 0 8 0 amappl5 104 475 0 458 1 0 1 1 0 8 0 amappl4 96 500 0 468 1 0 1 1 0 8 0 amappl3 88 114 0 107 1 0 1 1 0 8 0 amappl2 80 3635 0 3568 2 0 2 2 0 8 0 amappl1 72 22392 0 21955 23 13 10 18 0 8 0 amappl 80 1630 0 1583 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 32 0 4 1 0 1 1 0 8 0 uaddrrnd 24 576 0 559 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 576 0 559 1 0 1 1 0 8 0 vmmpekpl 168 8544 0 8504 2 0 2 2 0 8 0 vmmpepl 168 75785 0 73746 146 51 95 142 0 357 3 vmsppl 368 575 0 559 2 0 2 2 0 8 0 pdppl 4096 1159 0 1119 6 0 6 6 0 8 0 pvpl 32 224315 0 204656 192 27 165 191 0 265 4 pmappl 232 575 0 559 3 1 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 279 0 9 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d669f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67c640,0,ffff800020e1d348,0,0,ffff800020e1d254) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807b3fa2f8,ffff800020e1d348,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1d348,0,ffff800020e1d430) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1d3e0,ffff800020e1d430) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d4b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d4b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe16b0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) 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 __mp_lock(ffffffff828d11e0) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828d11e0) at __mp_lock+0x127 sys/kern/kern_lock.c:147 vn_write(fffffd806eaed728,ffff800020e55710,0) at vn_write+0x42 sys/kern/vfs_vnops.c:399 dofilewritev(ffff800020e41390,e,ffff800020e55710,0,ffff800020e55800) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_writev(ffff800020e41390,ffff800020e557b0,ffff800020e55800) at sys_writev+0xa7 sys/kern/sys_generic.c:312 syscall(ffff800020e55880) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e55880) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd82e0, count: 6 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) 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 __mp_lock(ffffffff828d11e0) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828d11e0) at __mp_lock+0x127 sys/kern/kern_lock.c:147 vn_write(fffffd806eaed728,ffff800020e55710,0) at vn_write+0x42 sys/kern/vfs_vnops.c:399 dofilewritev(ffff800020e41390,e,ffff800020e55710,0,ffff800020e55800) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_writev(ffff800020e41390,ffff800020e557b0,ffff800020e55800) at sys_writev+0xa7 sys/kern/sys_generic.c:312 syscall(ffff800020e55880) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e55880) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd82e0, count: -9