panic: receive 3: so 0xfffffd806f6f74b0, so_type 3, m 0xfffffd8076939500, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 471107 11149 0 0 0 1 syz-executor.1 *227241 87520 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cc881) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f74b0,0,ffff800020abd358,0,0,ffff800020abd264) at soreceive+0x1727 soo_read(fffffd8075521098,ffff800020abd358,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c9c8,6,ffff800020abd358,0,ffff800020abd440) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c9c8,ffff800020abd3f0,ffff800020abd440) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd4c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd4c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff3370, 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 0xfffffd806f6f74b0, so_type 3, m 0xfffffd8076939500, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cc881) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f74b0,0,ffff800020abd358,0,0,ffff800020abd264) at soreceive+0x1727 soo_read(fffffd8075521098,ffff800020abd358,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c9c8,6,ffff800020abd358,0,ffff800020abd440) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c9c8,ffff800020abd3f0,ffff800020abd440) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd4c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd4c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff3370, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd0a0 rbx 0xffff800020abd150 rdx 0xffff800020a7c9c8 rcx 0 rax 0 r8 0xffffffff82098d1f kprintf+0x16f r9 0x1 r10 0x25 r11 0x2556745ef1f6d583 r12 0x3000000008 r13 0xffff800020abd0b0 r14 0x100 r15 0x1 rip 0xffffffff821760c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd090 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=227241 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7cc38,0xffff800020a7ceb8 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 11149 471107 8533 0 7 0 syz-executor.1 11149 41881 8533 0 3 0x4000080 fsleep syz-executor.1 8533 11251 70283 0 2 0x482 syz-executor.1 85976 92699 70283 0 2 0x482 syz-executor.0 70283 145097 1952 0 3 0x82 thrsleep syz-fuzzer 70283 207108 1952 0 2 0x4000482 syz-fuzzer 70283 510351 1952 0 3 0x4000082 thrsleep syz-fuzzer 70283 356200 1952 0 3 0x4000082 thrsleep syz-fuzzer 70283 477512 1952 0 3 0x4000082 thrsleep syz-fuzzer 70283 51828 1952 0 3 0x4000082 kqread syz-fuzzer 70283 255158 1952 0 3 0x4000082 thrsleep syz-fuzzer 70283 193528 1952 0 3 0x4000082 thrsleep syz-fuzzer 70283 291904 1952 0 3 0x4000082 thrsleep syz-fuzzer 70283 188543 1952 0 2 0x4000482 syz-fuzzer 1952 514388 39904 0 3 0x10008a pause ksh 39904 59657 48645 0 3 0x92 select sshd 34955 44569 1 0 3 0x100083 ttyin getty 48645 81765 1 0 3 0x80 select sshd 38948 390472 32775 74 3 0x100092 bpf pflogd 32775 89414 1 0 3 0x80 netio pflogd 13081 102878 37802 73 3 0x100090 kqread syslogd 37802 390248 1 0 3 0x100082 netio syslogd 28578 518244 1 77 3 0x100090 poll dhclient *87520 227241 1 0 7 0 dhclient 21741 312504 0 0 3 0x14200 pgzero zerothread 10710 506355 0 0 3 0x14200 aiodoned aiodoned 40899 276442 0 0 3 0x14200 syncer update 72654 510952 0 0 3 0x14200 cleaner cleaner 41373 247912 0 0 3 0x14200 reaper reaper 18388 366345 0 0 3 0x14200 pgdaemon pagedaemon 36403 499516 0 0 3 0x14200 bored crynlk 17236 142763 0 0 3 0x14200 bored crypto 71652 78316 0 0 3 0x40014200 acpi0 acpi0 84875 216919 0 0 3 0x40014200 idle1 62478 480240 0 0 3 0x14200 bored softnet 78898 241352 0 0 3 0x14200 bored systqmp 50416 312870 0 0 3 0x14200 bored systq 39915 354417 0 0 3 0x40014200 bored softclock 70363 79925 0 0 3 0x40014200 idle0 45881 234026 0 0 3 0x14200 bored smr 1 443654 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 87520 (dhclient) thread 0xffff800020a7c9c8 (227241) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8265e2e8) #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 9547 7371K 7371K 78643K 10738 0 pcb 13 8K 8K 78643K 33 0 rtable 105 3K 3K 78643K 201 0 ifaddr 49 11K 11K 78643K 52 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1473 0 mount 1 1K 1K 78643K 1 0 vnodes 1227 77K 77K 78643K 1262 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 6 0K 0K 78643K 6 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 55 0 proc 60 63K 83K 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 10 0 in_multi 33 2K 2K 78643K 36 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 31 148K 148K 78643K 31 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 105 21K 22K 78643K 1099 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 8 0 NDP 7 0K 0K 78643K 11 0 temp 76 3021K 3085K 78643K 2149 0 kqueue 3 4K 8K 78643K 6 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 23 0 21 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 82 0 72 2 0 2 2 0 8 1 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 172 0 172 1 0 1 1 0 8 1 tcpcb 544 26 0 22 1 0 1 1 0 8 0 inpcb 280 83 0 76 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 18 0 1 1 0 1 1 0 8 0 pfstkey 112 18 0 1 1 0 1 1 0 8 0 pfstate 328 18 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 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 semapl 112 4 0 0 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 1460 0 51 46 0 46 46 0 8 0 ffsino 272 1460 0 51 95 0 95 95 0 8 0 nchpl 144 1726 0 106 61 0 61 61 0 8 0 uvmvnodes 72 1541 0 0 29 0 29 29 0 8 0 vnodes 208 1541 0 0 82 0 82 82 0 8 0 namei 1024 4480 0 4480 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 4978 0 4976 2 1 1 2 0 8 0 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 432 254 0 239 3 0 3 3 0 8 1 futexpl 56 569 0 568 1 0 1 1 0 8 0 knotepl 112 56 0 37 1 0 1 1 0 8 0 kqueuepl 144 18 0 16 1 0 1 1 0 8 0 pipelkpl 48 76 0 66 1 0 1 1 0 8 0 pipepl 120 152 0 133 1 0 1 1 0 8 0 fdescpl 496 255 0 239 3 0 3 3 0 8 0 filepl 152 1392 0 1291 6 0 6 6 0 8 2 lockfpl 104 29 0 28 1 0 1 1 0 8 0 lockfspl 48 7 0 6 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 56 0 47 1 0 1 1 0 8 0 zombiepl 144 239 0 238 1 0 1 1 0 8 0 processpl 960 270 0 238 5 0 5 5 0 8 0 procpl 624 348 0 306 4 0 4 4 0 8 0 sockpl 400 188 0 169 5 0 5 5 0 8 3 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 168 0 0 20 0 20 20 0 8 0 mtagpl 80 5 0 0 1 0 1 1 0 8 0 mbufpl 256 528 0 0 33 0 33 33 0 8 0 bufpl 280 4081 0 174 280 0 280 280 0 8 0 anonpl 16 39734 0 23924 65 1 64 64 0 124 0 amapchunkpl 152 1164 0 1031 7 0 7 7 0 158 1 amappl16 192 1056 0 193 44 0 44 44 0 8 0 amappl15 184 25 0 20 1 0 1 1 0 8 0 amappl14 176 3 0 2 2 1 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 10 0 8 1 0 1 1 0 8 0 amappl11 152 74 0 56 1 0 1 1 0 8 0 amappl10 144 18 0 15 1 0 1 1 0 8 0 amappl9 136 392 0 387 1 0 1 1 0 8 0 amappl8 128 332 0 307 1 0 1 1 0 8 0 amappl7 120 118 0 107 1 0 1 1 0 8 0 amappl6 112 24 0 20 1 0 1 1 0 8 0 amappl5 104 162 0 146 1 0 1 1 0 8 0 amappl4 96 503 0 474 1 0 1 1 0 8 0 amappl3 88 105 0 100 1 0 1 1 0 8 0 amappl2 80 1132 0 1060 3 1 2 3 0 8 0 amappl1 72 15540 0 15098 26 11 15 20 0 8 5 amappl 80 595 0 552 2 0 2 2 0 84 1 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 255 0 239 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 255 0 239 1 0 1 1 0 8 0 vmmpekpl 168 6007 0 5976 2 0 2 2 0 8 0 vmmpepl 168 38871 0 36873 125 6 119 119 0 357 30 vmsppl 368 254 0 239 2 0 2 2 0 8 0 pdppl 4096 517 0 478 6 0 6 6 0 8 1 pvpl 32 137922 0 119018 158 0 158 158 0 265 4 pmappl 232 254 0 239 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 189 0 3 6 0 6 6 0 8 0