panic: receive 3: so 0xfffffd806f6ed000, so_type 3, m 0xfffffd806368d900, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 142290 95125 0 0x2 0x4000000 1 syz-fuzzer *362877 69002 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cdec3) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6ed000,0,ffff800020abd978,0,0,ffff800020abd884) at soreceive+0x1727 soo_read(fffffd806fc831c8,ffff800020abd978,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c758,6,ffff800020abd978,0,ffff800020abda60) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c758,ffff800020abda10,ffff800020abda60) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdfaa0, 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 0xfffffd806f6ed000, so_type 3, m 0xfffffd806368d900, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cdec3) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6ed000,0,ffff800020abd978,0,0,ffff800020abd884) at soreceive+0x1727 soo_read(fffffd806fc831c8,ffff800020abd978,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c758,6,ffff800020abd978,0,ffff800020abda60) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c758,ffff800020abda10,ffff800020abda60) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdfaa0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd6c0 rbx 0xffff800020abd770 rdx 0xffff800020a7c758 rcx 0 rax 0 r8 0xffffffff8151a22f kprintf+0x16f r9 0x1 r10 0x25 r11 0x772afda2d70fdf54 r12 0x3000000008 r13 0xffff800020abd6d0 r14 0x100 r15 0x1 rip 0xffffffff8106a8b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd6b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=362877 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7cea8,0xffff800020a7cc48 process=0xffff800020a90f10 user=0xffff800020ab8000, vmspace=0xfffffd807f0002e0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 20080 489478 49133 0 2 0 syz-executor.1 20080 394474 49133 0 3 0x4000080 fsleep syz-executor.1 35481 148106 0 0 3 0x14200 acct acct 55347 346279 0 0 3 0x14200 bored sosplice 79596 170511 1 0 3 0x100083 ttyin getty 49133 291101 95125 0 3 0x82 nanosleep syz-executor.1 33114 306700 95125 0 2 0x2 syz-executor.0 95125 36141 60736 0 3 0x82 thrsleep syz-fuzzer 95125 368541 60736 0 3 0x4000082 nanosleep syz-fuzzer 95125 2200 60736 0 3 0x4000082 thrsleep syz-fuzzer 95125 401681 60736 0 3 0x4000082 thrsleep syz-fuzzer 95125 142290 60736 0 7 0x4000002 syz-fuzzer 95125 117267 60736 0 3 0x4000082 thrsleep syz-fuzzer 95125 380527 60736 0 3 0x4000082 thrsleep syz-fuzzer 95125 484834 60736 0 3 0x4000082 thrsleep syz-fuzzer 95125 476098 60736 0 3 0x4000082 thrsleep syz-fuzzer 95125 90864 60736 0 3 0x4000082 nanosleep syz-fuzzer 60736 25756 71613 0 3 0x10008a pause ksh 71613 70740 36534 0 3 0x92 select sshd 36534 35388 1 0 3 0x80 select sshd 51058 46975 98402 74 3 0x100092 bpf pflogd 98402 315503 1 0 3 0x80 netio pflogd 55835 68899 22093 73 3 0x100090 kqread syslogd 22093 391581 1 0 3 0x100082 netio syslogd 21727 390141 1 77 3 0x100090 poll dhclient *69002 362877 1 0 7 0 dhclient 9305 48264 0 0 3 0x14200 pgzero zerothread 21023 103048 0 0 3 0x14200 aiodoned aiodoned 66896 144409 0 0 3 0x14200 syncer update 72312 314880 0 0 3 0x14200 cleaner cleaner 98893 332429 0 0 3 0x14200 reaper reaper 32170 63190 0 0 3 0x14200 pgdaemon pagedaemon 90749 493245 0 0 3 0x14200 bored crynlk 97524 120183 0 0 3 0x14200 bored crypto 81354 153337 0 0 3 0x40014200 acpi0 acpi0 71897 191760 0 0 3 0x40014200 idle1 11476 259846 0 0 3 0x14200 bored softnet 26475 137938 0 0 3 0x14200 bored systqmp 23511 260386 0 0 3 0x14200 bored systq 33314 114215 0 0 3 0x40014200 bored softclock 43389 168009 0 0 3 0x40014200 idle0 38089 246935 0 0 3 0x14200 bored smr 1 145257 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33114 (syz-executor.0) thread 0xffff800020a7c008 (306700) exclusive rrwlock inode r = 0 (0xfffffd8075410700) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:573 #5 vget+0x1c8 sys/kern/vfs_subr.c:671 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b7 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1860 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8075410e70) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:573 #5 vget+0x1c8 sys/kern/vfs_subr.c:671 #6 cache_lookup+0x2bb sys/kern/vfs_cache.c:224 #7 ufs_lookup+0x1bc sys/ufs/ufs/ufs_lookup.c:162 #8 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 #9 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #10 namei+0x63c sys/kern/vfs_lookup.c:249 #11 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1860 #12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #13 Xsyscall+0x128 Process 69002 (dhclient) thread 0xffff800020a7c758 (362877) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262d5b0) #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 9614 7458K 8730K 78643K 20714 0 pcb 13 8K 8K 78643K 83 0 rtable 104 3K 4K 78643K 315 0 ifaddr 96 18K 18K 78643K 148 0 counters 45 34K 34K 78643K 57 0 ioctlops 0 0K 4K 78643K 1480 0 iov 0 0K 16K 78643K 76 0 mount 1 1K 1K 78643K 1 0 vnodes 1237 78K 78K 78643K 4405 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 91 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 533 0 sigio 0 0K 0K 78643K 6 0 proc 61 63K 95K 78643K 464 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 33 0 in_multi 78 3K 3K 78643K 155 0 ether_multi 1 0K 0K 78643K 14 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 233 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 54K 54K 78643K 2443 0 UVM aobj 28 2K 2K 78643K 31 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 15 0K 0K 78643K 32 0 temp 139 3022K 3086K 78643K 6107 0 kqueue 3 4K 8K 78643K 13 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 37 0 35 1 0 1 1 0 8 0 rtentry 112 74 0 32 2 0 2 2 0 8 0 unpcb 120 188 0 178 1 0 1 1 0 8 0 syncache 264 8 0 8 2 2 0 1 0 8 0 tcpqe 32 125 0 125 2 2 0 1 0 8 0 tcpcb 544 162 0 158 1 0 1 1 0 8 0 inpcb 280 498 0 491 2 0 2 2 0 8 1 nd6 48 13 0 9 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 2 0 1 2 1 1 1 0 8 0 pffrag 232 6 0 6 2 1 1 1 0 482 1 pffrnode 88 6 0 6 2 1 1 1 0 8 1 pffrent 40 184 0 184 2 1 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 53 0 5 1 0 1 1 0 8 0 pfstkey 112 53 0 5 2 0 2 2 0 8 0 pfstate 328 53 0 5 4 0 4 4 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 362 0 184 14 1 13 13 0 8 0 art_table 32 364 0 184 2 0 2 2 0 8 0 art_node 16 73 0 34 1 0 1 1 0 8 0 sysvmsgpl 40 48 0 14 1 0 1 1 0 8 0 semapl 112 89 0 79 1 0 1 1 0 8 0 shmpl 112 29 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2805 0 1395 46 0 46 46 0 8 0 ffsino 272 2805 0 1395 95 0 95 95 0 8 0 nchpl 144 3742 0 2121 61 0 61 61 0 8 0 uvmvnodes 72 5735 0 0 105 0 105 105 0 8 0 vnodes 208 5735 0 0 302 0 302 302 0 8 0 namei 1024 12062 0 12062 1 0 1 1 0 8 1 percpumem 16 39 0 6 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 560 5 0 2 1 0 1 1 0 8 0 scxspl 192 10284 0 10284 7 6 1 6 0 8 1 plimitpl 152 35 0 27 1 0 1 1 0 8 0 sigapl 432 733 0 718 3 1 2 3 0 8 0 futexpl 56 14493 0 14492 1 0 1 1 0 8 0 knotepl 112 69 0 50 1 0 1 1 0 8 0 kqueuepl 144 93 0 91 1 0 1 1 0 8 0 pipelkpl 48 141 0 131 1 0 1 1 0 8 0 pipepl 120 282 0 263 1 0 1 1 0 8 0 fdescpl 496 734 0 718 3 0 3 3 0 8 0 filepl 152 6330 0 6228 6 0 6 6 0 8 2 lockfpl 104 608 0 607 1 0 1 1 0 8 0 lockfspl 48 293 0 292 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 271 0 262 1 0 1 1 0 8 0 zombiepl 144 718 0 718 1 0 1 1 0 8 1 processpl 960 751 0 718 5 0 5 5 0 8 0 procpl 624 1669 0 1626 4 0 4 4 0 8 0 sosppl 128 26 0 26 1 0 1 1 0 8 1 sockpl 400 747 0 728 6 0 6 6 0 8 4 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 152 0 0 18 0 18 18 0 8 0 mtagpl 80 430 0 0 9 0 9 9 0 8 0 mbufpl 256 1073 0 0 66 0 66 66 0 8 0 bufpl 280 4872 0 174 336 0 336 336 0 8 0 anonpl 16 70829 0 53703 71 1 70 70 0 124 0 amapchunkpl 152 3614 0 3476 13 5 8 13 0 158 0 amappl16 192 3198 0 2262 49 1 48 48 0 8 0 amappl15 184 274 0 273 2 1 1 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 4 0 3 2 1 1 1 0 8 0 amappl11 152 74 0 55 1 0 1 1 0 8 0 amappl10 144 245 0 239 1 0 1 1 0 8 0 amappl9 136 387 0 384 1 0 1 1 0 8 0 amappl8 128 324 0 301 1 0 1 1 0 8 0 amappl7 120 346 0 333 1 0 1 1 0 8 0 amappl6 112 27 0 23 3 2 1 1 0 8 0 amappl5 104 635 0 619 1 0 1 1 0 8 0 amappl4 96 514 0 480 2 1 1 2 0 8 0 amappl3 88 110 0 105 1 0 1 1 0 8 0 amappl2 80 5240 0 5169 3 1 2 3 0 8 0 amappl1 72 24293 0 23854 25 15 10 20 0 8 0 amappl 80 1924 0 1877 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 30 0 3 1 0 1 1 0 8 0 uaddrrnd 24 739 0 720 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 739 0 720 1 0 1 1 0 8 0 vmmpekpl 168 8766 0 8725 2 0 2 2 0 8 0 vmmpepl 168 93421 0 91343 126 24 102 119 0 357 6 vmsppl 368 738 0 720 2 0 2 2 0 8 0 pdppl 4096 1485 0 1443 6 0 6 6 0 8 0 pvpl 32 232538 0 212251 172 3 169 171 0 265 4 pmappl 232 738 0 720 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 228 0 4 7 0 7 7 0 8 0