panic: receive 3: so 0xfffffd806f6f6190, so_type 3, m 0xfffffd806f353600, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 394071 15118 0 0 0 0 syz-executor.1 *252406 54695 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cb301) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f6190,0,ffff800020abd768,0,0,ffff800020abd674) at soreceive+0x1727 soo_read(fffffd806fc82260,ffff800020abd768,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c278,6,ffff800020abd768,0,ffff800020abd850) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c278,ffff800020abd800,ffff800020abd850) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd8d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd8d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5e60, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic receive 3: so 0xfffffd806f6f6190, so_type 3, m 0xfffffd806f353600, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cb301) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f6190,0,ffff800020abd768,0,0,ffff800020abd674) at soreceive+0x1727 soo_read(fffffd806fc82260,ffff800020abd768,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c278,6,ffff800020abd768,0,ffff800020abd850) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c278,ffff800020abd800,ffff800020abd850) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd8d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd8d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd5e60, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd4b0 rbx 0xffff800020abd560 rdx 0xffff800020a7c278 rcx 0 rax 0 r8 0xffffffff810edbff kprintf+0x16f r9 0x1 r10 0x25 r11 0x56ef892a786cf6bc r12 0x3000000008 r13 0xffff800020abd4c0 r14 0x100 r15 0x1 rip 0xffffffff81824028 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd4a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=252406 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7d118,0xffff800020a7c4f8 process=0xffff800020a90790 user=0xffff800020ab8000, vmspace=0xfffffd807efff2e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 45336 338082 32743 0 2 0 syz-executor.0 15118 394071 18858 0 7 0 syz-executor.1 15118 318124 18858 0 2 0x4000000 syz-executor.1 18858 352748 32540 0 3 0x82 nanosleep syz-executor.1 32743 248795 32540 0 3 0x82 nanosleep syz-executor.0 32540 67207 58944 0 3 0x82 thrsleep syz-fuzzer 32540 165619 58944 0 3 0x4000082 nanosleep syz-fuzzer 32540 395372 58944 0 3 0x4000082 thrsleep syz-fuzzer 32540 136756 58944 0 3 0x4000082 thrsleep syz-fuzzer 32540 122211 58944 0 3 0x4000082 thrsleep syz-fuzzer 32540 260226 58944 0 3 0x4000082 nanosleep syz-fuzzer 32540 23790 58944 0 3 0x4000082 thrsleep syz-fuzzer 32540 434113 58944 0 3 0x4000082 thrsleep syz-fuzzer 32540 81944 58944 0 3 0x4000082 kqread syz-fuzzer 32540 111675 58944 0 3 0x4000082 thrsleep syz-fuzzer 58944 11975 32155 0 3 0x10008a pause ksh 32155 213505 91223 0 3 0x92 select sshd 59360 11228 1 0 3 0x100083 ttyin getty 91223 259006 1 0 3 0x80 select sshd 13902 301289 27432 74 3 0x100092 bpf pflogd 27432 144038 1 0 3 0x80 netio pflogd 56401 468074 15557 73 3 0x100090 kqread syslogd 15557 102524 1 0 3 0x100082 netio syslogd 20263 43660 1 77 3 0x100090 poll dhclient *54695 252406 1 0 7 0 dhclient 19634 356950 0 0 2 0x14200 zerothread 71098 271661 0 0 3 0x14200 aiodoned aiodoned 67651 518679 0 0 3 0x14200 syncer update 54559 166029 0 0 3 0x14200 cleaner cleaner 847 213402 0 0 3 0x14200 reaper reaper 67795 349525 0 0 3 0x14200 pgdaemon pagedaemon 4570 30770 0 0 3 0x14200 bored crynlk 62980 43358 0 0 3 0x14200 bored crypto 99039 145599 0 0 3 0x40014200 acpi0 acpi0 66569 105461 0 0 3 0x40014200 idle1 65105 277223 0 0 3 0x14200 bored softnet 76597 464203 0 0 3 0x14200 bored systqmp 99349 360107 0 0 3 0x14200 bored systq 38343 444980 0 0 3 0x40014200 bored softclock 37735 152493 0 0 3 0x40014200 idle0 31551 366681 0 0 2 0x40014200 smr 1 519437 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 54695 (dhclient) thread 0xffff800020a7c278 (252406) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82675f38) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9516 6790K 7376K 78643K 10987 0 pcb 13 8K 8K 78643K 29 0 rtable 105 3K 3K 78643K 204 0 ifaddr 51 11K 11K 78643K 55 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1469 0 iov 0 0K 16K 78643K 13 0 mount 1 1K 1K 78643K 1 0 vnodes 1233 78K 78K 78643K 1321 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 1K 1K 78643K 2 0 sem 4 0K 0K 78643K 4 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 109 0 sigio 0 0K 0K 78643K 2 0 proc 60 63K 95K 78643K 444 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 13 0 in_multi 40 2K 2K 78643K 46 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 211 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 108 22K 22K 78643K 1244 0 UVM aobj 6 2K 2K 78643K 6 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 6 0 NDP 7 0K 0K 78643K 11 0 temp 75 3012K 3076K 78643K 2309 0 kqueue 3 4K 18K 78643K 14 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 27 0 25 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 45 0 35 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 40 0 40 1 1 0 1 0 8 0 tcpcb 544 50 0 46 1 0 1 1 0 8 0 inpcb 280 160 0 153 2 0 2 2 0 8 1 nd6 48 6 0 0 1 0 1 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 25 0 0 1 0 1 1 0 8 0 pfstkey 112 25 0 0 1 0 1 1 0 8 0 pfstate 328 25 0 0 3 0 3 3 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 187 0 0 12 0 12 12 0 8 0 art_table 32 188 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 2 0 0 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1517 0 109 46 0 46 46 0 8 0 ffsino 272 1517 0 109 94 0 94 94 0 8 0 nchpl 144 1838 0 220 61 0 61 61 0 8 1 uvmvnodes 72 1653 0 0 31 0 31 31 0 8 0 vnodes 208 1653 0 0 87 0 87 87 0 8 0 namei 1024 4781 0 4781 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 5311 0 5311 2 1 1 2 0 8 1 plimitpl 152 19 0 11 1 0 1 1 0 8 0 sigapl 432 308 0 292 3 0 3 3 0 8 1 futexpl 56 1197 0 1197 1 0 1 1 0 8 1 knotepl 112 64 0 45 1 0 1 1 0 8 0 kqueuepl 144 22 0 20 1 0 1 1 0 8 0 pipelkpl 48 86 0 76 1 0 1 1 0 8 0 pipepl 120 172 0 153 1 0 1 1 0 8 0 fdescpl 496 309 0 292 3 0 3 3 0 8 0 filepl 152 1613 0 1512 5 0 5 5 0 8 1 lockfpl 104 32 0 31 1 0 1 1 0 8 0 lockfspl 48 12 0 11 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 88 0 79 1 0 1 1 0 8 0 zombiepl 144 292 0 292 1 0 1 1 0 8 1 processpl 960 324 0 292 5 0 5 5 0 8 1 procpl 624 482 0 440 4 0 4 4 0 8 0 sockpl 400 232 0 213 4 0 4 4 0 8 2 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 146 0 0 18 0 18 18 0 8 0 mtagpl 80 30 0 0 1 0 1 1 0 8 0 mbufpl 256 223 0 0 14 0 14 14 0 8 0 bufpl 280 4141 0 174 284 0 284 284 0 8 0 anonpl 16 43535 0 27168 67 1 66 66 0 124 0 amapchunkpl 152 1443 0 1303 8 0 8 8 0 158 1 amappl16 192 1353 0 461 45 0 45 45 0 8 0 amappl15 184 36 0 32 1 0 1 1 0 8 0 amappl14 176 51 0 47 2 1 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 7 0 7 1 1 0 1 0 8 0 amappl11 152 74 0 56 1 0 1 1 0 8 0 amappl10 144 19 0 13 1 0 1 1 0 8 0 amappl9 136 380 0 377 1 0 1 1 0 8 0 amappl8 128 324 0 304 1 0 1 1 0 8 0 amappl7 120 119 0 109 1 0 1 1 0 8 0 amappl6 112 26 0 22 1 0 1 1 0 8 0 amappl5 104 224 0 208 1 0 1 1 0 8 0 amappl4 96 499 0 470 2 1 1 2 0 8 0 amappl3 88 106 0 99 1 0 1 1 0 8 0 amappl2 80 1576 0 1502 3 1 2 3 0 8 0 amappl1 72 16722 0 16289 25 11 14 20 0 8 4 amappl 80 736 0 691 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 309 0 292 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 309 0 292 1 0 1 1 0 8 0 vmmpekpl 168 6239 0 6201 2 0 2 2 0 8 0 vmmpepl 168 44474 0 42384 121 4 117 117 0 357 26 vmsppl 368 308 0 292 2 0 2 2 0 8 0 pdppl 4096 625 0 584 6 0 6 6 0 8 0 pvpl 32 148777 0 129228 158 0 158 158 0 265 0 pmappl 232 308 0 292 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 167 0 3 5 0 5 5 0 8 0