panic: receive 1: so 0xfffffd806f686000, so_type 3, sb_cc 7576 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 98211 29740 73 0x100010 0 1 syslogd * 53874 80446 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d8635) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f686000,0,ffff800020e1d2d8,0,0,ffff800020e1d1e4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80759fa5f0,ffff800020e1d2d8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1d2d8,0,ffff800020e1d3c0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1d370,ffff800020e1d3c0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d440) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d440) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff7570, 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 0xfffffd806f686000, so_type 3, sb_cc 7576 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d8635) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f686000,0,ffff800020e1d2d8,0,0,ffff800020e1d1e4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80759fa5f0,ffff800020e1d2d8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1d2d8,0,ffff800020e1d3c0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1d370,ffff800020e1d3c0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d440) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d440) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff7570, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1d020 rbx 0xffff800020e1d0d0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8102be9f kprintf+0x16f r9 0x1 r10 0x2 r11 0x3eb9959d2200a619 r12 0x3000000008 r13 0xffff800020e1d030 r14 0x100 r15 0x1 rip 0xffffffff81850b98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1d010 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=53874 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd388,0xffff800020ddc9d8 process=0xffff800020df07c0 user=0xffff800020e18000, vmspace=0xfffffd807f000000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 35197 270024 2494 0 2 0 syz-executor.0 35197 478152 2494 0 2 0x4000000 syz-executor.0 42756 426960 70359 0 2 0 syz-executor.1 42756 101143 70359 0 3 0x4000080 lockf syz-executor.1 97481 49486 0 0 3 0x14200 acct acct 65969 281656 0 0 3 0x14200 bored sosplice 70359 16909 88061 0 2 0x482 syz-executor.1 2494 428482 88061 0 3 0x82 nanosleep syz-executor.0 88061 398561 48916 0 3 0x82 thrsleep syz-fuzzer 88061 475500 48916 0 3 0x4000082 thrsleep syz-fuzzer 88061 268593 48916 0 3 0x4000082 thrsleep syz-fuzzer 88061 460301 48916 0 3 0x4000082 thrsleep syz-fuzzer 88061 463618 48916 0 3 0x4000082 thrsleep syz-fuzzer 88061 468444 48916 0 3 0x4000082 kqread syz-fuzzer 88061 340456 48916 0 3 0x4000082 thrsleep syz-fuzzer 88061 72668 48916 0 3 0x4000082 thrsleep syz-fuzzer 88061 78867 48916 0 3 0x4000082 thrsleep syz-fuzzer 88061 275113 48916 0 3 0x4000082 thrsleep syz-fuzzer 48916 288731 84705 0 3 0x10008a pause ksh 84705 100876 738 0 3 0x92 select sshd 9851 83005 1 0 3 0x100083 ttyin getty 738 385907 1 0 3 0x80 select sshd 23543 491688 32841 74 3 0x100092 bpf pflogd 32841 143701 1 0 3 0x80 netio pflogd 29740 98211 51584 73 7 0x100010 syslogd 51584 138667 1 0 3 0x100082 netio syslogd 62470 379688 1 77 3 0x100090 poll dhclient *80446 53874 1 0 7 0 dhclient 61455 15426 0 0 3 0x14200 bored smr 21214 509561 0 0 2 0x14200 zerothread 85081 11855 0 0 3 0x14200 aiodoned aiodoned 98193 4545 0 0 3 0x14200 syncer update 17071 516110 0 0 3 0x14200 cleaner cleaner 12747 345605 0 0 3 0x14200 reaper reaper 3312 391401 0 0 3 0x14200 pgdaemon pagedaemon 96833 1563 0 0 3 0x14200 bored crynlk 17817 446759 0 0 3 0x14200 bored crypto 53807 499357 0 0 3 0x40014200 acpi0 acpi0 86321 27732 0 0 3 0x40014200 idle1 70074 355663 0 0 3 0x14200 bored softnet 35357 268871 0 0 3 0x14200 bored systqmp 18123 366456 0 0 3 0x14200 bored systq 33799 335940 0 0 3 0x40014200 bored softclock 61610 39391 0 0 3 0x40014200 idle0 1 511531 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 80446 (dhclient) thread 0xffff800020ddc4e8 (53874) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828e7060) #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 9514 6422K 6810K 78643K 11018 0 pcb 13 8K 8K 78643K 47 0 rtable 121 7K 8K 78643K 343 0 ifaddr 73 14K 15K 78643K 125 0 counters 43 33K 34K 78643K 49 0 ioctlops 0 0K 4K 78643K 1517 0 iov 0 0K 16K 78643K 53 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1363 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 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 35 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 296 0 sigio 0 0K 0K 78643K 6 0 proc 62 63K 95K 78643K 465 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 18 0 in_multi 33 2K 2K 78643K 78 0 ether_multi 1 0K 0K 78643K 7 0 mrt 0 0K 0K 78643K 2 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 225 0 pfkey data 0 0K 1K 78643K 2 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 119 22K 23K 78643K 1893 0 UVM aobj 31 2K 2K 78643K 31 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 20 0 NDP 11 0K 0K 78643K 23 0 temp 102 3855K 3919K 78643K 10068 0 kqueue 3 4K 8K 78643K 14 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 35 0 33 1 0 1 1 0 8 0 rtentry 112 69 0 27 2 0 2 2 0 8 0 unpcb 120 205 0 195 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 tcpqe 32 82 0 82 1 1 0 1 0 8 0 tcpcb 544 132 0 127 1 0 1 1 0 8 0 inpcb 280 518 0 509 3 1 2 2 0 8 0 nd6 48 12 0 7 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 ppxss 1128 2 0 2 1 1 0 1 0 8 0 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pffrag 232 2 0 2 1 1 0 1 0 482 0 pffrnode 88 2 0 2 1 1 0 1 0 8 0 pffrent 40 4 0 4 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 23 0 16 1 0 1 1 0 8 0 pftag 88 4 0 4 1 1 0 1 0 8 0 pfstitem 24 26 0 26 1 0 1 1 0 8 1 pfstkey 112 26 0 26 1 0 1 1 0 8 1 pfstate 328 25 0 8 3 0 3 3 0 8 1 pfrule 1360 31 0 18 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 320 0 138 13 0 13 13 0 8 1 art_table 32 321 0 138 2 0 2 2 0 8 0 art_node 16 68 0 29 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 33 0 23 1 0 1 1 0 8 0 shmpl 112 29 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1780 0 375 89 0 89 89 0 8 0 ffsino 272 1780 0 375 94 0 94 94 0 8 0 nchpl 144 2379 0 770 60 0 60 60 0 8 0 uvmvnodes 72 1925 0 0 35 0 35 35 0 8 0 vnodes 208 1925 0 0 102 0 102 102 0 8 0 namei 1024 6480 0 6480 1 0 1 1 0 8 1 percpumem 16 35 0 3 1 0 1 1 0 8 0 pfiaddrpl 120 9 0 4 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 7008 0 7008 8 6 2 7 0 8 2 plimitpl 152 27 0 19 1 0 1 1 0 8 0 sigapl 424 514 0 480 4 0 4 4 0 8 0 futexpl 56 4424 0 4424 1 0 1 1 0 8 1 knotepl 112 76 0 57 1 0 1 1 0 8 0 kqueuepl 144 152 0 150 1 0 1 1 0 8 0 pipepl 304 95 0 85 1 0 1 1 0 8 0 fdescpl 496 496 0 479 3 0 3 3 0 8 0 filepl 152 3000 0 2897 5 0 5 5 0 8 1 lockfpl 104 51 0 48 1 0 1 1 0 8 0 lockfspl 48 20 0 18 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 406 0 397 1 0 1 1 0 8 0 zombiepl 144 480 0 480 1 0 1 1 0 8 1 processpl 984 514 0 480 5 0 5 5 0 8 0 procpl 624 1118 0 1073 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 761 0 741 5 1 4 4 0 8 2 mcl64k 65536 4 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 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 165 0 0 20 0 20 20 0 8 0 mtagpl 80 35 0 0 1 0 1 1 0 8 0 mbufpl 256 278 0 0 17 0 17 17 0 8 0 bufpl 280 3832 0 134 265 0 265 265 0 8 0 anonpl 16 65183 0 48852 88 4 84 84 0 124 16 amapchunkpl 152 2699 0 2540 9 1 8 9 0 158 0 amappl16 192 2512 0 1608 62 8 54 58 0 8 8 amappl15 184 129 0 126 1 0 1 1 0 8 0 amappl14 176 159 0 154 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 149 0 145 1 0 1 1 0 8 0 amappl11 152 58 0 43 1 0 1 1 0 8 0 amappl10 144 22 0 17 1 0 1 1 0 8 0 amappl9 136 384 0 383 1 0 1 1 0 8 0 amappl8 128 349 0 317 2 0 2 2 0 8 0 amappl7 120 120 0 108 1 0 1 1 0 8 0 amappl6 112 27 0 20 1 0 1 1 0 8 0 amappl5 104 401 0 383 1 0 1 1 0 8 0 amappl4 96 491 0 461 1 0 1 1 0 8 0 amappl3 88 111 0 106 1 0 1 1 0 8 0 amappl2 80 3283 0 3202 2 0 2 2 0 8 0 amappl1 72 20869 0 20414 23 13 10 18 0 8 0 amappl 80 1374 0 1326 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 30 0 0 1 0 1 1 0 8 0 uaddrrnd 24 496 0 479 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 496 0 479 1 0 1 1 0 8 0 vmmpekpl 168 7648 0 7610 2 0 2 2 0 8 0 vmmpepl 168 67045 0 64882 115 11 104 110 0 357 9 vmsppl 368 495 0 479 2 0 2 2 0 8 0 pdppl 4096 999 0 958 6 0 6 6 0 8 0 pvpl 32 200428 0 180857 201 3 198 198 0 265 37 pmappl 232 495 0 479 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 264 0 4 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(ffffffff823d8635) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f686000,0,ffff800020e1d2d8,0,0,ffff800020e1d1e4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80759fa5f0,ffff800020e1d2d8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1d2d8,0,ffff800020e1d3c0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1d370,ffff800020e1d3c0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d440) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d440) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff7570, 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(ffffffff828e6e58) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828e6e58) at __mp_lock+0x127 sys/kern/kern_lock.c:147 vn_write(fffffd806eade728,ffff800020e552f0,0) at vn_write+0x42 sys/kern/vfs_vnops.c:399 dofilewritev(ffff800020e4fae0,e,ffff800020e552f0,0,ffff800020e553e0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_writev(ffff800020e4fae0,ffff800020e55390,ffff800020e553e0) at sys_writev+0xa7 sys/kern/sys_generic.c:312 syscall(ffff800020e55460) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e55460) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcfb40, 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(ffffffff828e6e58) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828e6e58) at __mp_lock+0x127 sys/kern/kern_lock.c:147 vn_write(fffffd806eade728,ffff800020e552f0,0) at vn_write+0x42 sys/kern/vfs_vnops.c:399 dofilewritev(ffff800020e4fae0,e,ffff800020e552f0,0,ffff800020e553e0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_writev(ffff800020e4fae0,ffff800020e55390,ffff800020e553e0) at sys_writev+0xa7 sys/kern/sys_generic.c:312 syscall(ffff800020e55460) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e55460) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcfb40, count: -9