panic: receive 3: so 0xfffffd806f68a4b0, so_type 3, m 0xfffffd806f612e00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 147177 94993 77 0x100010 0 0 dhclient *516426 97195 0 0 0 1K dhclient 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(fffffd806f68a4b0,0,ffff800020e1e378,0,0,ffff800020e1e284) at soreceive+0x1727 soo_read(fffffd80747f8000,ffff800020e1e378,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e378,0,ffff800020e1e460) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e410,ffff800020e1e460) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e4e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e4e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffef220, 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 3: so 0xfffffd806f68a4b0, so_type 3, m 0xfffffd806f612e00, m_type 0 ddb{1}> 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(fffffd806f68a4b0,0,ffff800020e1e378,0,0,ffff800020e1e284) at soreceive+0x1727 soo_read(fffffd80747f8000,ffff800020e1e378,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e378,0,ffff800020e1e460) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e410,ffff800020e1e460) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e4e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e4e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffef220, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e0c0 rbx 0xffff800020e1e170 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8214115f kprintf+0x16f r9 0x1 r10 0x2 r11 0xe874ebaa4e288cd0 r12 0x3000000008 r13 0xffff800020e1e0d0 r14 0x100 r15 0x1 rip 0xffffffff82061f48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e0b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=516426 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc4e8,0xffff800020ddd128 process=0xffff800020df0bb0 user=0xffff800020e19000, vmspace=0xfffffd807efff000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 19607 40626 28516 0 2 0 syz-executor.1 92932 240911 56632 0 2 0 syz-executor.0 92932 418663 56632 0 2 0x4000000 syz-executor.0 28516 186204 31499 0 3 0x82 nanosleep syz-executor.1 56632 426370 31499 0 3 0x82 nanosleep syz-executor.0 31499 493803 7358 0 3 0x82 thrsleep syz-fuzzer 31499 512934 7358 0 3 0x4000082 nanosleep syz-fuzzer 31499 22373 7358 0 3 0x4000082 thrsleep syz-fuzzer 31499 334273 7358 0 3 0x4000082 kqread syz-fuzzer 31499 405390 7358 0 3 0x4000082 thrsleep syz-fuzzer 31499 416132 7358 0 3 0x4000082 thrsleep syz-fuzzer 31499 287152 7358 0 3 0x4000082 thrsleep syz-fuzzer 31499 432790 7358 0 3 0x4000082 thrsleep syz-fuzzer 31499 391104 7358 0 3 0x4000082 nanosleep syz-fuzzer 31499 105287 7358 0 3 0x4000082 thrsleep syz-fuzzer 7358 238521 21761 0 3 0x10008a pause ksh 21761 322995 47051 0 3 0x92 select sshd 76745 70657 1 0 3 0x100083 ttyin getty 47051 64749 1 0 3 0x80 select sshd 61853 189603 16565 74 3 0x100092 bpf pflogd 16565 279978 1 0 3 0x80 netio pflogd 72311 24897 81483 73 3 0x100090 kqread syslogd 81483 519690 1 0 3 0x100082 netio syslogd 94993 147177 1 77 7 0x100010 dhclient *97195 516426 1 0 7 0 dhclient 92492 427184 0 0 3 0x14200 bored smr 71894 158637 0 0 2 0x14200 zerothread 62377 467932 0 0 3 0x14200 aiodoned aiodoned 83761 320522 0 0 3 0x14200 syncer update 64173 339967 0 0 3 0x14200 cleaner cleaner 32074 159004 0 0 3 0x14200 reaper reaper 45018 214059 0 0 3 0x14200 pgdaemon pagedaemon 53353 281360 0 0 3 0x14200 bored crynlk 57945 109055 0 0 3 0x14200 bored crypto 35214 68067 0 0 3 0x40014200 acpi0 acpi0 63893 26604 0 0 3 0x40014200 idle1 57258 14036 0 0 3 0x14200 bored softnet 55638 491464 0 0 3 0x14200 bored systqmp 48629 313716 0 0 3 0x14200 bored systq 69594 119960 0 0 3 0x40014200 bored softclock 75182 379115 0 0 3 0x40014200 idle0 1 106748 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 97195 (dhclient) thread 0xffff800020ddcea8 (516426) 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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9482 6400K 6785K 78643K 10724 0 pcb 13 8K 8K 78643K 33 0 rtable 99 11K 12K 78643K 231 0 ifaddr 49 11K 11K 78643K 63 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1482 0 iov 0 0K 0K 78643K 4 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1274 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 24 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 128 0 sigio 0 0K 0K 78643K 2 0 proc 62 63K 95K 78643K 448 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 6 0 in_multi 33 2K 2K 78643K 48 0 ether_multi 1 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 219 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 127 23K 24K 78643K 1358 0 UVM aobj 9 2K 2K 78643K 9 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 6 0 NDP 7 0K 0K 78643K 13 0 temp 99 3858K 3922K 78643K 6386 0 kqueue 3 4K 4K 78643K 3 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 21 0 19 1 0 1 1 0 8 0 rtentry 112 47 0 8 2 0 2 2 0 8 0 unpcb 120 105 0 95 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 26 0 26 2 2 0 1 0 8 0 tcpcb 544 34 0 29 1 0 1 1 0 8 0 inpcb 296 113 0 105 3 2 1 2 0 8 0 nd6 48 8 0 4 1 0 1 1 0 8 0 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 2 0 1 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 pfrktable 1344 6 0 6 1 0 1 1 0 8 1 pfstitem 24 16 0 8 1 0 1 1 0 8 0 pfstkey 112 16 0 8 1 0 1 1 0 8 0 pfstate 328 16 0 8 2 0 2 2 0 8 0 pfrule 1360 23 0 19 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 16 12 0 12 12 0 8 0 art_table 32 189 0 16 2 0 2 2 0 8 0 art_node 16 46 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 3 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1557 0 149 90 1 89 89 0 8 0 ffsino 272 1557 0 149 95 1 94 94 0 8 0 nchpl 144 1904 0 292 60 0 60 60 0 8 0 uvmvnodes 72 1632 0 0 30 0 30 30 0 8 0 vnodes 208 1632 0 0 86 0 86 86 0 8 0 namei 1024 5366 0 5366 2 1 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 2 1 0 1 1 0 8 1 scxspl 192 5763 0 5762 9 8 1 7 0 8 0 plimitpl 152 23 0 15 1 0 1 1 0 8 0 sigapl 424 343 0 311 4 0 4 4 0 8 0 futexpl 56 1526 0 1526 1 0 1 1 0 8 1 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 14 0 12 1 0 1 1 0 8 0 pipepl 304 93 0 83 2 1 1 2 0 8 0 fdescpl 496 328 0 311 3 0 3 3 0 8 0 filepl 152 1930 0 1829 6 1 5 5 0 8 1 lockfpl 104 17 0 16 1 0 1 1 0 8 0 lockfspl 48 6 0 5 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 353 0 344 1 0 1 1 0 8 0 zombiepl 144 311 0 311 2 1 1 1 0 8 1 processpl 992 343 0 311 6 1 5 5 0 8 1 procpl 624 591 0 549 4 0 4 4 0 8 0 sockpl 400 239 0 219 5 2 3 4 0 8 0 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 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 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 174 0 0 21 0 21 21 0 8 0 mtagpl 96 15 0 0 1 0 1 1 0 8 0 mbufpl 256 236 0 0 14 0 14 14 0 8 0 bufpl 280 3602 0 132 248 0 248 248 0 8 0 anonpl 16 53082 0 36552 82 2 80 81 0 124 12 amapchunkpl 152 1770 0 1623 13 2 11 11 0 158 4 amappl16 192 1631 0 737 55 5 50 55 0 8 5 amappl15 184 10 0 8 1 0 1 1 0 8 0 amappl14 176 25 0 19 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 57 0 52 1 0 1 1 0 8 0 amappl11 152 68 0 52 1 0 1 1 0 8 0 amappl10 144 20 0 17 1 0 1 1 0 8 0 amappl9 136 406 0 403 1 0 1 1 0 8 0 amappl8 128 422 0 380 2 0 2 2 0 8 0 amappl7 120 118 0 106 1 0 1 1 0 8 0 amappl6 112 26 0 20 1 0 1 1 0 8 0 amappl5 104 330 0 311 1 0 1 1 0 8 0 amappl4 96 487 0 456 1 0 1 1 0 8 0 amappl3 88 111 0 104 1 0 1 1 0 8 0 amappl2 80 1666 0 1593 2 0 2 2 0 8 0 amappl1 72 18290 0 17839 23 13 10 18 0 8 0 amappl 80 835 0 790 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 8 0 0 1 0 1 1 0 8 0 uaddrrnd 24 328 0 311 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 328 0 311 1 0 1 1 0 8 0 vmmpekpl 168 6707 0 6674 2 0 2 2 0 8 0 vmmpepl 168 49097 0 46940 127 21 106 121 0 357 12 vmsppl 368 327 0 311 2 0 2 2 0 8 0 pdppl 4096 663 0 622 7 1 6 6 0 8 0 pvpl 32 168113 0 148323 199 2 197 198 0 265 37 pmappl 232 327 0 311 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 264 0 9 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82722ff0) 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 intr_handler(ffff800020e186d0,ffff80000004a400) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge17_untramp() at Xintr_ioapic_edge17_untramp+0x19f __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 pageflttrap(ffff800020e188b0,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800020e188b0) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffef460, count: 5 ddb{0}> trace x86_ipi_db(ffffffff82722ff0) 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 intr_handler(ffff800020e186d0,ffff80000004a400) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge17_untramp() at Xintr_ioapic_edge17_untramp+0x19f __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 pageflttrap(ffff800020e188b0,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800020e188b0) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffef460, count: -10 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(ffffffff823e24da) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f68a4b0,0,ffff800020e1e378,0,0,ffff800020e1e284) at soreceive+0x1727 soo_read(fffffd80747f8000,ffff800020e1e378,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e378,0,ffff800020e1e460) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e410,ffff800020e1e460) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e4e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e4e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffef220, count: 7 ddb{1}> 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(fffffd806f68a4b0,0,ffff800020e1e378,0,0,ffff800020e1e284) at soreceive+0x1727 soo_read(fffffd80747f8000,ffff800020e1e378,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e378,0,ffff800020e1e460) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e410,ffff800020e1e460) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e4e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e4e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffef220, count: -8