panic: receive 3: so 0xfffffd806f689000, so_type 3, m 0xfffffd807e6e7e00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 68290 76030 0 0 0 0 syz-executor.0 *218168 95080 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e2888) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f689000,0,ffff800020e1ea28,0,0,ffff800020e1e934) at soreceive+0x1727 soo_read(fffffd80761f84c0,ffff800020e1ea28,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd118,6,ffff800020e1ea28,0,ffff800020e1eb10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd118,ffff800020e1eac0,ffff800020e1eb10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd67f0, 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 0xfffffd806f689000, so_type 3, m 0xfffffd807e6e7e00, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e2888) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f689000,0,ffff800020e1ea28,0,0,ffff800020e1e934) at soreceive+0x1727 soo_read(fffffd80761f84c0,ffff800020e1ea28,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd118,6,ffff800020e1ea28,0,ffff800020e1eb10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd118,ffff800020e1eac0,ffff800020e1eb10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd67f0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e770 rbx 0xffff800020e1e820 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8210369f kprintf+0x16f r9 0x1 r10 0x2 r11 0xcd6394cfd49d2632 r12 0x3000000008 r13 0xffff800020e1e780 r14 0x100 r15 0x1 rip 0xffffffff81785548 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e760 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=218168 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc4e8,0xffff800020ddd608 process=0xffff800020df0bb0 user=0xffff800020e19000, vmspace=0xfffffd807efff170 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 76030 68290 73056 0 7 0 syz-executor.0 76030 219354 73056 0 3 0x4000000 smrbar syz-executor.0 56403 4051 11531 0 2 0 syz-executor.1 56403 467653 11531 0 2 0x4000000 syz-executor.1 87120 470995 0 0 3 0x14200 bored sosplice 11531 411077 1282 0 3 0x82 nanosleep syz-executor.1 73056 356248 1282 0 3 0x82 nanosleep syz-executor.0 1282 441822 30145 0 3 0x82 thrsleep syz-fuzzer 1282 171694 30145 0 3 0x4000082 nanosleep syz-fuzzer 1282 139462 30145 0 3 0x4000082 thrsleep syz-fuzzer 1282 518566 30145 0 3 0x4000082 kqread syz-fuzzer 1282 462036 30145 0 3 0x4000082 thrsleep syz-fuzzer 1282 291202 30145 0 3 0x4000082 thrsleep syz-fuzzer 1282 141898 30145 0 3 0x4000082 thrsleep syz-fuzzer 1282 308129 30145 0 3 0x4000082 thrsleep syz-fuzzer 1282 108196 30145 0 3 0x4000082 thrsleep syz-fuzzer 1282 512353 30145 0 3 0x4000082 thrsleep syz-fuzzer 30145 17218 99380 0 3 0x10008a pause ksh 99380 382308 38568 0 3 0x92 select sshd 96374 108631 1 0 3 0x100083 ttyin getty 38568 303628 1 0 3 0x80 select sshd 59138 490496 31009 74 3 0x100092 bpf pflogd 31009 202048 1 0 3 0x80 netio pflogd 2387 35627 41417 73 3 0x100090 kqread syslogd 41417 363709 1 0 3 0x100082 netio syslogd 42851 421535 1 77 3 0x100090 poll dhclient *95080 218168 1 0 7 0 dhclient 72091 150999 0 0 3 0x14200 bored smr 27918 254273 0 0 2 0x14200 zerothread 72714 81557 0 0 3 0x14200 aiodoned aiodoned 22447 65448 0 0 3 0x14200 syncer update 59038 165420 0 0 3 0x14200 cleaner cleaner 95715 431695 0 0 3 0x14200 reaper reaper 41684 54830 0 0 3 0x14200 pgdaemon pagedaemon 31037 271047 0 0 3 0x14200 bored crynlk 26853 256455 0 0 3 0x14200 bored crypto 29206 300265 0 0 3 0x40014200 acpi0 acpi0 79368 445594 0 0 3 0x40014200 idle1 37197 312122 0 0 3 0x14200 bored softnet 29269 345151 0 0 3 0x14200 bored systqmp 52462 501577 0 0 3 0x14200 bored systq 35383 299644 0 0 3 0x40014200 bored softclock 36953 94797 0 0 3 0x40014200 idle0 1 16522 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 95080 (dhclient) thread 0xffff800020ddd118 (218168) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82935f10) #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 9494 6407K 6663K 78643K 10706 0 pcb 13 8K 8K 78643K 31 0 rtable 111 4K 5K 78643K 278 0 ifaddr 62 12K 12K 78643K 89 0 counters 45 34K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 1489 0 iov 0 0K 16K 78643K 19 0 mount 1 1K 1K 78643K 1 0 vnodes 1228 77K 77K 78643K 1269 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 26 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 159 0 sigio 0 0K 0K 78643K 4 0 proc 61 63K 83K 78643K 457 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 56 0 ether_multi 1 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 223 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 113 22K 24K 78643K 1440 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 16 0 NDP 10 0K 0K 78643K 22 0 temp 96 3855K 3919K 78643K 2373 0 kqueue 3 4K 10K 78643K 8 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 27 0 25 1 0 1 1 0 8 0 rtentry 112 54 0 10 2 0 2 2 0 8 0 unpcb 120 228 0 218 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 42 0 42 2 2 0 1 0 8 0 tcpcb 544 52 0 40 2 0 2 2 0 8 1 inpcb 296 265 0 256 3 1 2 2 0 8 1 nd6 48 11 0 5 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1136 1 0 1 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 6 0 6 1 1 0 1 0 8 0 pfstitem 24 25 0 6 1 0 1 1 0 8 0 pfstkey 112 25 0 6 1 0 1 1 0 8 0 pfstate 328 25 0 6 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 196 0 7 13 1 12 13 0 8 0 art_table 32 197 0 7 2 0 2 2 0 8 0 art_node 16 53 0 13 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 6 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 24 0 14 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1606 0 199 89 0 89 89 0 8 0 ffsino 272 1606 0 199 95 1 94 94 0 8 0 nchpl 144 2040 0 428 60 0 60 60 0 8 0 uvmvnodes 72 1680 0 0 31 0 31 31 0 8 0 vnodes 208 1680 0 0 89 0 89 89 0 8 0 namei 1024 5351 0 5351 3 2 1 1 0 8 1 percpumem 16 37 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 2 1 1 0 1 0 8 0 scxspl 192 5915 0 5915 6 5 1 5 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 375 0 342 4 0 4 4 0 8 0 futexpl 56 2039 0 2039 2 1 1 1 0 8 1 knotepl 112 67 0 48 1 0 1 1 0 8 0 kqueuepl 144 26 0 24 1 0 1 1 0 8 0 pipepl 304 97 0 87 2 1 1 2 0 8 0 fdescpl 496 359 0 342 3 0 3 3 0 8 0 filepl 152 2009 0 1907 6 1 5 5 0 8 1 lockfpl 104 41 0 40 1 0 1 1 0 8 0 lockfspl 48 17 0 16 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 86 0 77 1 0 1 1 0 8 0 zombiepl 144 342 0 342 2 1 1 1 0 8 1 processpl 992 375 0 342 7 2 5 5 0 8 0 procpl 624 672 0 628 4 0 4 4 0 8 0 sockpl 400 522 0 501 7 3 4 4 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 292 0 0 36 0 36 36 0 8 0 mtagpl 96 10 0 0 1 0 1 1 0 8 0 mbufpl 256 304 0 0 18 0 18 18 0 8 0 bufpl 280 3574 0 133 246 0 246 246 0 8 0 anonpl 16 59518 0 42656 90 5 85 85 0 124 16 amapchunkpl 152 1944 0 1773 12 3 9 12 0 158 0 amappl16 192 2064 0 1173 60 7 53 57 0 8 8 amappl15 184 3 0 1 1 0 1 1 0 8 0 amappl14 176 25 0 20 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 82 0 79 1 0 1 1 0 8 0 amappl11 152 60 0 44 1 0 1 1 0 8 0 amappl10 144 23 0 16 1 0 1 1 0 8 0 amappl9 136 382 0 380 1 0 1 1 0 8 0 amappl8 128 325 0 302 1 0 1 1 0 8 0 amappl7 120 125 0 113 1 0 1 1 0 8 0 amappl6 112 28 0 24 1 0 1 1 0 8 0 amappl5 104 331 0 313 1 0 1 1 0 8 0 amappl4 96 486 0 459 1 0 1 1 0 8 0 amappl3 88 105 0 99 1 0 1 1 0 8 0 amappl2 80 1893 0 1814 2 0 2 2 0 8 0 amappl1 72 19198 0 18732 23 13 10 18 0 8 0 amappl 80 929 0 882 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 359 0 342 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 359 0 342 1 0 1 1 0 8 0 vmmpekpl 168 6895 0 6861 2 0 2 2 0 8 0 vmmpepl 168 52540 0 50381 127 19 108 120 0 357 14 vmsppl 368 358 0 342 2 0 2 2 0 8 0 pdppl 4096 725 0 684 7 1 6 6 0 8 0 pvpl 32 180171 0 160010 210 5 205 205 0 265 40 pmappl 232 358 0 342 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 288 0 11 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82779ff0) 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(94712,94713) at __sanitizer_cov_trace_cmp4+0x13 kd_curproc sys/dev/kcov.c:397 [inline] __sanitizer_cov_trace_cmp4(94712,94713) at __sanitizer_cov_trace_cmp4+0x13 trace_cmp sys/dev/kcov.c:104 [inline] __sanitizer_cov_trace_cmp4(94712,94713) at __sanitizer_cov_trace_cmp4+0x13 sys/dev/kcov.c:135 __mp_lock(ffffffff82935d08) at __mp_lock+0x139 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82935d08) at __mp_lock+0x139 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f pvclock_get_timecount(ffff800023f11a78) at pvclock_get_timecount clock_gettime(ffff800020e09288,3,ffff800023f11a78) at clock_gettime+0x88 sys/kern/kern_time.c:123 sys_clock_gettime(ffff800020e09288,ffff800023f11ae0,ffff800023f11b30) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800023f11bb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f11bb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc6b90, count: 3 ddb{0}> trace x86_ipi_db(ffffffff82779ff0) 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(94712,94713) at __sanitizer_cov_trace_cmp4+0x13 kd_curproc sys/dev/kcov.c:397 [inline] __sanitizer_cov_trace_cmp4(94712,94713) at __sanitizer_cov_trace_cmp4+0x13 trace_cmp sys/dev/kcov.c:104 [inline] __sanitizer_cov_trace_cmp4(94712,94713) at __sanitizer_cov_trace_cmp4+0x13 sys/dev/kcov.c:135 __mp_lock(ffffffff82935d08) at __mp_lock+0x139 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82935d08) at __mp_lock+0x139 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f pvclock_get_timecount(ffff800023f11a78) at pvclock_get_timecount clock_gettime(ffff800020e09288,3,ffff800023f11a78) at clock_gettime+0x88 sys/kern/kern_time.c:123 sys_clock_gettime(ffff800020e09288,ffff800023f11ae0,ffff800023f11b30) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800023f11bb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f11bb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc6b90, count: -12 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(ffffffff823e2888) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f689000,0,ffff800020e1ea28,0,0,ffff800020e1e934) at soreceive+0x1727 soo_read(fffffd80761f84c0,ffff800020e1ea28,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd118,6,ffff800020e1ea28,0,ffff800020e1eb10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd118,ffff800020e1eac0,ffff800020e1eb10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd67f0, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e2888) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f689000,0,ffff800020e1ea28,0,0,ffff800020e1e934) at soreceive+0x1727 soo_read(fffffd80761f84c0,ffff800020e1ea28,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd118,6,ffff800020e1ea28,0,ffff800020e1eb10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd118,ffff800020e1eac0,ffff800020e1eb10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eb90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eb90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd67f0, count: -8