login: panic: receive 3: so 0xfffffd806f6f2320, so_type 3, m 0xfffffd806993d600, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 337277 47389 0 0x2 0x4000000 1 syz-fuzzer *421575 62648 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cfef0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2320,0,ffff800020aadbf8,0,0,ffff800020aadb04) at soreceive+0x1727 soo_read(fffffd80751f12f8,ffff800020aadbf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a6cc38,6,ffff800020aadbf8,0,ffff800020aadce0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a6cc38,ffff800020aadc90,ffff800020aadce0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020aadd60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020aadd60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4dc0, 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 3: so 0xfffffd806f6f2320, so_type 3, m 0xfffffd806993d600, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cfef0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2320,0,ffff800020aadbf8,0,0,ffff800020aadb04) at soreceive+0x1727 soo_read(fffffd80751f12f8,ffff800020aadbf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a6cc38,6,ffff800020aadbf8,0,ffff800020aadce0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a6cc38,ffff800020aadc90,ffff800020aadce0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020aadd60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020aadd60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4dc0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020aad940 rbx 0xffff800020aad9f0 rdx 0xffff800020a6cc38 rcx 0 rax 0 r8 0xffffffff8162977f kprintf+0x16f r9 0x1 r10 0x25 r11 0xd3a07c99f2d63f7e r12 0x3000000008 r13 0xffff800020aad950 r14 0x100 r15 0x1 rip 0xffffffff81844358 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020aad930 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=421575 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a6c008,0xffff800020a6d398 process=0xffff800020a80b50 user=0xffff800020aa8000, vmspace=0xfffffd807f000170 estcpu=0, cpticks=0, pctcpu=0.1 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 89521 412119 47603 0 2 0 syz-executor.0 89521 389139 47603 0 3 0x4000080 fsleep syz-executor.0 23415 65896 47389 0 2 0x2 syz-executor.1 47603 33771 47389 0 3 0x82 nanosleep syz-executor.0 47389 79830 96811 0 3 0x82 thrsleep syz-fuzzer 47389 177355 96811 0 2 0x4000482 syz-fuzzer 47389 320918 96811 0 3 0x4000082 nanosleep syz-fuzzer 47389 203574 96811 0 3 0x4000082 thrsleep syz-fuzzer 47389 175902 96811 0 3 0x4000082 thrsleep syz-fuzzer 47389 337277 96811 0 7 0x4000002 syz-fuzzer 47389 258960 96811 0 3 0x4000082 thrsleep syz-fuzzer 47389 67116 96811 0 3 0x4000082 thrsleep syz-fuzzer 47389 141845 96811 0 3 0x4000082 thrsleep syz-fuzzer 47389 241476 96811 0 3 0x4000082 thrsleep syz-fuzzer 96811 247378 18598 0 3 0x10008a pause ksh 18598 523498 40444 0 3 0x92 select sshd 49206 413442 1 0 3 0x100083 ttyin getty 40444 107271 1 0 3 0x80 select sshd 52658 436726 85024 74 3 0x100092 bpf pflogd 85024 326406 1 0 3 0x80 netio pflogd 90278 287394 24820 73 3 0x100090 kqread syslogd 24820 345451 1 0 3 0x100082 netio syslogd 86878 467056 1 77 3 0x100090 poll dhclient *62648 421575 1 0 7 0 dhclient 72314 439973 0 0 3 0x14200 pgzero zerothread 84843 265807 0 0 3 0x14200 aiodoned aiodoned 8257 313439 0 0 3 0x14200 syncer update 71804 473091 0 0 3 0x14200 cleaner cleaner 66273 223085 0 0 3 0x14200 reaper reaper 25910 152113 0 0 3 0x14200 pgdaemon pagedaemon 63513 192208 0 0 3 0x14200 bored crynlk 85310 337659 0 0 3 0x14200 bored crypto 64356 119298 0 0 3 0x40014200 acpi0 acpi0 59217 237727 0 0 3 0x40014200 idle1 54707 403433 0 0 3 0x14200 bored softnet 78328 329035 0 0 3 0x14200 bored systqmp 26991 401584 0 0 3 0x14200 bored systq 56141 380291 0 0 3 0x40014200 bored softclock 29897 131658 0 0 3 0x40014200 idle0 67900 132271 0 0 3 0x14200 bored smr 1 208976 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 62648 (dhclient) thread 0xffff800020a6cc38 (421575) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82653868) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0xb3a sys/kern/uipc_socket.c:950 #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 9483 6466K 6786K 78643K 10617 0 pcb 13 8K 8K 78643K 19 0 rtable 105 3K 3K 78643K 201 0 ifaddr 50 11K 11K 78643K 53 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1469 0 iov 0 0K 8K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1238 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 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 47 0 proc 59 63K 83K 78643K 438 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 1 0 in_multi 37 2K 2K 78643K 39 0 ether_multi 1 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 19 95K 95K 78643K 19 0 exec 0 0K 1K 78643K 209 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 106 22K 22K 78643K 1046 0 UVM aobj 4 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 4 0 NDP 7 0K 0K 78643K 11 0 temp 72 3020K 3084K 78643K 2098 0 kqueue 3 4K 4K 78643K 3 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 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 19 0 17 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 33 0 23 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 457 0 457 1 0 1 1 0 8 1 tcpcb 544 14 0 10 1 0 1 1 0 8 0 inpcb 280 61 0 54 2 0 2 2 0 8 1 nd6 48 6 0 0 1 0 1 1 0 8 0 pffrag 232 1 0 1 1 0 1 1 0 482 1 pffrnode 88 1 0 1 1 0 1 1 0 8 1 pffrent 40 45 0 45 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 13 0 0 1 0 1 1 0 8 0 pfstkey 112 13 0 0 1 0 1 1 0 8 0 pfstate 328 13 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 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1442 0 35 46 0 46 46 0 8 0 ffsino 272 1442 0 35 94 0 94 94 0 8 0 nchpl 144 1684 0 66 61 0 61 61 0 8 1 uvmvnodes 72 1500 0 0 28 0 28 28 0 8 0 vnodes 208 1500 0 0 79 0 79 79 0 8 0 namei 1024 4287 0 4287 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 4929 0 4929 2 1 1 2 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 432 246 0 231 3 0 3 3 0 8 1 futexpl 56 230 0 229 1 0 1 1 0 8 0 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 144 4 0 2 1 0 1 1 0 8 0 pipelkpl 48 78 0 68 1 0 1 1 0 8 0 pipepl 120 156 0 137 1 0 1 1 0 8 0 fdescpl 496 247 0 231 3 0 3 3 0 8 0 filepl 152 1204 0 1103 5 0 5 5 0 8 1 lockfpl 104 15 0 14 1 0 1 1 0 8 0 lockfspl 48 8 0 7 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 45 0 36 1 0 1 1 0 8 0 zombiepl 144 231 0 231 1 0 1 1 0 8 1 processpl 960 262 0 231 5 0 5 5 0 8 0 procpl 624 299 0 258 4 0 4 4 0 8 0 sockpl 400 113 0 94 3 0 3 3 0 8 1 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 181 0 0 22 0 22 22 0 8 0 mtagpl 80 6 0 0 1 0 1 1 0 8 0 mbufpl 256 301 0 0 18 0 18 18 0 8 0 bufpl 280 4070 0 173 279 0 279 279 0 8 0 anonpl 16 38299 0 23298 62 1 61 61 0 124 0 amapchunkpl 152 1069 0 933 8 0 8 8 0 158 1 amappl16 192 995 0 184 41 0 41 41 0 8 0 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 2 0 2 2 2 0 1 0 8 0 amappl13 168 34 0 31 1 0 1 1 0 8 0 amappl12 160 8 0 5 1 0 1 1 0 8 0 amappl11 152 74 0 55 1 0 1 1 0 8 0 amappl10 144 25 0 20 1 0 1 1 0 8 0 amappl9 136 391 0 387 1 0 1 1 0 8 0 amappl8 128 317 0 294 1 0 1 1 0 8 0 amappl7 120 124 0 112 1 0 1 1 0 8 0 amappl6 112 24 0 20 1 0 1 1 0 8 0 amappl5 104 138 0 124 1 0 1 1 0 8 0 amappl4 96 516 0 481 2 1 1 2 0 8 0 amappl3 88 119 0 109 1 0 1 1 0 8 0 amappl2 80 1027 0 954 3 1 2 3 0 8 0 amappl1 72 15641 0 15198 25 9 16 20 0 8 6 amappl 80 545 0 501 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 247 0 231 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 247 0 231 1 0 1 1 0 8 0 vmmpekpl 168 5894 0 5865 2 0 2 2 0 8 0 vmmpepl 168 37577 0 35615 125 7 118 118 0 357 31 vmsppl 368 246 0 231 2 0 2 2 0 8 0 pdppl 4096 502 0 462 6 0 6 6 0 8 0 pvpl 32 132713 0 114619 150 0 150 150 0 265 3 pmappl 232 246 0 231 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 173 0 3 5 0 5 5 0 8 0