panic: receive 1a: so 0xfffffd806f6e8190, so_type 3, m 0xfffffd806288db00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 246697 21769 0 0 0x4000000 1 syz-executor.1 * 63678 91287 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821daca2) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e8190,0,ffff800020abd748,0,0,ffff800020abd654) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8070002000,ffff800020abd748,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c008,6,ffff800020abd748,0,ffff800020abd830) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c008,ffff800020abd7e0,ffff800020abd830) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd8b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd8b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe99f0, 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 0xfffffd806f6e8190, so_type 3, m 0xfffffd806288db00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821daca2) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e8190,0,ffff800020abd748,0,0,ffff800020abd654) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8070002000,ffff800020abd748,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c008,6,ffff800020abd748,0,ffff800020abd830) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c008,ffff800020abd7e0,ffff800020abd830) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd8b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd8b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe99f0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd490 rbx 0xffff800020abd540 rdx 0xffff800020a7c008 rcx 0 rax 0 r8 0xffffffff81230e2f kprintf+0x16f r9 0x1 r10 0x25 r11 0x84b0618c59aa146d r12 0x3000000008 r13 0xffff800020abd4a0 r14 0x100 r15 0x1 rip 0xffffffff81156be8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd480 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=63678 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7cea8,0xffff800020a7c768 process=0xffff800020a90f10 user=0xffff800020ab8000, vmspace=0xfffffd807f0002e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21769 347796 6360 0 2 0 syz-executor.1 21769 246697 6360 0 7 0x4000000 syz-executor.1 49654 42829 0 0 3 0x14200 bored sosplice 6360 22328 51954 0 2 0x482 syz-executor.1 74473 407916 51954 0 2 0x482 syz-executor.0 51954 465340 43718 0 3 0x82 kqread syz-fuzzer 51954 108641 43718 0 2 0x4000482 syz-fuzzer 51954 91809 43718 0 3 0x4000082 thrsleep syz-fuzzer 51954 344484 43718 0 3 0x4000082 thrsleep syz-fuzzer 51954 198398 43718 0 3 0x4000082 thrsleep syz-fuzzer 51954 338933 43718 0 2 0x4000482 syz-fuzzer 51954 448203 43718 0 3 0x4000082 thrsleep syz-fuzzer 51954 84064 43718 0 3 0x4000082 thrsleep syz-fuzzer 51954 31271 43718 0 3 0x4000082 thrsleep syz-fuzzer 51954 3998 43718 0 3 0x4000082 thrsleep syz-fuzzer 43718 358814 81785 0 3 0x10008a pause ksh 81785 352567 97791 0 3 0x92 select sshd 52782 261960 1 0 3 0x100083 ttyin getty 97791 412548 1 0 3 0x80 select sshd 94866 114002 99863 74 3 0x100092 bpf pflogd 99863 263771 1 0 3 0x80 netio pflogd 71428 515952 10626 73 3 0x100090 kqread syslogd 10626 144250 1 0 3 0x100082 netio syslogd 50870 135676 1 77 3 0x100090 poll dhclient *91287 63678 1 0 7 0 dhclient 84738 302955 0 0 3 0x14200 bored smr 26900 459502 0 0 3 0x14200 pgzero zerothread 80182 356222 0 0 3 0x14200 aiodoned aiodoned 57013 486423 0 0 3 0x14200 syncer update 62264 15184 0 0 3 0x14200 cleaner cleaner 28170 72808 0 0 3 0x14200 reaper reaper 10181 246738 0 0 3 0x14200 pgdaemon pagedaemon 90468 362517 0 0 3 0x14200 bored crynlk 36923 186335 0 0 3 0x14200 bored crypto 83806 95937 0 0 3 0x40014200 acpi0 acpi0 75009 304804 0 0 3 0x40014200 idle1 92721 347424 0 0 3 0x14200 bored softnet 54198 235137 0 0 3 0x14200 bored systqmp 34728 136450 0 0 3 0x14200 bored systq 78886 313093 0 0 3 0x40014200 bored softclock 92372 107968 0 0 3 0x40014200 idle0 1 71800 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 91287 (dhclient) thread 0xffff800020a7c008 (63678) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262d220) #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 9535 6669K 7505K 78643K 11773 0 pcb 13 8K 8K 78643K 69 0 rtable 77 2K 3K 78643K 261 0 ifaddr 67 13K 13K 78643K 97 0 counters 43 33K 33K 78643K 51 0 ioctlops 0 0K 4K 78643K 1477 0 iov 0 0K 16K 78643K 49 0 mount 1 1K 1K 78643K 1 0 vnodes 1245 78K 78K 78643K 1557 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 16 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 84 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 238 0 sigio 0 0K 0K 78643K 12 0 proc 61 63K 83K 78643K 455 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 39 0 in_multi 34 1K 2K 78643K 85 0 ether_multi 1 0K 0K 78643K 11 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 67 307K 307K 78643K 67 0 exec 0 0K 1K 78643K 225 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 115 54K 68K 78643K 1746 0 UVM aobj 58 2K 2K 78643K 60 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 55 0 NDP 11 0K 0K 78643K 20 0 temp 129 3022K 3088K 78643K 13370 0 kqueue 3 4K 22K 78643K 34 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 6 0 2 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 49 0 19 2 0 2 2 0 8 0 unpcb 120 303 0 293 1 0 1 1 0 8 0 syncache 264 7 0 7 2 2 0 1 0 8 0 tcpqe 32 10 0 10 1 1 0 1 0 8 0 tcpcb 544 192 0 188 2 0 2 2 0 8 1 inpcb 280 493 0 486 2 0 2 2 0 8 1 nd6 48 7 0 6 1 0 1 1 0 8 0 pffrag 232 4 0 4 1 0 1 1 0 482 1 pffrnode 88 4 0 4 1 0 1 1 0 8 1 pffrent 40 96 0 96 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 42 0 4 1 0 1 1 0 8 0 pfstkey 112 42 0 4 2 0 2 2 0 8 0 pfstate 328 42 0 4 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 213 0 84 12 2 10 12 0 8 1 art_table 32 214 0 84 2 0 2 2 0 8 0 art_node 16 48 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 30 0 8 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 80 0 70 1 0 1 1 0 8 0 shmpl 112 58 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1739 0 336 46 0 46 46 0 8 0 ffsino 272 1739 0 336 94 0 94 94 0 8 0 nchpl 144 2280 0 661 61 0 61 61 0 8 0 uvmvnodes 72 2080 0 0 38 0 38 38 0 8 0 vnodes 208 2080 0 0 110 0 110 110 0 8 0 namei 1024 6495 0 6495 1 0 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 560 3 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 6792 0 6792 9 7 2 7 0 8 2 plimitpl 152 31 0 23 1 0 1 1 0 8 0 sigapl 424 454 0 422 4 0 4 4 0 8 0 futexpl 56 6091 0 6091 1 0 1 1 0 8 1 knotepl 112 109 0 90 1 0 1 1 0 8 0 kqueuepl 144 96 0 94 1 0 1 1 0 8 0 pipelkpl 48 136 0 126 1 0 1 1 0 8 0 pipepl 120 272 0 253 3 1 2 2 0 8 1 fdescpl 496 438 0 422 3 0 3 3 0 8 0 filepl 152 3328 0 3227 7 0 7 7 0 8 3 lockfpl 104 59 0 58 1 0 1 1 0 8 0 lockfspl 48 24 0 23 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 24 0 13 1 0 1 1 0 8 0 ucredpl 96 295 0 286 1 0 1 1 0 8 0 zombiepl 144 422 0 421 1 0 1 1 0 8 0 processpl 960 454 0 421 5 0 5 5 0 8 0 procpl 624 979 0 936 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 9 0 9 1 0 1 1 0 8 1 sockpl 400 843 0 824 6 0 6 6 0 8 4 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 13 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 224 0 0 27 0 27 27 0 8 0 mtagpl 80 86 0 0 2 0 2 2 0 8 0 mbufpl 256 374 0 0 23 0 23 23 0 8 0 bufpl 280 6583 0 315 448 0 448 448 0 8 0 anonpl 16 56655 0 39791 83 7 76 82 0 124 7 amapchunkpl 152 2362 0 2224 13 3 10 13 0 158 3 amappl16 192 2253 0 1328 57 9 48 57 0 8 1 amappl15 184 3 0 1 1 0 1 1 0 8 0 amappl14 176 116 0 114 2 1 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 5 0 5 1 1 0 1 0 8 0 amappl11 152 69 0 51 1 0 1 1 0 8 0 amappl10 144 26 0 21 1 0 1 1 0 8 0 amappl9 136 396 0 392 1 0 1 1 0 8 0 amappl8 128 315 0 291 1 0 1 1 0 8 0 amappl7 120 128 0 116 1 0 1 1 0 8 0 amappl6 112 29 0 24 1 0 1 1 0 8 0 amappl5 104 343 0 326 1 0 1 1 0 8 0 amappl4 96 514 0 482 2 1 1 2 0 8 0 amappl3 88 223 0 217 1 0 1 1 0 8 0 amappl2 80 2571 0 2499 3 1 2 3 0 8 0 amappl1 72 19596 0 19159 26 16 10 20 0 8 0 amappl 80 1233 0 1187 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 59 0 2 1 0 1 1 0 8 0 uaddrrnd 24 441 0 422 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 441 0 422 1 0 1 1 0 8 0 vmmpekpl 168 7536 0 7499 2 0 2 2 0 8 0 vmmpepl 168 60477 0 58417 120 16 104 115 0 357 12 vmsppl 368 440 0 422 2 0 2 2 0 8 0 pdppl 4096 889 0 847 6 0 6 6 0 8 0 pvpl 32 183640 0 163639 195 6 189 195 0 265 25 pmappl 232 440 0 422 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 191 0 5 6 0 6 6 0 8 0