panic: receive 3: so 0xfffffd806f6887d0, so_type 3, m 0xfffffd806d6ab500, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 126932 24580 0 0 0 0 syz-executor.1 * 91372 1345 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e0d39) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6887d0,0,ffff800020e1e598,0,0,ffff800020e1e4a4) at soreceive+0x1727 soo_read(fffffd807bbf8000,ffff800020e1e598,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc008,6,ffff800020e1e598,0,ffff800020e1e680) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc008,ffff800020e1e630,ffff800020e1e680) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e700) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e700) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd46b0, 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 0xfffffd806f6887d0, so_type 3, m 0xfffffd806d6ab500, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e0d39) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6887d0,0,ffff800020e1e598,0,0,ffff800020e1e4a4) at soreceive+0x1727 soo_read(fffffd807bbf8000,ffff800020e1e598,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc008,6,ffff800020e1e598,0,ffff800020e1e680) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc008,ffff800020e1e630,ffff800020e1e680) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e700) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e700) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd46b0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e2e0 rbx 0xffff800020e1e390 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81e2547f kprintf+0x16f r9 0x1 r10 0x2 r11 0x2251969d76370f4a r12 0x3000000008 r13 0xffff800020e1e2f0 r14 0x100 r15 0x1 rip 0xffffffff820bb618 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e2d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=91372 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd118,0xffff800020ddc288 process=0xffff800020df0010 user=0xffff800020e19000, vmspace=0xfffffd807f0002e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 24580 126932 76716 0 7 0 syz-executor.1 24580 441512 76716 0 3 0x4000080 fsleep syz-executor.1 5233 327524 0 0 3 0x14200 bored sosplice 63479 55546 0 0 3 0x14280 nfsidl nfsio 85912 104429 0 0 3 0x14280 nfsidl nfsio 69006 372170 0 0 3 0x14280 nfsidl nfsio 72317 283886 0 0 3 0x14280 nfsidl nfsio 25557 296772 0 0 3 0x14280 nfsidl nfsio 54440 130006 0 0 3 0x14280 nfsidl nfsio 72891 327276 0 0 3 0x14280 nfsidl nfsio 5195 106903 0 0 3 0x14280 nfsidl nfsio 5203 157423 0 0 3 0x14280 nfsidl nfsio 96571 476185 0 0 3 0x14280 nfsidl nfsio 45369 285443 0 0 3 0x14280 nfsidl nfsio 99901 372216 0 0 3 0x14280 nfsidl nfsio 67976 110408 0 0 3 0x14280 nfsidl nfsio 34785 279176 0 0 3 0x14280 nfsidl nfsio 90449 328515 0 0 3 0x14280 nfsidl nfsio 9528 203732 0 0 3 0x14280 nfsidl nfsio 31150 399113 0 0 3 0x14280 nfsidl nfsio 92869 412372 0 0 3 0x14280 nfsidl nfsio 93205 143209 0 0 3 0x14280 nfsidl nfsio 67891 204376 0 0 3 0x14280 nfsidl nfsio 51200 19521 79025 0 3 0x82 nanosleep syz-executor.0 76716 65831 79025 0 3 0x82 nanosleep syz-executor.1 79025 213414 29212 0 3 0x82 thrsleep syz-fuzzer 79025 6298 29212 0 3 0x4000082 thrsleep syz-fuzzer 79025 353691 29212 0 3 0x4000082 thrsleep syz-fuzzer 79025 498137 29212 0 3 0x4000082 thrsleep syz-fuzzer 79025 39788 29212 0 3 0x4000082 thrsleep syz-fuzzer 79025 123978 29212 0 3 0x4000082 thrsleep syz-fuzzer 79025 41831 29212 0 3 0x4000082 thrsleep syz-fuzzer 79025 111226 29212 0 3 0x4000082 thrsleep syz-fuzzer 79025 517090 29212 0 3 0x4000082 thrsleep syz-fuzzer 79025 239916 29212 0 3 0x4000082 thrsleep syz-fuzzer 79025 494945 29212 0 3 0x4000082 kqread syz-fuzzer 29212 241252 38621 0 3 0x10008a pause ksh 38621 400223 61266 0 3 0x92 select sshd 89374 478892 1 0 3 0x100083 ttyin getty 61266 261521 1 0 3 0x80 select sshd 34840 415788 50609 74 3 0x100092 bpf pflogd 50609 447313 1 0 3 0x80 netio pflogd 2392 357342 96094 73 3 0x100090 kqread syslogd 96094 205073 1 0 3 0x100082 netio syslogd 46124 503398 1 77 3 0x100090 poll dhclient * 1345 91372 1 0 7 0 dhclient 76061 421327 0 0 3 0x14200 bored smr 38166 254197 0 0 2 0x14200 zerothread 10323 88601 0 0 3 0x14200 aiodoned aiodoned 89555 46939 0 0 3 0x14200 syncer update 27762 162945 0 0 3 0x14200 cleaner cleaner 16234 273878 0 0 3 0x14200 reaper reaper 87867 193766 0 0 3 0x14200 pgdaemon pagedaemon 90070 73292 0 0 3 0x14200 bored crynlk 64319 131537 0 0 3 0x14200 bored crypto 22605 225367 0 0 3 0x40014200 acpi0 acpi0 10183 264980 0 0 3 0x40014200 idle1 36370 245624 0 0 3 0x14200 bored softnet 57119 469103 0 0 3 0x14200 bored systqmp 5285 299660 0 0 3 0x14200 bored systq 27532 46694 0 0 3 0x40014200 bored softclock 16886 112349 0 0 3 0x40014200 idle0 1 200969 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 1345 (dhclient) thread 0xffff800020ddc008 (91372) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8292e900) #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 9506 6411K 6738K 78643K 11694 0 pcb 13 8K 8K 78643K 54 0 rtable 85 2K 7K 78643K 476 0 ifaddr 75 16K 16K 78643K 148 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 57 0 ioctlops 0 0K 4K 78643K 1539 0 iov 0 0K 16K 78643K 53 0 mount 1 1K 1K 78643K 1 0 vnodes 1230 77K 77K 78643K 1676 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 20 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 472 0 sigio 0 0K 0K 78643K 6 0 proc 62 63K 95K 78643K 469 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 36 0 in_multi 67 3K 3K 78643K 114 0 ether_multi 1 0K 0K 78643K 5 0 mrt 0 0K 0K 78643K 3 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 229 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 125 39K 44K 78643K 2382 0 UVM aobj 9 2K 2K 78643K 13 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 40 0 NDP 10 0K 0K 78643K 25 0 temp 94 3854K 3918K 78643K 7498 0 kqueue 3 4K 8K 78643K 7 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 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 31 0 29 1 0 1 1 0 8 0 rtentry 112 110 0 77 2 0 2 2 0 8 0 unpcb 120 153 0 143 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 95 0 95 1 1 0 1 0 8 0 tcpcb 544 111 0 107 1 0 1 1 0 8 0 inpcb 296 630 0 623 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 13 0 8 1 0 1 1 0 8 0 pkpcb 40 6 0 6 1 0 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 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 5 0 3 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 38 0 38 2 1 1 1 0 8 1 pfstitem 24 22 0 6 1 0 1 1 0 8 0 pfstkey 112 26 0 10 1 0 1 1 0 8 0 pfstate 328 24 0 8 2 0 2 2 0 8 0 pfrule 1360 31 0 23 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 258 0 108 12 1 11 12 0 8 1 art_table 32 260 0 108 2 0 2 2 0 8 0 art_node 16 61 0 34 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 4 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 12 0 2 1 0 1 1 0 8 0 shmpl 112 10 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1957 0 552 89 1 88 89 0 8 0 ffsino 272 1957 0 552 94 0 94 94 0 8 0 nchpl 144 2753 0 1139 60 0 60 60 0 8 0 uvmvnodes 72 2423 0 0 45 0 45 45 0 8 0 vnodes 208 2423 0 0 128 0 128 128 0 8 0 namei 1024 7574 0 7574 1 0 1 1 0 8 1 percpumem 16 39 0 7 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 6 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 10 0 10 1 1 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 8259 0 8259 9 7 2 7 0 8 2 plimitpl 152 40 0 32 1 0 1 1 0 8 0 sigapl 424 708 0 656 6 0 6 6 0 8 0 futexpl 56 5776 0 5775 1 0 1 1 0 8 0 knotepl 112 65 0 46 1 0 1 1 0 8 0 kqueuepl 144 36 0 34 1 0 1 1 0 8 0 pipepl 304 144 0 133 2 1 1 2 0 8 0 fdescpl 496 672 0 656 3 0 3 3 0 8 0 filepl 152 3528 0 3425 5 0 5 5 0 8 1 lockfpl 104 91 0 90 1 0 1 1 0 8 0 lockfspl 48 31 0 30 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 26 0 15 1 0 1 1 0 8 0 ucredpl 96 235 0 226 1 0 1 1 0 8 0 zombiepl 144 656 0 655 2 1 1 1 0 8 0 processpl 992 708 0 655 8 1 7 7 0 8 0 procpl 624 1621 0 1557 6 0 6 6 0 8 0 sosppl 128 9 0 9 2 1 1 1 0 8 1 sockpl 400 820 0 801 5 2 3 4 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 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 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 181 0 0 22 0 22 22 0 8 0 mtagpl 96 24 0 0 1 0 1 1 0 8 0 mbufpl 256 194 0 0 12 0 12 12 0 8 0 bufpl 280 4179 0 132 290 0 290 290 0 8 0 anonpl 16 73717 0 56220 76 1 75 75 0 124 4 amapchunkpl 152 3415 0 3253 9 0 9 9 0 158 0 amappl16 192 2730 0 1800 48 0 48 48 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 237 0 230 1 0 1 1 0 8 0 amappl13 168 30 0 27 1 0 1 1 0 8 0 amappl12 160 4 0 3 1 0 1 1 0 8 0 amappl11 152 270 0 253 1 0 1 1 0 8 0 amappl10 144 24 0 17 1 0 1 1 0 8 0 amappl9 136 620 0 617 1 0 1 1 0 8 0 amappl8 128 356 0 324 2 0 2 2 0 8 0 amappl7 120 116 0 105 1 0 1 1 0 8 0 amappl6 112 22 0 19 1 0 1 1 0 8 0 amappl5 104 354 0 339 1 0 1 1 0 8 0 amappl4 96 708 0 672 1 0 1 1 0 8 0 amappl3 88 333 0 326 1 0 1 1 0 8 0 amappl2 80 4447 0 4378 2 0 2 2 0 8 0 amappl1 72 28220 0 27773 23 13 10 18 0 8 0 amappl 80 1862 0 1814 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 12 0 4 1 0 1 1 0 8 0 uaddrrnd 24 678 0 660 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 678 0 660 1 0 1 1 0 8 0 vmmpekpl 168 8643 0 8602 3 0 3 3 0 8 0 vmmpepl 168 91222 0 89113 119 19 100 114 0 357 3 vmsppl 368 677 0 660 2 0 2 2 0 8 0 pdppl 4096 1363 0 1322 7 1 6 6 0 8 0 pvpl 32 242329 0 221528 182 1 181 181 0 265 12 pmappl 232 677 0 660 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 264 0 8 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82793ff0) 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 __sanitizer_cov_trace_cmp4(ffffffff8292e6f8,ffffffff8292e6f8) at __sanitizer_cov_trace_cmp4+0x7f sys/dev/kcov.c:137 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff8292e6f8) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8292e6f8) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pageflttrap(ffff8000229915a0,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff8000229915a0) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffdc6d0, count: 5 ddb{0}> trace x86_ipi_db(ffffffff82793ff0) 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 __sanitizer_cov_trace_cmp4(ffffffff8292e6f8,ffffffff8292e6f8) at __sanitizer_cov_trace_cmp4+0x7f sys/dev/kcov.c:137 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff8292e6f8) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8292e6f8) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pageflttrap(ffff8000229915a0,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff8000229915a0) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffdc6d0, 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(ffffffff823e0d39) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6887d0,0,ffff800020e1e598,0,0,ffff800020e1e4a4) at soreceive+0x1727 soo_read(fffffd807bbf8000,ffff800020e1e598,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc008,6,ffff800020e1e598,0,ffff800020e1e680) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc008,ffff800020e1e630,ffff800020e1e680) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e700) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e700) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd46b0, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e0d39) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6887d0,0,ffff800020e1e598,0,0,ffff800020e1e4a4) at soreceive+0x1727 soo_read(fffffd807bbf8000,ffff800020e1e598,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc008,6,ffff800020e1e598,0,ffff800020e1e680) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc008,ffff800020e1e630,ffff800020e1e680) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e700) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e700) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd46b0, count: -8