login: panic: receive 3: so 0xfffffd806f6eb000, so_type 3, m 0xfffffd806d9be500, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 244619 63878 0 0 0x4000080 0 syz-executor.1 *396952 11514 0 0 0 1 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(fffffd806f6eb000,0,ffff800020abd618,0,0,ffff800020abd524) at soreceive+0x1727 soo_read(fffffd806fc812f8,ffff800020abd618,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7d388,6,ffff800020abd618,0,ffff800020abd700) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7d388,ffff800020abd6b0,ffff800020abd700) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd780) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd780) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff4820, 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 0xfffffd806f6eb000, so_type 3, m 0xfffffd806d9be500, m_type 0 ddb{1}> 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(fffffd806f6eb000,0,ffff800020abd618,0,0,ffff800020abd524) at soreceive+0x1727 soo_read(fffffd806fc812f8,ffff800020abd618,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7d388,6,ffff800020abd618,0,ffff800020abd700) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7d388,ffff800020abd6b0,ffff800020abd700) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd780) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd780) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff4820, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd360 rbx 0xffff800020abd410 rdx 0xffff800020a7d388 rcx 0 rax 0 r8 0xffffffff82098d1f kprintf+0x16f r9 0x1 r10 0x25 r11 0x99ad2e3e1a163bec r12 0x3000000008 r13 0xffff800020abd370 r14 0x100 r15 0x1 rip 0xffffffff821760c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd350 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=396952 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7c278,0xffff800020a7d608 process=0xffff800020a90f10 user=0xffff800020ab8000, vmspace=0xfffffd807f000450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 63878 331774 79696 0 2 0 syz-executor.1 63878 244619 79696 0 7 0x4000080 syz-executor.1 55830 358563 0 0 3 0x14200 bored sosplice 79696 233051 15105 0 3 0x82 nanosleep syz-executor.1 82184 29529 15105 0 3 0x82 nanosleep syz-executor.0 15105 430868 60694 0 3 0x82 thrsleep syz-fuzzer 15105 121046 60694 0 3 0x4000082 nanosleep syz-fuzzer 15105 147005 60694 0 3 0x4000082 thrsleep syz-fuzzer 15105 406011 60694 0 3 0x4000082 thrsleep syz-fuzzer 15105 255069 60694 0 3 0x4000082 thrsleep syz-fuzzer 15105 130201 60694 0 3 0x4000082 thrsleep syz-fuzzer 15105 452718 60694 0 3 0x4000082 thrsleep syz-fuzzer 15105 47409 60694 0 3 0x4000082 thrsleep syz-fuzzer 15105 471760 60694 0 3 0x4000082 thrsleep syz-fuzzer 15105 81986 60694 0 3 0x4000082 kqread syz-fuzzer 60694 133210 75582 0 3 0x10008a pause ksh 75582 215694 24464 0 3 0x92 select sshd 66042 296642 1 0 3 0x100083 ttyin getty 24464 213662 1 0 3 0x80 select sshd 84794 365867 96771 74 3 0x100092 bpf pflogd 96771 382954 1 0 3 0x80 netio pflogd 63826 192673 60539 73 3 0x100090 kqread syslogd 60539 409202 1 0 3 0x100082 netio syslogd 19052 49473 1 77 3 0x100090 poll dhclient *11514 396952 1 0 7 0 dhclient 32272 369826 0 0 2 0x14200 zerothread 98373 471910 0 0 3 0x14200 aiodoned aiodoned 7220 488735 0 0 3 0x14200 syncer update 29268 231575 0 0 3 0x14200 cleaner cleaner 6715 372852 0 0 3 0x14200 reaper reaper 91634 144454 0 0 3 0x14200 pgdaemon pagedaemon 97977 270092 0 0 3 0x14200 bored crynlk 1365 39273 0 0 3 0x14200 bored crypto 5954 150661 0 0 3 0x40014200 acpi0 acpi0 81317 10959 0 0 3 0x40014200 idle1 55211 174801 0 0 3 0x14200 bored softnet 28521 465089 0 0 3 0x14200 bored systqmp 57247 163849 0 0 3 0x14200 bored systq 32595 469273 0 0 3 0x40014200 bored softclock 37070 351998 0 0 3 0x40014200 idle0 81827 134151 0 0 3 0x14200 bored smr 1 388029 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 63878 (syz-executor.1) thread 0xffff800020ae64f8 (331774) exclusive rwlock futexpl r = 0 (0xffffffff82631eb8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 pool_put+0x64 sys/kern/subr_pool.c:792 #2 futex_requeue+0x1b5 sys/kern/sys_futex.c:312 #3 sys_futex+0x150 sys/kern/sys_futex.c:117 #4 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #4 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #5 Xsyscall+0x128 exclusive rwlock futex r = 0 (0xffffffff824a49a0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 sys_futex+0x13d sys/kern/sys_futex.c:116 #2 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #2 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #3 Xsyscall+0x128 Process 11514 (dhclient) thread 0xffff800020a7d388 (396952) 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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9507 6787K 6787K 78643K 10717 0 pcb 13 8K 8K 78643K 43 0 rtable 107 3K 3K 78643K 217 0 ifaddr 44 10K 10K 78643K 49 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1471 0 iov 0 0K 12K 78643K 8 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1259 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 1K 1K 78643K 2 0 sem 10 0K 1K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 75 0 sigio 0 0K 0K 78643K 3 0 proc 61 63K 95K 78643K 440 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 33 2K 2K 78643K 33 0 ether_multi 1 0K 0K 78643K 1 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 208 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 102 21K 22K 78643K 1156 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 6 0K 0K 78643K 10 0 temp 78 3026K 3090K 78643K 4110 0 kqueue 3 4K 8K 78643K 7 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 8 0 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 28 0 25 1 0 1 1 0 8 0 rtentry 112 49 0 4 2 0 2 2 0 8 0 unpcb 120 63 0 53 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 322 0 322 1 1 0 1 0 8 0 tcpcb 544 66 0 62 2 0 2 2 0 8 1 inpcb 280 194 0 185 2 0 2 2 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 pffrag 232 2 0 2 1 0 1 1 0 482 1 pffrnode 88 2 0 2 1 0 1 1 0 8 1 pffrent 40 90 0 90 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 20 0 2 1 0 1 1 0 8 0 pfstkey 112 20 0 2 1 0 1 1 0 8 0 pfstate 328 20 0 2 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 196 0 2 13 0 13 13 0 8 0 art_table 32 197 0 2 2 0 2 2 0 8 0 art_node 16 48 0 7 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 7 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 8 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 1481 0 75 46 0 46 46 0 8 0 ffsino 272 1481 0 75 94 0 94 94 0 8 0 nchpl 144 1770 0 154 61 0 61 61 0 8 0 uvmvnodes 72 1554 0 0 29 0 29 29 0 8 0 vnodes 208 1554 0 0 82 0 82 82 0 8 0 namei 1024 4630 0 4630 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 5318 0 5318 8 1 7 7 0 8 7 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 432 274 0 259 3 0 3 3 0 8 1 futexpl 56 1184 0 1184 1 0 1 1 0 8 1 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 86 0 76 1 0 1 1 0 8 0 pipepl 120 172 0 153 1 0 1 1 0 8 0 fdescpl 496 275 0 259 3 0 3 3 0 8 0 filepl 152 1626 0 1522 6 0 6 6 0 8 1 lockfpl 104 37 0 36 1 0 1 1 0 8 0 lockfspl 48 17 0 16 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 123 0 114 1 0 1 1 0 8 0 zombiepl 144 259 0 258 1 0 1 1 0 8 0 processpl 960 291 0 258 5 0 5 5 0 8 0 procpl 624 406 0 363 5 0 5 5 0 8 1 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 400 285 0 264 5 0 5 5 0 8 2 mcl64k 65536 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 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 210 0 0 26 0 26 26 0 8 0 mtagpl 80 13 0 0 1 0 1 1 0 8 0 mbufpl 256 342 0 0 21 0 21 21 0 8 0 bufpl 280 4133 0 176 283 0 283 283 0 8 0 anonpl 16 41084 0 24972 66 1 65 65 0 124 0 amapchunkpl 152 1235 0 1083 8 0 8 8 0 158 1 amappl16 192 1166 0 298 44 0 44 44 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 28 0 27 2 1 1 1 0 8 0 amappl13 168 40 0 37 1 0 1 1 0 8 0 amappl12 160 4 0 2 1 0 1 1 0 8 0 amappl11 152 69 0 50 1 0 1 1 0 8 0 amappl10 144 16 0 12 1 0 1 1 0 8 0 amappl9 136 390 0 386 1 0 1 1 0 8 0 amappl8 128 306 0 288 1 0 1 1 0 8 0 amappl7 120 119 0 108 1 0 1 1 0 8 0 amappl6 112 27 0 22 2 1 1 1 0 8 0 amappl5 104 136 0 120 1 0 1 1 0 8 0 amappl4 96 546 0 513 1 0 1 1 0 8 0 amappl3 88 148 0 140 1 0 1 1 0 8 0 amappl2 80 1251 0 1182 3 1 2 3 0 8 0 amappl1 72 16243 0 15811 26 14 12 20 0 8 2 amappl 80 656 0 610 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 275 0 259 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 275 0 259 1 0 1 1 0 8 0 vmmpekpl 168 6098 0 6060 2 0 2 2 0 8 0 vmmpepl 168 41011 0 39021 122 8 114 114 0 357 22 vmsppl 368 274 0 259 2 0 2 2 0 8 0 pdppl 4096 557 0 518 6 0 6 6 0 8 0 pvpl 32 143321 0 124056 160 0 160 160 0 265 3 pmappl 232 274 0 259 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 186 0 3 6 0 6 6 0 8 0