panic: receive 1: so 0xfffffd806f6ee000, so_type 3, sb_cc 3438 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 229433 92559 0 0 0 1 syz-executor.0 *334320 59093 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821dc669) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6ee000,0,ffff800020abce38,0,0,ffff800020abcd44) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd806fc824c0,ffff800020abce38,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7d388,6,ffff800020abce38,0,ffff800020abcf20) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7d388,ffff800020abced0,ffff800020abcf20) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abcfa0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abcfa0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0ff0, 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 0xfffffd806f6ee000, so_type 3, sb_cc 3438 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821dc669) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6ee000,0,ffff800020abce38,0,0,ffff800020abcd44) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd806fc824c0,ffff800020abce38,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7d388,6,ffff800020abce38,0,ffff800020abcf20) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7d388,ffff800020abced0,ffff800020abcf20) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abcfa0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abcfa0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0ff0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abcb80 rbx 0xffff800020abcc30 rdx 0xffff800020a7d388 rcx 0 rax 0 r8 0xffffffff81fb607f kprintf+0x16f r9 0x1 r10 0x25 r11 0xb6778beec9b7c3 r12 0x3000000008 r13 0xffff800020abcb90 r14 0x100 r15 0x1 rip 0xffffffff8219a9e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abcb70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=334320 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7c278,0xffff800020a7d608 process=0xffff800020a90b50 user=0xffff800020ab8000, vmspace=0xfffffd807f000170 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 92559 229433 51731 0 7 0 syz-executor.0 92559 175493 51731 0 3 0x4000080 fsleep syz-executor.0 36290 60870 91298 0 2 0 syz-executor.1 36290 243387 91298 0 3 0x4000080 kqread syz-executor.1 91298 419463 48815 0 2 0x482 syz-executor.1 2149 73397 0 0 3 0x14200 bored sosplice 51731 413492 48815 0 3 0x82 nanosleep syz-executor.0 48815 200580 62274 0 3 0x82 thrsleep syz-fuzzer 48815 373869 62274 0 3 0x4000082 thrsleep syz-fuzzer 48815 362729 62274 0 3 0x4000082 thrsleep syz-fuzzer 48815 362861 62274 0 3 0x4000082 thrsleep syz-fuzzer 48815 154391 62274 0 3 0x4000082 thrsleep syz-fuzzer 48815 13844 62274 0 3 0x4000082 kqread syz-fuzzer 48815 116497 62274 0 3 0x4000082 thrsleep syz-fuzzer 48815 405807 62274 0 3 0x4000082 thrsleep syz-fuzzer 48815 305262 62274 0 3 0x4000082 thrsleep syz-fuzzer 48815 124321 62274 0 3 0x4000082 thrsleep syz-fuzzer 48815 195745 62274 0 3 0x4000082 thrsleep syz-fuzzer 62274 246919 5788 0 3 0x10008a pause ksh 5788 112981 63181 0 3 0x92 select sshd 75507 36987 1 0 3 0x100083 ttyin getty 63181 154824 1 0 3 0x80 select sshd 16229 264278 66244 74 3 0x100092 bpf pflogd 66244 74328 1 0 3 0x80 netio pflogd 70259 392039 824 73 3 0x100090 kqread syslogd 824 210504 1 0 3 0x100082 netio syslogd 84773 325181 1 77 3 0x100090 poll dhclient *59093 334320 1 0 7 0 dhclient 85203 92326 0 0 3 0x14200 bored smr 83419 4737 0 0 2 0x14200 zerothread 87556 21620 0 0 3 0x14200 aiodoned aiodoned 31141 41684 0 0 3 0x14200 syncer update 16247 141137 0 0 3 0x14200 cleaner cleaner 89005 249138 0 0 3 0x14200 reaper reaper 21694 394886 0 0 3 0x14200 pgdaemon pagedaemon 31851 260952 0 0 3 0x14200 bored crynlk 18671 28332 0 0 3 0x14200 bored crypto 3979 66665 0 0 3 0x40014200 acpi0 acpi0 40956 365145 0 0 3 0x40014200 idle1 53420 193363 0 0 3 0x14200 bored softnet 23931 466340 0 0 3 0x14200 bored systqmp 17393 195105 0 0 3 0x14200 bored systq 84144 93408 0 0 3 0x40014200 bored softclock 45842 435643 0 0 3 0x40014200 idle0 1 415902 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 59093 (dhclient) thread 0xffff800020a7d388 (334320) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82641eb8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0x114 sys/kern/uipc_socket.c:731 #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9546 6553K 7069K 78643K 11947 0 pcb 13 11K 12K 78643K 717 0 rtable 90 3K 3K 78643K 395 0 ifaddr 92 17K 17K 78643K 139 0 counters 45 34K 34K 78643K 55 0 ioctlops 0 0K 4K 78643K 1500 0 iov 0 0K 16K 78643K 83 0 mount 1 1K 1K 78643K 1 0 vnodes 1235 78K 78K 78643K 1725 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 11 1K 1K 78643K 13 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 487 0 sigio 0 0K 0K 78643K 22 0 proc 61 63K 95K 78643K 536 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 254 0 in_multi 55 2K 3K 78643K 161 0 ether_multi 1 0K 0K 78643K 27 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 277 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 135 88K 100K 78643K 2704 0 UVM aobj 29 2K 2K 78643K 33 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 103 0 NDP 15 0K 0K 78643K 29 0 temp 152 3027K 3091K 78643K 13337 0 kqueue 5 8K 22K 78643K 54 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 14 0 7 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 69 0 67 1 0 1 1 0 8 0 rtentry 112 88 0 53 2 0 2 2 0 8 0 unpcb 120 417 0 407 2 1 1 2 0 8 0 syncache 264 8 0 8 3 2 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 290 0 290 1 1 0 1 0 8 0 tcpcb 544 739 0 735 14 13 1 13 0 8 0 inpcb 280 1928 0 1921 11 8 3 9 0 8 2 nd6 48 12 0 8 1 0 1 1 0 8 0 ppxss 1128 1 0 0 1 0 1 1 0 8 0 pffrag 232 2 0 2 1 1 0 1 0 482 0 pffrnode 88 2 0 2 1 1 0 1 0 8 0 pffrent 40 88 0 88 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 pfstitem 24 63 0 17 1 0 1 1 0 8 0 pfstkey 112 63 0 17 2 0 2 2 0 8 0 pfstate 328 63 0 17 5 0 5 5 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 361 0 207 14 3 11 12 0 8 0 art_table 32 362 0 207 2 0 2 2 0 8 0 art_node 16 87 0 57 1 0 1 1 0 8 0 sysvmsgpl 40 64 0 34 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 11 0 2 1 0 1 1 0 8 0 shmpl 112 31 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2086 0 685 46 0 46 46 0 8 0 ffsino 272 2086 0 685 95 0 95 95 0 8 0 nchpl 144 2989 0 1384 61 0 61 61 0 8 0 uvmvnodes 72 2551 0 0 47 0 47 47 0 8 0 vnodes 208 2551 0 0 135 0 135 135 0 8 0 namei 1024 8883 0 8883 2 1 1 1 0 8 1 percpumem 16 38 0 5 1 0 1 1 0 8 0 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 560 9 0 2 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 0 1 1 0 8 1 scxspl 192 10078 0 10078 11 10 1 7 0 8 1 plimitpl 152 64 0 56 1 0 1 1 0 8 0 sigapl 424 700 0 667 4 0 4 4 0 8 0 futexpl 56 13797 0 13796 1 0 1 1 0 8 0 knotepl 112 207 0 186 3 2 1 3 0 8 0 kqueuepl 144 352 0 348 5 4 1 5 0 8 0 pipelkpl 48 369 0 358 2 1 1 1 0 8 0 pipepl 120 738 0 717 4 2 2 2 0 8 1 fdescpl 496 684 0 667 3 0 3 3 0 8 0 filepl 152 6295 0 6190 16 10 6 14 0 8 1 lockfpl 104 142 0 141 1 0 1 1 0 8 0 lockfspl 48 51 0 50 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 176 0 165 1 0 1 1 0 8 0 ucredpl 96 453 0 444 1 0 1 1 0 8 0 zombiepl 144 667 0 667 3 2 1 1 0 8 1 processpl 960 700 0 667 6 1 5 5 0 8 0 procpl 624 1835 0 1790 5 1 4 5 0 8 0 sosppl 128 14 0 14 2 1 1 1 0 8 1 sockpl 400 2435 0 2416 16 11 5 14 0 8 3 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 16 0 0 2 0 2 2 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 240 0 0 29 0 29 29 0 8 0 mtagpl 80 30 0 0 1 0 1 1 0 8 0 mbufpl 256 500 0 0 30 0 30 30 0 8 0 bufpl 280 5649 0 185 391 0 391 391 0 8 0 anonpl 16 96062 0 78676 90 3 87 87 0 124 15 amapchunkpl 152 4517 0 4365 14 4 10 10 0 158 2 amappl16 192 4137 0 3188 73 17 56 60 0 8 8 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 373 0 368 3 2 1 1 0 8 0 amappl13 168 100 0 99 2 1 1 1 0 8 0 amappl12 160 10 0 7 1 0 1 1 0 8 0 amappl11 152 72 0 54 1 0 1 1 0 8 0 amappl10 144 17 0 12 1 0 1 1 0 8 0 amappl9 136 385 0 381 1 0 1 1 0 8 0 amappl8 128 361 0 328 2 0 2 2 0 8 0 amappl7 120 128 0 115 1 0 1 1 0 8 0 amappl6 112 29 0 22 2 1 1 1 0 8 0 amappl5 104 543 0 524 1 0 1 1 0 8 0 amappl4 96 592 0 557 2 1 1 2 0 8 0 amappl3 88 366 0 360 1 0 1 1 0 8 0 amappl2 80 4537 0 4459 4 2 2 3 0 8 0 amappl1 72 25271 0 24817 25 15 10 20 0 8 0 amappl 80 2124 0 2072 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 32 0 4 1 0 1 1 0 8 0 uaddrrnd 24 693 0 669 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 693 0 669 1 0 1 1 0 8 0 vmmpekpl 168 10307 0 10273 2 0 2 2 0 8 0 vmmpepl 168 93191 0 90968 147 38 109 128 0 357 12 vmsppl 368 692 0 669 3 0 3 3 0 8 0 pdppl 4096 1393 0 1345 8 1 7 7 0 8 1 pvpl 32 274941 0 254320 223 15 208 208 0 265 39 pmappl 232 692 0 669 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 230 0 33 7 0 7 7 0 8 0