panic: receive 3: so 0xfffffd806f692190, so_type 3, m 0xfffffd8069f31e00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *238878 65728 0 0 0 0K dhclient 22101 18951 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e24da) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f692190,0,ffff800020e1de68,0,0,ffff800020e1dd74) at soreceive+0x1727 soo_read(fffffd8073638428,ffff800020e1de68,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1de68,0,ffff800020e1df50) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1df00,ffff800020e1df50) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1dfd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1dfd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea370, 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 3: so 0xfffffd806f692190, so_type 3, m 0xfffffd8069f31e00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e24da) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f692190,0,ffff800020e1de68,0,0,ffff800020e1dd74) at soreceive+0x1727 soo_read(fffffd8073638428,ffff800020e1de68,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1de68,0,ffff800020e1df50) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1df00,ffff800020e1df50) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1dfd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1dfd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea370, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1dbb0 rbx 0xffff800020e1dc60 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8214115f kprintf+0x16f r9 0x1 r10 0x2 r11 0x1fdd58ee14539233 r12 0x3000000008 r13 0xffff800020e1dbc0 r14 0x100 r15 0x1 rip 0xffffffff82061f48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1dba0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=238878 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcea8,0xffff800020ddcc48 process=0xffff800020df1370 user=0xffff800020e19000, vmspace=0xfffffd807efff170 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 22019 216430 59328 0 3 0x80 nanosleep syz-executor.1 22019 483893 59328 0 3 0x4000080 fsleep syz-executor.1 22019 443967 59328 0 3 0x4000080 fsleep syz-executor.1 40375 359656 0 0 3 0x14200 bored sosplice 59328 15123 31848 0 3 0x82 nanosleep syz-executor.1 70979 35843 31848 0 3 0x82 nanosleep syz-executor.0 31848 337464 38433 0 3 0x82 kqread syz-fuzzer 31848 353152 38433 0 3 0x4000082 thrsleep syz-fuzzer 31848 184441 38433 0 3 0x4000082 thrsleep syz-fuzzer 31848 374773 38433 0 3 0x4000082 thrsleep syz-fuzzer 31848 499144 38433 0 3 0x4000082 thrsleep syz-fuzzer 31848 79429 38433 0 3 0x4000082 thrsleep syz-fuzzer 31848 503847 38433 0 3 0x4000082 thrsleep syz-fuzzer 31848 137076 38433 0 3 0x4000082 thrsleep syz-fuzzer 31848 457182 38433 0 3 0x4000082 thrsleep syz-fuzzer 31848 340910 38433 0 3 0x4000082 thrsleep syz-fuzzer 31848 188979 38433 0 3 0x4000082 thrsleep syz-fuzzer 38433 409014 91225 0 3 0x10008a pause ksh 91225 293179 97765 0 3 0x92 select sshd 17963 202720 1 0 3 0x100083 ttyin getty 97765 152135 1 0 3 0x80 select sshd 61183 429442 55503 74 3 0x100092 bpf pflogd 55503 429839 1 0 3 0x80 netio pflogd 88761 313974 58473 73 3 0x100090 kqread syslogd 58473 311861 1 0 3 0x100082 netio syslogd 82187 438385 1 77 3 0x100090 poll dhclient *65728 238878 1 0 7 0 dhclient 95717 422817 0 0 3 0x14200 bored smr 85941 183689 0 0 2 0x14200 zerothread 51022 473726 0 0 3 0x14200 aiodoned aiodoned 97575 16798 0 0 3 0x14200 syncer update 69165 152083 0 0 3 0x14200 cleaner cleaner 18951 22101 0 0 7 0x14200 reaper 83027 72463 0 0 3 0x14200 pgdaemon pagedaemon 3644 506230 0 0 3 0x14200 bored crynlk 8751 19511 0 0 3 0x14200 bored crypto 2528 308133 0 0 3 0x40014200 acpi0 acpi0 19241 511418 0 0 3 0x40014200 idle1 27810 317122 0 0 3 0x14200 bored softnet 20331 409641 0 0 3 0x14200 bored systqmp 30019 78744 0 0 3 0x14200 bored systq 96179 292609 0 0 3 0x40014200 bored softclock 7043 442171 0 0 3 0x40014200 idle0 1 186021 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex pvpl r = 0 (0xffffffff82906158) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 pool_put+0x64 sys/kern/subr_pool.c:792 #4 pmap_do_remove+0x61b sys/arch/amd64/amd64/pmap.c:1866 #5 uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] #5 uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2739 #6 uvmspace_free+0x86 sys/uvm/uvm_map.c:3646 #7 uvm_exit+0x29 sys/uvm/uvm_glue.c:297 #8 reaper+0x189 sys/kern/kern_exit.c:456 #9 proc_trampoline+0x1c Process 65728 (dhclient) thread 0xffff800020ddc4e8 (238878) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8292f068) #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 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 9525 6540K 6794K 78643K 11164 0 pcb 13 8K 8K 78643K 74 0 rtable 104 3K 4K 78643K 335 0 ifaddr 70 13K 14K 78643K 115 0 sysctl 3 1K 1K 78643K 3 0 counters 43 33K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 1821 0 iov 0 0K 32K 78643K 54 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1380 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 111 0 dirhash 9 1K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 460 0 sigio 0 0K 0K 78643K 4 0 proc 62 63K 83K 78643K 477 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 41 0 in_multi 36 2K 2K 78643K 96 0 ether_multi 1 0K 0K 78643K 6 0 mrt 0 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 253 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 140 56K 56K 78643K 2485 0 UVM aobj 24 2K 2K 78643K 26 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 34 0 NDP 12 0K 0K 78643K 30 0 temp 127 3864K 3930K 78643K 11412 0 kqueue 3 4K 9K 78643K 24 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 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 38 0 36 1 0 1 1 0 8 0 rtentry 112 78 0 36 2 0 2 2 0 8 0 unpcb 120 181 0 171 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 552 0 552 2 2 0 2 0 8 0 tcpcb 544 115 0 107 2 1 1 2 0 8 0 inpcb 296 906 0 897 3 1 2 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 20 0 15 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 pffrag 232 3 0 1 1 0 1 1 0 482 0 pffrnode 88 3 0 1 1 0 1 1 0 8 0 pffrent 40 49 0 47 1 0 1 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 pfstitem 24 13 0 6 1 0 1 1 0 8 0 pfstkey 112 13 0 6 1 0 1 1 0 8 0 pfstate 328 13 0 6 2 1 1 2 0 8 0 pfrule 1360 22 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 295 0 119 13 0 13 13 0 8 0 art_table 32 296 0 119 2 0 2 2 0 8 0 art_node 16 77 0 38 1 0 1 1 0 8 0 sysvmsgpl 40 25 0 14 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 107 0 97 1 0 1 1 0 8 0 shmpl 112 23 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 10 3 1 2 3 0 8 0 dino2pl 256 1953 0 545 89 0 89 89 0 8 0 ffsino 272 1953 0 545 96 1 95 95 0 8 0 nchpl 144 2752 0 1138 60 0 60 60 0 8 0 uvmvnodes 72 2126 0 0 39 0 39 39 0 8 0 vnodes 208 2126 0 0 112 0 112 112 0 8 0 namei 1024 7905 0 7905 3 2 1 1 0 8 1 percpumem 16 37 0 5 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 560 3 0 0 1 0 1 1 0 8 0 scxspl 192 8414 0 8414 9 8 1 7 0 8 1 plimitpl 152 35 0 27 1 0 1 1 0 8 0 sigapl 424 676 0 644 4 0 4 4 0 8 0 futexpl 56 7062 0 7060 2 1 1 1 0 8 0 knotepl 112 82 0 63 1 0 1 1 0 8 0 kqueuepl 144 333 0 328 1 0 1 1 0 8 0 pipepl 304 131 0 121 4 3 1 2 0 8 0 fdescpl 496 660 0 644 3 0 3 3 0 8 0 filepl 152 4351 0 4247 6 1 5 5 0 8 0 lockfpl 104 125 0 124 1 0 1 1 0 8 0 lockfspl 48 43 0 42 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 503 0 494 1 0 1 1 0 8 0 zombiepl 144 644 0 643 2 1 1 1 0 8 0 processpl 992 676 0 643 6 1 5 5 0 8 0 procpl 624 1684 0 1639 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 1139 0 1118 5 2 3 4 0 8 0 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 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 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 237 0 0 29 0 29 29 0 8 0 mtagpl 96 32 0 0 1 0 1 1 0 8 0 mbufpl 256 260 0 0 17 1 16 17 0 8 0 bufpl 280 4329 0 134 300 0 300 300 0 8 0 anonpl 16 77350 0 60041 83 12 71 78 0 124 1 amapchunkpl 152 4114 0 3954 21 13 8 20 0 158 0 amappl16 192 2948 0 2011 49 2 47 48 0 8 0 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 239 0 233 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 8 0 8 1 1 0 1 0 8 0 amappl11 152 265 0 248 1 0 1 1 0 8 0 amappl10 144 25 0 17 1 0 1 1 0 8 0 amappl9 136 385 0 382 1 0 1 1 0 8 0 amappl8 128 373 0 332 2 0 2 2 0 8 0 amappl7 120 128 0 116 1 0 1 1 0 8 0 amappl6 112 240 0 232 1 0 1 1 0 8 0 amappl5 104 360 0 344 1 0 1 1 0 8 0 amappl4 96 694 0 666 1 0 1 1 0 8 0 amappl3 88 116 0 111 1 0 1 1 0 8 0 amappl2 80 4356 0 4278 2 0 2 2 0 8 0 amappl1 72 29166 0 28666 23 13 10 18 0 8 0 amappl 80 1946 0 1893 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 25 0 2 1 0 1 1 0 8 0 uaddrrnd 24 663 0 644 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 663 0 644 1 0 1 1 0 8 0 vmmpekpl 168 8769 0 8730 2 0 2 2 0 8 0 vmmpepl 168 91069 0 88826 126 27 99 117 0 357 0 vmsppl 368 662 0 643 2 0 2 2 0 8 0 pdppl 4096 1333 0 1289 7 1 6 6 0 8 0 pvpl 32 246614 0 226191 191 12 179 187 0 265 12 pmappl 232 662 0 643 4 2 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 279 0 12 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(ffffffff823e24da) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f692190,0,ffff800020e1de68,0,0,ffff800020e1dd74) at soreceive+0x1727 soo_read(fffffd8073638428,ffff800020e1de68,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1de68,0,ffff800020e1df50) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1df00,ffff800020e1df50) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1dfd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1dfd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea370, 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(ffffffff8292ee60) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8292ee60) at __mp_lock+0x127 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff800020dcf2c0,1) at uvm_unmap_detach+0xe7 sys/uvm/uvm_map.c:1581 uvm_map_teardown(fffffd806e8f9178) at uvm_map_teardown+0x25c sys/uvm/uvm_map.c:2757 uvmspace_free(fffffd806e8f9178) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3646 uvm_exit(ffff8000230fe028) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff800020d88ea0) at reaper+0x189 sys/kern/kern_exit.c:456 end trace frame: 0x0, 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(ffffffff8292ee60) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8292ee60) at __mp_lock+0x127 sys/kern/kern_lock.c:147 uvm_unmap_detach(ffff800020dcf2c0,1) at uvm_unmap_detach+0xe7 sys/uvm/uvm_map.c:1581 uvm_map_teardown(fffffd806e8f9178) at uvm_map_teardown+0x25c sys/uvm/uvm_map.c:2757 uvmspace_free(fffffd806e8f9178) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3646 uvm_exit(ffff8000230fe028) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff800020d88ea0) at reaper+0x189 sys/kern/kern_exit.c:456 end trace frame: 0x0, count: -9