panic: receive 1a: so 0xfffffd806f6e7320, so_type 3, m 0xfffffd806d437f00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 267220 1308 0 0 0 1 syz-executor.1 *244537 59239 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d891a) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e7320,0,ffff800020abd028,0,0,ffff800020abcf34) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd806fc812f8,ffff800020abd028,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c758,6,ffff800020abd028,0,ffff800020abd110) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c758,ffff800020abd0c0,ffff800020abd110) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd190) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd190) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdb6c0, 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 1a: so 0xfffffd806f6e7320, so_type 3, m 0xfffffd806d437f00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d891a) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e7320,0,ffff800020abd028,0,0,ffff800020abcf34) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd806fc812f8,ffff800020abd028,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c758,6,ffff800020abd028,0,ffff800020abd110) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c758,ffff800020abd0c0,ffff800020abd110) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd190) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd190) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdb6c0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abcd70 rbx 0xffff800020abce20 rdx 0xffff800020a7c758 rcx 0 rax 0 r8 0xffffffff817ca58f kprintf+0x16f r9 0x1 r10 0x25 r11 0x8527a9addbad600d r12 0x3000000008 r13 0xffff800020abcd80 r14 0x100 r15 0x1 rip 0xffffffff810ff838 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abcd60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=244537 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7d118,0xffff800020a7cc48 process=0xffff800020a90010 user=0xffff800020ab8000, vmspace=0xfffffd807efff170 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 1308 267220 6016 0 7 0 syz-executor.1 1308 131952 6016 0 3 0x4000080 fsleep syz-executor.1 23553 218446 25172 0 2 0x480 syz-executor.0 23553 501032 25172 0 3 0x4000080 select syz-executor.0 23553 454025 25172 0 3 0x4000080 fsleep syz-executor.0 5668 221672 0 0 3 0x14200 bored sosplice 6016 41598 48051 0 2 0x482 syz-executor.1 25172 25708 48051 0 2 0x482 syz-executor.0 48051 346911 2208 0 3 0x82 kqread syz-fuzzer 48051 440090 2208 0 2 0x4000482 syz-fuzzer 48051 35788 2208 0 3 0x4000082 thrsleep syz-fuzzer 48051 502218 2208 0 3 0x4000082 thrsleep syz-fuzzer 48051 31496 2208 0 3 0x4000082 thrsleep syz-fuzzer 48051 182830 2208 0 3 0x4000082 thrsleep syz-fuzzer 48051 391787 2208 0 3 0x4000082 thrsleep syz-fuzzer 48051 405695 2208 0 3 0x4000082 thrsleep syz-fuzzer 48051 356762 2208 0 3 0x4000082 thrsleep syz-fuzzer 48051 296017 2208 0 3 0x4000082 thrsleep syz-fuzzer 48051 494573 2208 0 2 0x4000482 syz-fuzzer 2208 12532 34879 0 3 0x10008a pause ksh 34879 302331 44580 0 3 0x92 select sshd 66293 100169 1 0 3 0x100083 ttyin getty 44580 33505 1 0 3 0x80 select sshd 64469 95510 80407 74 3 0x100092 bpf pflogd 80407 137448 1 0 3 0x80 netio pflogd 64409 78925 65116 73 3 0x100090 kqread syslogd 65116 224823 1 0 3 0x100082 netio syslogd 45417 254247 1 77 3 0x100090 poll dhclient *59239 244537 1 0 7 0 dhclient 95189 296825 0 0 3 0x14200 pgzero zerothread 19956 112876 0 0 3 0x14200 aiodoned aiodoned 57421 153329 0 0 3 0x14200 syncer update 51276 37199 0 0 3 0x14200 cleaner cleaner 58318 447485 0 0 3 0x14200 reaper reaper 37892 522659 0 0 3 0x14200 pgdaemon pagedaemon 79451 146978 0 0 3 0x14200 bored crynlk 82159 495255 0 0 3 0x14200 bored crypto 34372 8846 0 0 3 0x40014200 acpi0 acpi0 92405 165033 0 0 3 0x40014200 idle1 18966 491151 0 0 3 0x14200 bored softnet 59517 486965 0 0 3 0x14200 bored systqmp 24822 80310 0 0 3 0x14200 bored systq 4570 150111 0 0 3 0x40014200 bored softclock 66251 456374 0 0 3 0x40014200 idle0 82923 310653 0 0 3 0x14200 bored smr 1 75317 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 59239 (dhclient) thread 0xffff800020a7c758 (244537) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82632cd8) #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 9507 6410K 6811K 78643K 10972 0 pcb 14 8K 8K 78643K 61 0 rtable 106 11K 12K 78643K 299 0 ifaddr 63 13K 13K 78643K 88 0 counters 43 33K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1484 0 iov 0 0K 16K 78643K 16 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1325 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 160 0 sigio 0 0K 0K 78643K 2 0 proc 61 63K 95K 78643K 447 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 1 0K 0K 78643K 109 0 in_multi 42 2K 2K 78643K 76 0 ether_multi 2 0K 0K 78643K 7 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 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 218 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 111 22K 38K 78643K 1467 0 UVM aobj 12 2K 2K 78643K 12 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 2 0K 0K 78643K 32 0 NDP 10 0K 0K 78643K 21 0 temp 102 3017K 3081K 78643K 2634 0 kqueue 3 4K 16K 78643K 20 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 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 43 0 41 1 0 1 1 0 8 0 rtentry 112 66 0 23 2 0 2 2 0 8 0 unpcb 120 129 0 119 1 0 1 1 0 8 0 syncache 264 10 0 10 2 1 1 1 0 8 1 tcpqe 32 44 0 44 1 0 1 1 0 8 1 tcpcb 544 167 0 159 2 0 2 2 0 8 1 inpcb 280 395 0 381 2 0 2 2 0 8 1 nd6 48 9 0 5 1 0 1 1 0 8 0 pffrag 232 3 0 3 1 0 1 1 0 482 1 pffrnode 88 3 0 3 1 0 1 1 0 8 1 pffrent 40 92 0 92 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 28 0 3 1 0 1 1 0 8 0 pfstkey 112 28 0 3 1 0 1 1 0 8 0 pfstate 328 28 0 3 3 0 3 3 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 276 0 92 12 0 12 12 0 8 0 art_table 32 278 0 92 2 0 2 2 0 8 0 art_node 16 65 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 11 0 4 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 10 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1625 0 220 46 0 46 46 0 8 0 ffsino 272 1625 0 220 94 0 94 94 0 8 0 nchpl 144 2035 0 417 61 0 61 61 0 8 0 uvmvnodes 72 1732 0 0 32 0 32 32 0 8 0 vnodes 208 1732 0 0 92 0 92 92 0 8 0 namei 1024 5591 0 5591 1 0 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 scxspl 192 6027 0 6027 7 1 6 6 0 8 6 plimitpl 152 23 0 15 1 0 1 1 0 8 0 sigapl 424 376 0 343 4 0 4 4 0 8 0 futexpl 56 3016 0 3014 1 0 1 1 0 8 0 knotepl 112 105 0 86 2 1 1 2 0 8 0 kqueuepl 144 47 0 45 1 0 1 1 0 8 0 pipelkpl 48 101 0 91 1 0 1 1 0 8 0 pipepl 120 202 0 183 1 0 1 1 0 8 0 fdescpl 496 360 0 343 3 0 3 3 0 8 0 filepl 152 2436 0 2332 6 1 5 6 0 8 0 lockfpl 104 49 0 48 1 0 1 1 0 8 0 lockfspl 48 16 0 15 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 236 0 227 1 0 1 1 0 8 0 zombiepl 144 343 0 343 1 0 1 1 0 8 1 processpl 960 376 0 343 5 0 5 5 0 8 0 procpl 624 707 0 661 4 0 4 4 0 8 0 sosppl 128 1 0 1 1 1 0 1 0 8 0 sockpl 400 569 0 545 5 1 4 5 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 162 0 0 20 0 20 20 0 8 0 mtagpl 80 11 0 0 1 0 1 1 0 8 0 mbufpl 256 373 0 0 23 0 23 23 0 8 0 bufpl 280 4267 0 174 293 0 293 293 0 8 0 anonpl 16 48248 0 31217 71 1 70 70 0 124 1 amapchunkpl 152 2179 0 2035 20 0 20 20 0 158 13 amappl16 192 1687 0 750 48 0 48 48 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 60 0 58 3 2 1 1 0 8 0 amappl13 168 27 0 26 1 0 1 1 0 8 0 amappl12 160 11 0 8 1 0 1 1 0 8 0 amappl11 152 73 0 55 1 0 1 1 0 8 0 amappl10 144 16 0 12 1 0 1 1 0 8 0 amappl9 136 387 0 384 1 0 1 1 0 8 0 amappl8 128 319 0 298 1 0 1 1 0 8 0 amappl7 120 129 0 116 1 0 1 1 0 8 0 amappl6 112 28 0 23 1 0 1 1 0 8 0 amappl5 104 205 0 189 1 0 1 1 0 8 0 amappl4 96 561 0 527 2 1 1 2 0 8 0 amappl3 88 172 0 165 1 0 1 1 0 8 0 amappl2 80 1933 0 1855 3 1 2 3 0 8 0 amappl1 72 17861 0 17404 26 15 11 20 0 8 0 amappl 80 960 0 912 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 11 0 0 1 0 1 1 0 8 0 uaddrrnd 24 360 0 343 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 360 0 343 1 0 1 1 0 8 0 vmmpekpl 168 6856 0 6824 2 0 2 2 0 8 0 vmmpepl 168 51124 0 48946 125 8 117 121 0 357 22 vmsppl 368 359 0 343 2 0 2 2 0 8 0 pdppl 4096 727 0 686 6 0 6 6 0 8 0 pvpl 32 163405 0 143159 172 0 172 172 0 265 7 pmappl 232 359 0 343 2 1 1 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 181 0 4 6 0 6 6 0 8 0