panic: receive 1: so 0xfffffd806f688000, so_type 3, sb_cc 6280 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 423291 99820 73 0x100010 0 0 syslogd *107592 83695 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f391b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688000,0,ffff800020e1e078,0,0,ffff800020e1df84) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80781f71c8,ffff800020e1e078,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd388,6,ffff800020e1e078,0,ffff800020e1e160) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd388,ffff800020e1e110,ffff800020e1e160) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e1e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1250, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic receive 1: so 0xfffffd806f688000, so_type 3, sb_cc 6280 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f391b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688000,0,ffff800020e1e078,0,0,ffff800020e1df84) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80781f71c8,ffff800020e1e078,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd388,6,ffff800020e1e078,0,ffff800020e1e160) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd388,ffff800020e1e110,ffff800020e1e160) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e1e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1250, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1ddc0 rbx 0xffff800020e1de70 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81c18a0f kprintf+0x16f r9 0x1 r10 0x2 r11 0x589bd6856dd32211 r12 0x3000000008 r13 0xffff800020e1ddd0 r14 0x100 r15 0x1 rip 0xffffffff81a6ce18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1ddb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=107592 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc008,0xffff800020ddd608 process=0xffff800020df07d0 user=0xffff800020e19000, vmspace=0xfffffd807f000450 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 92354 65010 22447 0 2 0 syz-executor.0 92354 485351 22447 0 2 0x4000000 syz-executor.0 77139 124338 0 0 3 0x14200 bored sosplice 42372 232572 66827 0 2 0x2 syz-executor.1 22447 386523 66827 0 2 0x2 syz-executor.0 66827 193350 31429 0 3 0x82 thrsleep syz-fuzzer 66827 199700 31429 0 3 0x4000082 nanosleep syz-fuzzer 66827 22407 31429 0 3 0x4000082 thrsleep syz-fuzzer 66827 164971 31429 0 3 0x4000082 kqread syz-fuzzer 66827 195173 31429 0 3 0x4000082 thrsleep syz-fuzzer 66827 284809 31429 0 3 0x4000082 thrsleep syz-fuzzer 66827 19703 31429 0 3 0x4000082 thrsleep syz-fuzzer 66827 101838 31429 0 3 0x4000082 thrsleep syz-fuzzer 66827 279771 31429 0 3 0x4000082 thrsleep syz-fuzzer 66827 163428 31429 0 3 0x4000082 thrsleep syz-fuzzer 31429 373552 19228 0 3 0x10008a pause ksh 19228 139183 70654 0 3 0x92 select sshd 10882 241406 1 0 3 0x100083 ttyin getty 70654 500629 1 0 3 0x80 select sshd 35412 509930 83129 74 3 0x100092 bpf pflogd 83129 385865 1 0 3 0x80 netio pflogd 99820 423291 40532 73 7 0x100010 syslogd 40532 377522 1 0 3 0x100082 netio syslogd 56001 6648 1 77 3 0x100090 poll dhclient *83695 107592 1 0 7 0 dhclient 79560 265564 0 0 3 0x14200 bored smr 78445 351271 0 0 3 0x14200 pgzero zerothread 122 383325 0 0 3 0x14200 aiodoned aiodoned 8571 153159 0 0 3 0x14200 syncer update 33371 507894 0 0 3 0x14200 cleaner cleaner 93970 361471 0 0 3 0x14200 reaper reaper 17917 56385 0 0 3 0x14200 pgdaemon pagedaemon 67082 481397 0 0 3 0x14200 bored crynlk 95804 60475 0 0 3 0x14200 bored crypto 74571 116028 0 0 3 0x40014200 acpi0 acpi0 55985 252276 0 0 3 0x40014200 idle1 60068 278216 0 0 3 0x14200 bored softnet 43074 360286 0 0 3 0x14200 bored systqmp 76617 345747 0 0 3 0x14200 bored systq 73476 367561 0 0 3 0x40014200 bored softclock 94481 125719 0 0 3 0x40014200 idle0 1 46923 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 83695 (dhclient) thread 0xffff800020ddd388 (107592) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828eb278) #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:737 #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9514 6414K 6730K 78643K 11073 0 pcb 13 8K 8K 78643K 51 0 rtable 87 4K 9K 78643K 373 0 ifaddr 73 14K 15K 78643K 112 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1553 0 iov 0 0K 16K 78643K 22 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1478 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 0K 0K 78643K 59 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 367 0 sigio 0 0K 0K 78643K 9 0 proc 61 63K 95K 78643K 458 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 87 0 in_multi 48 2K 2K 78643K 148 0 ether_multi 1 0K 0K 78643K 8 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 216 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 120 38K 39K 78643K 2078 0 UVM aobj 22 2K 2K 78643K 22 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 38 0 NDP 11 0K 0K 78643K 27 0 temp 111 3864K 3928K 78643K 5335 0 kqueue 3 4K 9K 78643K 19 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 113 0 111 1 0 1 1 0 8 0 rtentry 112 80 0 50 2 0 2 2 0 8 0 unpcb 120 132 0 122 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 34 0 34 1 1 0 1 0 8 0 tcpcb 544 134 0 130 1 0 1 1 0 8 0 inpcb 296 442 0 432 2 0 2 2 0 8 1 nd6 48 24 0 20 1 0 1 1 0 8 0 pfstscr 40 2 0 2 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 37 0 34 1 0 1 1 0 8 0 pfstitem 24 14 0 6 1 0 1 1 0 8 0 pfstkey 112 18 0 10 1 0 1 1 0 8 0 pfstate 328 16 0 8 2 0 2 2 0 8 0 pfrule 1360 31 0 24 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 359 0 168 13 0 13 13 0 8 1 art_table 32 360 0 168 2 0 2 2 0 8 0 art_node 16 79 0 51 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 6 1 0 1 1 0 8 0 semapl 112 57 0 47 1 0 1 1 0 8 0 shmpl 112 19 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1887 0 479 89 0 89 89 0 8 0 ffsino 272 1887 0 479 95 0 95 95 0 8 0 nchpl 144 2632 0 1034 60 0 60 60 0 8 0 uvmvnodes 72 2160 0 0 40 0 40 40 0 8 0 vnodes 208 2160 0 0 114 0 114 114 0 8 0 namei 1024 7500 0 7500 1 0 1 1 0 8 1 percpumem 16 32 0 0 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 10 1 0 1 1 0 8 0 scxspl 192 7505 0 7505 9 7 2 7 0 8 2 plimitpl 152 37 0 29 1 0 1 1 0 8 0 sigapl 424 583 0 551 4 0 4 4 0 8 0 futexpl 56 4753 0 4753 1 0 1 1 0 8 1 knotepl 112 81 0 62 1 0 1 1 0 8 0 kqueuepl 144 65 0 62 1 0 1 1 0 8 0 pipepl 304 134 0 124 3 1 2 2 0 8 1 fdescpl 496 567 0 551 3 0 3 3 0 8 0 filepl 152 3504 0 3400 5 0 5 5 0 8 1 lockfpl 104 191 0 190 1 0 1 1 0 8 0 lockfspl 48 80 0 79 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 498 0 489 1 0 1 1 0 8 0 zombiepl 144 551 0 551 1 0 1 1 0 8 1 processpl 992 583 0 551 5 0 5 5 0 8 0 procpl 624 1302 0 1260 4 0 4 4 0 8 0 sockpl 400 687 0 665 4 1 3 4 0 8 0 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 170 0 0 21 0 21 21 0 8 0 mtagpl 96 24 0 0 1 0 1 1 0 8 0 mbufpl 256 272 0 0 16 0 16 16 0 8 0 bufpl 280 3789 0 132 262 0 262 262 0 8 0 anonpl 16 65790 0 49506 76 1 75 75 0 124 9 amapchunkpl 152 3085 0 2958 13 2 11 11 0 158 5 amappl16 192 2054 0 1166 45 0 45 45 0 8 0 amappl15 184 174 0 170 1 0 1 1 0 8 0 amappl14 176 22 0 19 1 0 1 1 0 8 0 amappl13 168 185 0 181 1 0 1 1 0 8 0 amappl12 160 177 0 173 1 0 1 1 0 8 0 amappl11 152 60 0 45 1 0 1 1 0 8 0 amappl10 144 189 0 181 1 0 1 1 0 8 0 amappl9 136 389 0 388 1 0 1 1 0 8 0 amappl8 128 377 0 340 2 0 2 2 0 8 0 amappl7 120 288 0 275 1 0 1 1 0 8 0 amappl6 112 22 0 19 1 0 1 1 0 8 0 amappl5 104 464 0 446 1 0 1 1 0 8 0 amappl4 96 486 0 458 1 0 1 1 0 8 0 amappl3 88 112 0 106 1 0 1 1 0 8 0 amappl2 80 3694 0 3620 2 0 2 2 0 8 0 amappl1 72 24942 0 24496 23 13 10 18 0 8 0 amappl 80 1557 0 1515 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 21 0 0 1 0 1 1 0 8 0 uaddrrnd 24 569 0 551 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 569 0 551 1 0 1 1 0 8 0 vmmpekpl 168 8449 0 8414 2 0 2 2 0 8 0 vmmpepl 168 78080 0 76014 121 23 98 117 0 357 6 vmsppl 368 568 0 551 2 0 2 2 0 8 0 pdppl 4096 1145 0 1104 6 0 6 6 0 8 0 pvpl 32 218774 0 199070 179 0 179 179 0 265 20 pmappl 232 568 0 551 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 263 0 4 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82708ff0) 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(ffffffff828eb070) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828eb070) at __mp_lock+0x12e sys/kern/kern_lock.c:147 vn_write(fffffd806eaf3560,ffff800020e54600,0) at vn_write+0x42 sys/kern/vfs_vnops.c:399 dofilewritev(ffff800020e40870,e,ffff800020e54600,0,ffff800020e546f0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_writev(ffff800020e40870,ffff800020e546a0,ffff800020e546f0) at sys_writev+0xa7 sys/kern/sys_generic.c:312 syscall(ffff800020e54770) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e54770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3ed0, count: 6 ddb{0}> trace x86_ipi_db(ffffffff82708ff0) 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(ffffffff828eb070) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828eb070) at __mp_lock+0x12e sys/kern/kern_lock.c:147 vn_write(fffffd806eaf3560,ffff800020e54600,0) at vn_write+0x42 sys/kern/vfs_vnops.c:399 dofilewritev(ffff800020e40870,e,ffff800020e54600,0,ffff800020e546f0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_writev(ffff800020e40870,ffff800020e546a0,ffff800020e546f0) at sys_writev+0xa7 sys/kern/sys_generic.c:312 syscall(ffff800020e54770) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e54770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3ed0, count: -9 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(ffffffff823f391b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688000,0,ffff800020e1e078,0,0,ffff800020e1df84) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80781f71c8,ffff800020e1e078,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd388,6,ffff800020e1e078,0,ffff800020e1e160) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd388,ffff800020e1e110,ffff800020e1e160) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e1e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1250, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f391b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688000,0,ffff800020e1e078,0,0,ffff800020e1df84) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80781f71c8,ffff800020e1e078,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd388,6,ffff800020e1e078,0,ffff800020e1e160) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd388,ffff800020e1e110,ffff800020e1e160) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e1e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1250, count: -8