panic: receive 3: so 0xfffffd806f669190, so_type 3, m 0xfffffd806d757d00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 187818 34383 0 0 0 0 syz-executor.1 *215702 93438 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e9a5d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f669190,0,ffff800020e1ddf8,0,0,ffff800020e1dd04) at soreceive+0x1727 soo_read(fffffd80767f01c8,ffff800020e1ddf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd64f8,6,ffff800020e1ddf8,0,ffff800020e1dee0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd64f8,ffff800020e1de90,ffff800020e1dee0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1df60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1df60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4500, 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 0xfffffd806f669190, so_type 3, m 0xfffffd806d757d00, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e9a5d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f669190,0,ffff800020e1ddf8,0,0,ffff800020e1dd04) at soreceive+0x1727 soo_read(fffffd80767f01c8,ffff800020e1ddf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd64f8,6,ffff800020e1ddf8,0,ffff800020e1dee0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd64f8,ffff800020e1de90,ffff800020e1dee0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1df60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1df60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4500, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1db40 rbx 0xffff800020e1dbf0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020e1db00 r9 0xffffffff8108ddff kprintf+0x16f r10 0x1 r11 0x4656fcd2f61eaa3a r12 0x3000000008 r13 0xffff800020e1db50 r14 0x100 r15 0x1 rip 0xffffffff822b91e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1db30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=215702 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020dd7150,0xffff800020dd6780 process=0xffff800020df0010 user=0xffff800020e19000, vmspace=0xfffffd807effe170 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 34383 187818 38456 0 7 0 syz-executor.1 34383 412028 38456 0 3 0x4000080 fsleep syz-executor.1 34383 215985 38456 0 3 0x4000080 fsleep syz-executor.1 34159 77064 44260 60928 3 0x90 nanosleep syz-executor.0 34159 141754 44260 60928 3 0x4000090 fsleep syz-executor.0 34159 289333 44260 60928 3 0x4000090 fsleep syz-executor.0 99426 59646 0 0 3 0x14200 bored sosplice 71676 141048 0 0 3 0x14280 nfsidl nfsio 78714 67990 0 0 3 0x14280 nfsidl nfsio 38582 407692 0 0 3 0x14280 nfsidl nfsio 82767 183825 0 0 3 0x14280 nfsidl nfsio 89330 25982 0 0 3 0x14280 nfsidl nfsio 67694 298537 0 0 3 0x14280 nfsidl nfsio 98848 337958 0 0 3 0x14280 nfsidl nfsio 47010 246128 0 0 3 0x14280 nfsidl nfsio 87848 122157 0 0 3 0x14280 nfsidl nfsio 20882 291087 0 0 3 0x14280 nfsidl nfsio 85430 280772 0 0 3 0x14280 nfsidl nfsio 17233 175105 0 0 3 0x14280 nfsidl nfsio 30537 521492 0 0 3 0x14280 nfsidl nfsio 18763 342495 0 0 3 0x14280 nfsidl nfsio 62573 492602 0 0 3 0x14280 nfsidl nfsio 72611 153893 0 0 3 0x14280 nfsidl nfsio 26814 418417 0 0 3 0x14280 nfsidl nfsio 85318 396201 0 0 3 0x14280 nfsidl nfsio 75846 31139 0 0 3 0x14280 nfsidl nfsio 75784 51095 0 0 3 0x14280 nfsidl nfsio 38456 512737 80656 0 3 0x82 nanosleep syz-executor.1 44260 158402 80656 0 3 0x82 nanosleep syz-executor.0 80656 164582 92311 0 3 0x82 thrsleep syz-fuzzer 80656 384948 92311 0 3 0x4000082 thrsleep syz-fuzzer 80656 293790 92311 0 3 0x4000082 thrsleep syz-fuzzer 80656 66783 92311 0 3 0x4000082 thrsleep syz-fuzzer 80656 305160 92311 0 3 0x4000082 thrsleep syz-fuzzer 80656 47352 92311 0 3 0x4000082 thrsleep syz-fuzzer 80656 46590 92311 0 3 0x4000082 thrsleep syz-fuzzer 80656 182308 92311 0 3 0x4000082 kqread syz-fuzzer 92311 494549 10433 0 3 0x10008a pause ksh 10433 349525 48652 0 3 0x92 select sshd 55720 67759 1 0 3 0x100083 ttyin getty 48652 231586 1 0 3 0x80 select sshd 8785 26621 72317 74 3 0x100092 bpf pflogd 72317 68346 1 0 3 0x80 netio pflogd 54395 435701 46771 73 3 0x100090 kqread syslogd 46771 36346 1 0 3 0x100082 netio syslogd 79137 140498 1 77 3 0x100090 poll dhclient *93438 215702 1 0 7 0 dhclient 44373 402804 0 0 3 0x14200 bored smr 12211 521569 0 0 3 0x14200 pgzero zerothread 34487 398230 0 0 3 0x14200 aiodoned aiodoned 43882 343940 0 0 3 0x14200 syncer update 89210 186644 0 0 3 0x14200 cleaner cleaner 97781 333460 0 0 3 0x14200 reaper reaper 86889 406386 0 0 3 0x14200 pgdaemon pagedaemon 14789 114643 0 0 3 0x14200 bored crynlk 15452 220372 0 0 3 0x14200 bored crypto 12772 48652 0 0 3 0x40014200 acpi0 acpi0 94911 191738 0 0 3 0x40014200 idle1 95571 207404 0 0 3 0x14200 bored softnet 42173 327102 0 0 3 0x14200 bored systqmp 81968 440822 0 0 3 0x14200 bored systq 88221 349707 0 0 3 0x40014200 bored softclock 26858 208018 0 0 3 0x40014200 idle0 1 286350 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 93438 (dhclient) thread 0xffff800020dd64f8 (215702) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82933348) #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 9531 6796K 7120K 78643K 12080 0 pcb 13 8K 8K 78643K 39 0 rtable 105 8K 9K 78643K 446 0 ifaddr 74 15K 16K 78643K 137 0 counters 43 33K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1547 0 iov 0 0K 16K 78643K 166 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1592 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 109 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 430 0 sigio 0 0K 0K 78643K 6 0 proc 61 63K 83K 78643K 478 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 35 0 in_multi 51 2K 3K 78643K 139 0 ether_multi 1 0K 0K 78643K 7 0 mrt 1 0K 0K 78643K 7 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 228 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 190 108K 110K 78643K 2414 0 UVM aobj 17 2K 2K 78643K 22 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 29 0 temp 101 3879K 3943K 78643K 3644 0 kqueue 3 4K 12K 78643K 20 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 88 39 0 37 1 0 1 1 0 8 0 rtentry 112 88 0 56 2 0 2 2 0 8 0 unpcb 120 419 0 407 1 0 1 1 0 8 0 syncache 272 8 0 8 2 2 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 592 137 0 132 2 0 2 2 0 8 0 inpcb 296 450 0 440 4 2 2 2 0 8 1 rttmr 72 4 0 4 2 2 0 1 0 8 0 nd6 48 26 0 22 1 0 1 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 47 0 47 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 46 0 36 2 0 2 2 0 8 1 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 22 0 11 1 0 1 1 0 8 0 pfstkey 112 22 0 11 1 0 1 1 0 8 0 pfstate 328 22 0 11 2 0 2 2 0 8 0 pfrule 1360 35 0 25 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 359 0 190 15 3 12 15 0 8 0 art_table 32 360 0 190 2 0 2 2 0 8 0 art_node 16 83 0 55 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 6 1 0 1 1 0 8 0 semapl 112 103 0 93 1 0 1 1 0 8 0 shmpl 112 19 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1947 0 543 89 0 89 89 0 8 0 ffsino 272 1947 0 543 95 0 95 95 0 8 0 nchpl 144 2812 0 1202 60 0 60 60 0 8 0 uvmvnodes 72 2322 0 0 43 0 43 43 0 8 0 vnodes 208 2322 0 0 123 0 123 123 0 8 0 namei 1024 7732 0 7732 2 1 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 560 8 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 22 0 14 1 0 1 1 0 8 0 scxspl 200 8650 0 8650 10 7 3 7 0 8 3 plimitpl 152 35 0 27 1 0 1 1 0 8 0 sigapl 424 666 0 613 6 0 6 6 0 8 0 futexpl 56 6159 0 6155 2 1 1 1 0 8 0 knotepl 112 83 0 63 1 0 1 1 0 8 0 kqueuepl 152 48 0 46 1 0 1 1 0 8 0 pipepl 304 206 0 194 3 1 2 2 0 8 0 fdescpl 496 630 0 613 3 0 3 3 0 8 0 filepl 152 3923 0 3815 5 0 5 5 0 8 0 lockfpl 104 100 0 99 1 0 1 1 0 8 0 lockfspl 48 36 0 35 1 0 1 1 0 8 0 sessionpl 120 18 0 7 1 0 1 1 0 8 0 pgrppl 48 28 0 17 1 0 1 1 0 8 0 ucredpl 96 272 0 261 1 0 1 1 0 8 0 zombiepl 144 613 0 613 1 0 1 1 0 8 1 processpl 1008 666 0 613 7 0 7 7 0 8 0 procpl 632 1584 0 1520 6 0 6 6 0 8 0 sosppl 144 2 0 2 1 1 0 1 0 8 0 sockpl 400 910 0 886 6 2 4 4 0 8 0 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 209 0 0 26 0 26 26 0 8 0 mtagpl 96 193 0 0 5 0 5 5 0 8 0 mbufpl 256 560 0 0 33 0 33 33 0 8 0 bufpl 280 4365 0 126 303 0 303 303 0 8 0 anonpl 16 79499 0 60410 94 8 86 86 0 124 8 amapchunkpl 152 3938 0 3603 26 8 18 18 0 158 5 amappl16 192 2550 0 1654 47 1 46 46 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 204 0 198 1 0 1 1 0 8 0 amappl13 168 36 0 32 1 0 1 1 0 8 0 amappl12 160 26 0 20 1 0 1 1 0 8 0 amappl11 152 253 0 235 1 0 1 1 0 8 0 amappl10 144 213 0 208 1 0 1 1 0 8 0 amappl9 136 366 0 363 1 0 1 1 0 8 0 amappl8 128 361 0 318 2 0 2 2 0 8 0 amappl7 120 314 0 300 1 0 1 1 0 8 0 amappl6 112 233 0 225 1 0 1 1 0 8 0 amappl5 104 332 0 316 1 0 1 1 0 8 0 amappl4 96 686 0 659 1 0 1 1 0 8 0 amappl3 88 142 0 134 1 0 1 1 0 8 0 amappl2 80 4106 0 4027 2 0 2 2 0 8 0 amappl1 72 27421 0 26935 23 13 10 18 0 8 0 amappl 80 1863 0 1773 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 21 0 5 1 0 1 1 0 8 0 uaddrrnd 24 638 0 613 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 638 0 613 1 0 1 1 0 8 0 vmmpekpl 168 9190 0 9153 2 0 2 2 0 8 0 vmmpepl 168 86917 0 84644 122 21 101 117 0 357 2 vmsppl 368 637 0 613 3 0 3 3 0 8 0 pdppl 4096 1283 0 1234 7 0 7 7 0 8 0 pvpl 32 252046 0 229886 214 10 204 204 0 265 22 pmappl 232 637 0 613 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 291 0 11 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82785ff0) 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(ffffffff82933140,ffffffff82933140) at __sanitizer_cov_trace_cmp4 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82933140) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82933140) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pageflttrap(ffff800020ed5f60,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800020ed5f60) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffd2950, count: 5 ddb{0}> trace x86_ipi_db(ffffffff82785ff0) 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(ffffffff82933140,ffffffff82933140) at __sanitizer_cov_trace_cmp4 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff82933140) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82933140) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pageflttrap(ffff800020ed5f60,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800020ed5f60) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffd2950, 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(ffffffff823e9a5d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f669190,0,ffff800020e1ddf8,0,0,ffff800020e1dd04) at soreceive+0x1727 soo_read(fffffd80767f01c8,ffff800020e1ddf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd64f8,6,ffff800020e1ddf8,0,ffff800020e1dee0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd64f8,ffff800020e1de90,ffff800020e1dee0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1df60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1df60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4500, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e9a5d) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f669190,0,ffff800020e1ddf8,0,0,ffff800020e1dd04) at soreceive+0x1727 soo_read(fffffd80767f01c8,ffff800020e1ddf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd64f8,6,ffff800020e1ddf8,0,ffff800020e1dee0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd64f8,ffff800020e1de90,ffff800020e1dee0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1df60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1df60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4500, count: -8