panic: receive 1: so 0xfffffd806f663600, so_type 3, sb_cc 4117 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 342416 50159 0 0x2 0x4000480 1 syz-fuzzer * 2669 81653 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821be514) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f663600,0,ffff800020ab5388,0,0,ffff800020ab5294) at soreceive+0x16ec sys/kern/uipc_socket.c:798 soo_read(fffffd8070d96260,ffff800020ab5388,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a6e4f8,6,ffff800020ab5388,0,ffff800020ab5470) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236 sys_read(ffff800020a6e4f8,ffff800020ab5420,ffff800020ab5470) at sys_read+0x83 sys/kern/sys_generic.c:156 syscall(ffff800020ab54f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020ab54f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc90c0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic receive 1: so 0xfffffd806f663600, so_type 3, sb_cc 4117 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821be514) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f663600,0,ffff800020ab5388,0,0,ffff800020ab5294) at soreceive+0x16ec sys/kern/uipc_socket.c:798 soo_read(fffffd8070d96260,ffff800020ab5388,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a6e4f8,6,ffff800020ab5388,0,ffff800020ab5470) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236 sys_read(ffff800020a6e4f8,ffff800020ab5420,ffff800020ab5470) at sys_read+0x83 sys/kern/sys_generic.c:156 syscall(ffff800020ab54f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020ab54f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc90c0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020ab50d0 rbx 0xffff800020ab5180 rdx 0xffff800020a6e4f8 rcx 0 rax 0 r8 0xffffffff819eb99f kprintf+0x16f r9 0x1 r10 0x25 r11 0x8243a6ccfe02b784 r12 0x3000000008 r13 0xffff800020ab50e0 r14 0x100 r15 0x1 rip 0xffffffff81c864b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020ab50c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=2669 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a6eed8,0xffff800020a6e9f8 process=0xffff800020a9aaa8 user=0xffff800020ab0000, vmspace=0xfffffd807f008450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 10340 179931 96588 0 2 0 syz-executor.1 10340 189049 96588 0 2 0x4000000 syz-executor.1 37405 460578 0 0 3 0x14200 bored sosplice 96588 354027 50159 0 2 0x482 syz-executor.1 2996 79405 50159 0 2 0x2 syz-executor.0 50159 412042 38971 0 3 0x82 thrsleep syz-fuzzer 50159 46499 38971 0 2 0x4000002 syz-fuzzer 50159 342416 38971 0 7 0x4000482 syz-fuzzer 50159 282291 38971 0 3 0x4000082 thrsleep syz-fuzzer 50159 146866 38971 0 3 0x4000082 kqread syz-fuzzer 50159 259255 38971 0 3 0x4000082 thrsleep syz-fuzzer 50159 434808 38971 0 3 0x4000082 thrsleep syz-fuzzer 50159 263243 38971 0 3 0x4000082 thrsleep syz-fuzzer 50159 40422 38971 0 3 0x4000082 thrsleep syz-fuzzer 50159 446197 38971 0 3 0x4000082 thrsleep syz-fuzzer 38971 466987 19663 0 3 0x10008a pause ksh 19663 327583 5965 0 3 0x92 select sshd 23792 488078 1 0 3 0x100083 ttyin getty 5965 478432 1 0 3 0x80 select sshd 49349 454065 53306 74 3 0x100092 bpf pflogd 53306 275336 1 0 3 0x80 netio pflogd 33151 209091 12033 73 3 0x100090 kqread syslogd 12033 402325 1 0 3 0x100082 netio syslogd 98443 15010 1 77 3 0x100090 poll dhclient *81653 2669 1 0 7 0 dhclient 26171 483633 0 0 3 0x14200 pgzero zerothread 1715 48635 0 0 3 0x14200 aiodoned aiodoned 11452 48050 0 0 3 0x14200 syncer update 45594 23562 0 0 3 0x14200 cleaner cleaner 52873 472652 0 0 3 0x14200 reaper reaper 31626 377668 0 0 3 0x14200 pgdaemon pagedaemon 73180 80294 0 0 3 0x14200 bored crynlk 30531 405882 0 0 3 0x14200 bored crypto 32779 378682 0 0 3 0x40014200 acpi0 acpi0 7993 193386 0 0 3 0x40014200 idle1 28108 399619 0 0 3 0x14200 bored softnet 33651 344180 0 0 3 0x14200 bored systqmp 70491 257202 0 0 3 0x14200 bored systq 8714 425847 0 0 3 0x40014200 bored softclock 48293 128798 0 0 3 0x40014200 idle0 11659 128306 0 0 3 0x14200 bored smr 1 118508 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 81653 (dhclient) thread 0xffff800020a6e4f8 (2669) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82614d50) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9504 6410K 7951K 78643K 11412 0 pcb 13 8K 8K 78643K 64 0 rtable 108 4K 4K 78643K 388 0 ifaddr 62 13K 13K 78643K 101 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 1475 0 iov 0 0K 16K 78643K 27 0 mount 1 1K 1K 78643K 1 0 vnodes 1228 77K 77K 78643K 1430 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 10 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 52 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 167 0 sigio 0 0K 0K 78643K 3 0 proc 61 63K 83K 78643K 466 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 15 0 in_multi 35 2K 2K 78643K 52 0 ether_multi 1 0K 0K 78643K 2 0 mrt 0 0K 0K 78643K 7 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 48 212K 212K 78643K 48 0 exec 0 0K 1K 78643K 215 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 126 23K 24K 78643K 1505 0 UVM aobj 29 2K 2K 78643K 29 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 38 0 NDP 10 0K 0K 78643K 22 0 temp 103 3028K 3124K 78643K 6561 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> 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 143 0 141 1 0 1 1 0 8 0 rtentry 112 59 0 17 2 0 2 2 0 8 0 unpcb 120 103 0 93 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 55 0 55 1 1 0 1 0 8 0 tcpcb 544 66 0 62 1 0 1 1 0 8 0 inpcb 280 218 0 211 2 0 2 2 0 8 1 rttmr 72 2 0 2 1 0 1 1 0 8 1 nd6 48 5 0 2 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 ppxss 1128 4 0 4 1 0 1 1 0 8 1 pffrag 232 5 0 5 1 0 1 1 0 482 1 pffrnode 88 5 0 5 1 0 1 1 0 8 1 pffrent 40 141 0 141 1 0 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 22 0 0 1 0 1 1 0 8 0 pfstkey 112 22 0 0 1 0 1 1 0 8 0 pfstate 328 22 0 0 2 0 2 2 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 250 0 48 15 0 15 15 0 8 0 art_table 32 251 0 48 2 0 2 2 0 8 0 art_node 16 56 0 17 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 50 0 40 1 0 1 1 0 8 0 shmpl 112 27 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1650 0 241 46 0 46 46 0 8 0 ffsino 272 1650 0 241 95 0 95 95 0 8 0 nchpl 144 2110 0 492 61 0 61 61 0 8 0 uvmvnodes 72 1868 0 0 34 0 34 34 0 8 0 vnodes 208 1868 0 0 99 0 99 99 0 8 0 namei 1024 6184 0 6184 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 5995 0 5995 8 1 7 7 0 8 7 plimitpl 152 19 0 11 1 0 1 1 0 8 0 sigapl 432 366 0 351 3 1 2 3 0 8 0 futexpl 56 3358 0 3358 1 0 1 1 0 8 1 knotepl 112 59 0 40 1 0 1 1 0 8 0 kqueuepl 104 31 0 29 1 0 1 1 0 8 0 pipepl 160 230 0 211 2 0 2 2 0 8 1 fdescpl 488 367 0 351 3 0 3 3 0 8 0 filepl 152 2424 0 2323 7 0 7 7 0 8 3 lockfpl 104 45 0 44 1 0 1 1 0 8 0 lockfspl 48 18 0 17 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 188 0 179 1 0 1 1 0 8 0 zombiepl 144 351 0 351 1 0 1 1 0 8 1 processpl 904 383 0 351 4 0 4 4 0 8 0 procpl 632 716 0 674 5 0 5 5 0 8 1 sosppl 128 3 0 3 1 0 1 1 0 8 1 sockpl 384 481 0 462 5 0 5 5 0 8 3 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 162 0 0 20 0 20 20 0 8 0 mtagpl 80 14 0 0 1 0 1 1 0 8 0 mbufpl 256 508 0 0 32 0 32 32 0 8 0 bufpl 280 6628 0 1342 378 0 378 378 0 8 0 anonpl 16 56852 0 37553 95 1 94 94 0 125 15 amapchunkpl 152 1890 0 1714 12 0 12 12 0 158 4 amappl16 192 1946 0 905 64 3 61 64 0 8 8 amappl15 184 58 0 55 1 0 1 1 0 8 0 amappl14 176 100 0 93 1 0 1 1 0 8 0 amappl12 160 4 0 3 1 0 1 1 0 8 0 amappl11 152 130 0 112 1 0 1 1 0 8 0 amappl10 144 15 0 9 1 0 1 1 0 8 0 amappl9 136 605 0 602 1 0 1 1 0 8 0 amappl8 128 149 0 115 2 0 2 2 0 8 0 amappl7 120 103 0 92 1 0 1 1 0 8 0 amappl6 112 122 0 116 1 0 1 1 0 8 0 amappl5 104 128 0 114 1 0 1 1 0 8 0 amappl4 96 619 0 588 1 0 1 1 0 8 0 amappl3 88 190 0 180 1 0 1 1 0 8 0 amappl2 80 2006 0 1931 3 1 2 3 0 8 0 amappl1 72 18169 0 17716 26 16 10 21 0 8 0 amappl 80 974 0 924 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 28 0 0 1 0 1 1 0 8 0 uaddrrnd 24 367 0 351 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 367 0 351 1 0 1 1 0 8 0 vmmpekpl 168 6806 0 6776 2 0 2 2 0 8 0 vmmpepl 168 53120 0 50883 139 4 135 136 0 357 37 vmsppl 368 366 0 351 2 0 2 2 0 8 0 pdppl 4096 741 0 702 6 0 6 6 0 8 0 pvpl 32 175604 0 153120 218 0 218 218 0 265 34 pmappl 232 366 0 351 2 1 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 187 0 3 6 0 6 6 0 8 0