panic: receive 1: so 0xfffffd806f6d8180, so_type 3, sb_cc 3532 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 511603 93229 0 0 0 0 syz-executor.1 *318882 95686 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6d8180,0,ffff800020aa5bf8,0,0,ffff800020aa5b04) at soreceive+0x16ec sys/kern/uipc_socket.c:798 soo_read(fffffd806fc0c098,ffff800020aa5bf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a5f150,6,ffff800020aa5bf8,0,ffff800020aa5ce0) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236 sys_read(ffff800020a5f150,ffff800020aa5c90,ffff800020aa5ce0) at sys_read+0x83 sys/kern/sys_generic.c:156 syscall(ffff800020aa5d60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aa5d60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd290, 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 1: so 0xfffffd806f6d8180, so_type 3, sb_cc 3532 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6d8180,0,ffff800020aa5bf8,0,0,ffff800020aa5b04) at soreceive+0x16ec sys/kern/uipc_socket.c:798 soo_read(fffffd806fc0c098,ffff800020aa5bf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a5f150,6,ffff800020aa5bf8,0,ffff800020aa5ce0) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236 sys_read(ffff800020a5f150,ffff800020aa5c90,ffff800020aa5ce0) at sys_read+0x83 sys/kern/sys_generic.c:156 syscall(ffff800020aa5d60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aa5d60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd290, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020aa5940 rbx 0xffff800020aa59f0 rdx 0xffff800020a5f150 rcx 0 rax 0 r8 0xffffffff81c1ab0f kprintf+0x16f r9 0x1 r10 0x25 r11 0x2392947a80d148c7 r12 0x3000000008 r13 0xffff800020aa5950 r14 0x100 r15 0x1 rip 0xffffffff81406fc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020aa5930 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=318882 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a5e4f8,0xffff800020a5f3d8 process=0xffff800020a8a010 user=0xffff800020aa0000, vmspace=0xfffffd807f007450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 93229 511603 85302 0 7 0 syz-executor.1 93229 257924 85302 0 3 0x4000080 fsleep syz-executor.1 76555 72311 92599 0 3 0x80 nanosleep syz-executor.0 76555 335885 92599 0 3 0x4000080 ttyout syz-executor.0 76555 63060 92599 0 3 0x4000080 ttyout syz-executor.0 76555 466902 92599 0 3 0x4000080 ttyout syz-executor.0 76555 252301 92599 0 3 0x4000080 fsleep syz-executor.0 85302 295281 59815 0 3 0x82 nanosleep syz-executor.1 92599 22131 59815 0 3 0x82 nanosleep syz-executor.0 2458 75913 0 0 3 0x14200 acct acct 3159 345591 0 0 3 0x14200 bored sosplice 59815 520270 3459 0 3 0x82 thrsleep syz-fuzzer 59815 92052 3459 0 3 0x4000082 thrsleep syz-fuzzer 59815 265966 3459 0 3 0x4000082 thrsleep syz-fuzzer 59815 220621 3459 0 3 0x4000082 thrsleep syz-fuzzer 59815 165723 3459 0 3 0x4000082 thrsleep syz-fuzzer 59815 397777 3459 0 3 0x4000082 thrsleep syz-fuzzer 59815 163333 3459 0 3 0x4000082 thrsleep syz-fuzzer 59815 278392 3459 0 3 0x4000082 kqread syz-fuzzer 59815 264200 3459 0 3 0x4000082 thrsleep syz-fuzzer 59815 24261 3459 0 3 0x4000082 thrsleep syz-fuzzer 3459 372579 29627 0 3 0x10008a pause ksh 29627 521596 42832 0 3 0x92 select sshd 9890 330711 1 0 3 0x100083 ttyopn getty 42832 4941 1 0 3 0x80 select sshd 40404 448757 89380 74 3 0x100092 bpf pflogd 89380 1866 1 0 3 0x80 netio pflogd 96859 228155 59821 73 3 0x100090 kqread syslogd 59821 249677 1 0 3 0x100082 netio syslogd 45997 244906 1 77 3 0x100090 poll dhclient *95686 318882 1 0 7 0 dhclient 28018 375814 0 0 3 0x14200 pgzero zerothread 67359 13807 0 0 3 0x14200 aiodoned aiodoned 8836 340675 0 0 3 0x14200 syncer update 24388 359415 0 0 3 0x14200 cleaner cleaner 86794 436625 0 0 3 0x14200 reaper reaper 61497 403760 0 0 3 0x14200 pgdaemon pagedaemon 32766 496992 0 0 3 0x14200 bored crynlk 17767 173832 0 0 3 0x14200 bored crypto 95162 147258 0 0 3 0x40014200 acpi0 acpi0 52470 459458 0 0 3 0x40014200 idle1 71804 285048 0 0 3 0x14200 bored softnet 6173 189739 0 0 3 0x14200 bored systqmp 33596 120957 0 0 3 0x14200 bored systq 16853 511394 0 0 3 0x40014200 bored softclock 55806 496472 0 0 3 0x40014200 idle0 41331 92920 0 0 3 0x14200 bored smr 1 4334 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 95686 (dhclient) thread 0xffff800020a5f150 (318882) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82656068) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0x114 sys/kern/uipc_socket.c:706 #3 soo_read+0x53 sys/kern/sys_socket.c:70 #4 dofilereadv+0x1a2 sys/kern/sys_generic.c:236 #5 sys_read+0x83 sys/kern/sys_generic.c:156 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9539 6445K 7210K 78643K 12878 0 0 pcb 13 8K 8K 78643K 198 0 0 rtable 76 3K 4K 78643K 651 0 0 ifaddr 97 15K 17K 78643K 249 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1500 0 0 iov 0 0K 18K 78643K 178 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1237 78K 78K 78643K 2312 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 20 0 0 VM map 7 3K 3K 78643K 12 0 0 sem 12 0K 0K 78643K 200 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1809 196K 290K 78643K 12766 0 0 file desc 6 17K 25K 78643K 825 0 0 sigio 0 0K 0K 78643K 12 0 0 proc 61 63K 83K 78643K 760 0 0 subproc 32 2K 2K 78643K 119 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 88 0 0 in_multi 45 2K 3K 78643K 141 0 0 ether_multi 1 0K 0K 78643K 6 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 347 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 139 73K 77K 78643K 3853 0 0 UVM aobj 92 5K 5K 78643K 96 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 196 0 0 NDP 12 0K 0K 78643K 58 0 0 temp 139 3557K 3639K 78643K 54706 0 0 kqueue 0 0K 0K 78643K 9 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 20 0 17 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 85 0 83 1 0 1 1 0 8 0 rtentry 112 107 0 81 2 0 2 2 0 8 0 unpcb 120 880 0 867 3 2 1 2 0 8 0 syncache 264 11 0 11 4 4 0 1 0 8 0 tcpqe 32 81 0 81 3 3 0 1 0 8 0 tcpcb 544 319 0 315 2 1 1 2 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 280 1148 0 1141 6 5 1 2 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 15 0 15 1 0 1 1 0 8 1 pkpcb 40 10 0 10 1 1 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 22 0 22 6 6 0 1 0 8 0 pffrag 232 30 0 30 4 3 1 1 0 482 1 pffrnode 88 30 0 30 4 3 1 1 0 8 1 pffrent 40 788 0 788 4 3 1 1 0 8 1 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 70 0 41 1 0 1 1 0 8 0 pfstkey 112 70 0 41 2 0 2 2 0 8 0 pfstate 328 70 0 41 4 0 4 4 0 8 0 pfrule 1360 21 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 482 0 354 14 2 12 14 0 8 3 art_table 32 483 0 354 2 0 2 2 0 8 0 art_node 16 106 0 83 1 0 1 1 0 8 0 sysvmsgpl 40 84 0 70 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 198 0 188 1 0 1 1 0 8 0 shmpl 112 94 0 4 4 1 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2665 0 1260 46 0 46 46 0 8 0 ffsino 272 2665 0 1260 95 0 95 95 0 8 0 nchpl 144 4441 0 3984 61 42 19 61 0 8 0 uvmvnodes 72 3594 0 0 66 0 66 66 0 8 0 vnodes 208 3594 0 0 190 0 190 190 0 8 0 namei 1024 14883 0 14883 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 5 0 0 1 0 1 1 0 8 0 vmpool 552 10 0 5 3 2 1 1 0 8 0 scsiplug 64 3 0 3 1 1 0 1 0 8 0 scxspl 192 12622 0 12621 10 9 1 5 0 8 0 plimitpl 152 83 0 75 1 0 1 1 0 8 0 sigapl 432 1008 0 992 3 1 2 3 0 8 0 futexpl 56 20034 0 20032 1 0 1 1 0 8 0 knotepl 112 796 0 776 6 3 3 3 0 8 2 kqueuepl 104 685 0 678 1 0 1 1 0 8 0 pipepl 160 656 0 635 7 6 1 2 0 8 0 fdescpl 488 1009 0 992 3 0 3 3 0 8 0 filepl 152 9566 0 9444 11 5 6 7 0 8 1 lockfpl 104 322 0 320 1 0 1 1 0 8 0 lockfspl 48 108 0 106 1 0 1 1 0 8 0 sessionpl 112 23 0 12 1 0 1 1 0 8 0 pgrppl 48 31 0 20 1 0 1 1 0 8 0 ucredpl 96 1031 0 1022 1 0 1 1 0 8 0 zombiepl 144 992 0 992 1 0 1 1 0 8 1 processpl 896 1026 0 992 4 0 4 4 0 8 0 procpl 632 2808 0 2760 7 2 5 5 0 8 0 srpgc 64 10 0 9 4 3 1 1 0 8 0 sosppl 128 31 0 31 5 5 0 1 0 8 0 sockpl 384 2133 0 2111 14 10 4 7 0 8 1 mcl64k 65536 17 0 0 3 1 2 3 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 156 0 0 19 0 19 19 0 8 0 mtagpl 80 59 0 0 2 0 2 2 0 8 0 mbufpl 256 516 0 0 29 0 29 29 0 8 0 bufpl 256 8760 0 1702 442 0 442 442 0 8 0 anonpl 16 179042 0 158916 120 26 94 104 0 124 4 amapchunkpl 152 7186 0 7020 21 13 8 14 0 158 0 amappl16 192 8198 0 6959 97 33 64 73 0 8 2 amappl15 184 26 0 26 1 1 0 1 0 8 0 amappl14 176 97 0 90 1 0 1 1 0 8 0 amappl13 168 8 0 8 1 0 1 1 0 8 1 amappl12 160 38 0 33 2 1 1 1 0 8 0 amappl11 152 86 0 70 1 0 1 1 0 8 0 amappl10 144 218 0 211 1 0 1 1 0 8 0 amappl9 136 1014 0 1010 1 0 1 1 0 8 0 amappl8 128 594 0 552 2 0 2 2 0 8 0 amappl7 120 269 0 262 1 0 1 1 0 8 0 amappl6 112 67 0 59 1 0 1 1 0 8 0 amappl5 104 209 0 193 1 0 1 1 0 8 0 amappl4 96 1247 0 1216 1 0 1 1 0 8 0 amappl3 88 213 0 206 1 0 1 1 0 8 0 amappl2 80 6887 0 6802 3 1 2 3 0 8 0 amappl1 72 32868 0 32400 26 16 10 20 0 8 0 amappl 80 3164 0 3109 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 95 0 4 2 0 2 2 0 8 0 uaddrrnd 24 1019 0 992 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1019 0 992 1 0 1 1 0 8 0 vmmpekpl 168 12437 0 12406 3 1 2 2 0 8 0 vmmpepl 168 138437 0 135902 223 70 153 153 0 357 42 vmsppl 368 1008 0 992 2 0 2 2 0 8 0 pdppl 4096 2045 0 1999 6 0 6 6 0 8 0 pvpl 32 451636 0 427493 275 48 227 236 0 265 22 pmappl 232 1018 0 997 6 4 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 625 0 7 18 0 18 18 0 8 0