panic: receive 3: so 0xfffffd806f6f2190, so_type 3, m 0xfffffd806aa50100, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 433567 74564 0 0 0x4000080 1 syz-executor.0 * 66334 96190 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cd8e4) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2190,0,ffff800020abcfa8,0,0,ffff800020abceb4) at soreceive+0x1727 soo_read(fffffd806fc801c8,ffff800020abcfa8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cea8,6,ffff800020abcfa8,0,ffff800020abd090) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cea8,ffff800020abd040,ffff800020abd090) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd110) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd110) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8b70, 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 0xfffffd806f6f2190, so_type 3, m 0xfffffd806aa50100, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cd8e4) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2190,0,ffff800020abcfa8,0,0,ffff800020abceb4) at soreceive+0x1727 soo_read(fffffd806fc801c8,ffff800020abcfa8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cea8,6,ffff800020abcfa8,0,ffff800020abd090) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cea8,ffff800020abd040,ffff800020abd090) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd110) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd110) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8b70, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abccf0 rbx 0xffff800020abcda0 rdx 0xffff800020a7cea8 rcx 0 rax 0 r8 0xffffffff812eb10f kprintf+0x16f r9 0x1 r10 0x25 r11 0xd09789cac952b5d3 r12 0x3000000008 r13 0xffff800020abcd00 r14 0x100 r15 0x1 rip 0xffffffff81704ed8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abcce0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=66334 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7c758,0xffff800020a7d608 process=0xffff800020a90b50 user=0xffff800020ab8000, vmspace=0xfffffd807efff450 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 74564 254948 10849 0 2 0 syz-executor.0 74564 433567 10849 0 7 0x4000080 syz-executor.0 86306 299762 8542 0 3 0x80 nanosleep syz-executor.1 86306 500527 8542 0 3 0x4000080 netcon2 syz-executor.1 86306 200664 8542 0 3 0x4000080 fsleep syz-executor.1 64169 230619 0 0 3 0x14200 acct acct 69350 425040 0 0 3 0x14200 bored sosplice 8542 181674 66517 0 3 0x82 nanosleep syz-executor.1 10849 75885 66517 0 3 0x82 nanosleep syz-executor.0 66517 308664 68287 0 3 0x82 thrsleep syz-fuzzer 66517 457219 68287 0 3 0x4000082 nanosleep syz-fuzzer 66517 478912 68287 0 3 0x4000082 thrsleep syz-fuzzer 66517 356873 68287 0 3 0x4000082 thrsleep syz-fuzzer 66517 263609 68287 0 3 0x4000082 thrsleep syz-fuzzer 66517 265073 68287 0 3 0x4000082 thrsleep syz-fuzzer 66517 261187 68287 0 3 0x4000082 thrsleep syz-fuzzer 66517 397475 68287 0 3 0x4000082 thrsleep syz-fuzzer 66517 462732 68287 0 3 0x4000082 nanosleep syz-fuzzer 66517 248609 68287 0 3 0x4000082 kqread syz-fuzzer 68287 38223 69150 0 3 0x10008a pause ksh 69150 160195 75342 0 3 0x92 select sshd 55289 422788 1 0 3 0x100083 ttyin getty 75342 183693 1 0 3 0x80 select sshd 51828 204729 74719 74 3 0x100092 bpf pflogd 74719 354212 1 0 3 0x80 netio pflogd 22852 15503 1741 73 3 0x100090 kqread syslogd 1741 160952 1 0 3 0x100082 netio syslogd 76374 315020 1 77 3 0x100090 poll dhclient *96190 66334 1 0 7 0 dhclient 97809 31426 0 0 3 0x14200 pgzero zerothread 7353 257119 0 0 3 0x14200 aiodoned aiodoned 25875 44702 0 0 3 0x14200 syncer update 58311 175086 0 0 3 0x14200 cleaner cleaner 66466 239840 0 0 3 0x14200 reaper reaper 48475 234040 0 0 3 0x14200 pgdaemon pagedaemon 69238 354249 0 0 3 0x14200 bored crynlk 16485 378409 0 0 3 0x14200 bored crypto 97989 121092 0 0 3 0x40014200 acpi0 acpi0 47699 219173 0 0 3 0x40014200 idle1 50698 464962 0 0 3 0x14200 bored softnet 33099 456931 0 0 3 0x14200 bored systqmp 61442 403378 0 0 3 0x14200 bored systq 30899 276149 0 0 3 0x40014200 bored softclock 21660 206491 0 0 3 0x40014200 idle0 97194 15053 0 0 3 0x14200 bored smr 1 478951 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive sched_lock &sched_lock r = 1 (0xffffffff82682be8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 wakeup_n+0x37 sys/kern/kern_synch.c:580 #2 futex_requeue+0x116 sys/kern/sys_futex.c:300 #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 Process 74564 (syz-executor.0) thread 0xffff800020ae7ae8 (254948) exclusive rwlock futex r = 0 (0xffffffff8247d900) #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 96190 (dhclient) thread 0xffff800020a7cea8 (66334) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82658fd0) #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 9538 6486K 7311K 78643K 10891 0 pcb 13 8K 8K 78643K 42 0 rtable 97 3K 3K 78643K 259 0 ifaddr 80 15K 15K 78643K 102 0 counters 43 33K 34K 78643K 49 0 ioctlops 0 0K 4K 78643K 1477 0 iov 0 0K 12K 78643K 22 0 mount 1 1K 1K 78643K 1 0 vnodes 1231 77K 78K 78643K 1313 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 12 0K 0K 78643K 34 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 131 0 proc 60 63K 95K 78643K 455 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 165 0 in_multi 54 2K 3K 78643K 77 0 ether_multi 1 0K 0K 78643K 6 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 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 110 38K 54K 78643K 1382 0 UVM aobj 5 2K 2K 78643K 5 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 12 0 NDP 13 0K 0K 78643K 21 0 temp 97 3024K 3088K 78643K 2646 0 kqueue 3 4K 12K 78643K 22 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 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 29 0 27 1 0 1 1 0 8 0 rtentry 112 53 0 13 2 0 2 2 0 8 0 unpcb 120 131 0 121 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 40 0 40 1 1 0 1 0 8 0 tcpcb 544 216 0 211 2 0 2 2 0 8 1 inpcb 280 360 0 350 3 0 3 3 0 8 1 nd6 48 7 0 3 1 0 1 1 0 8 0 pffrag 232 4 0 4 2 1 1 1 0 482 1 pffrnode 88 4 0 4 2 1 1 1 0 8 1 pffrent 40 137 0 137 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 33 0 3 1 0 1 1 0 8 0 pfstkey 112 33 0 3 1 0 1 1 0 8 0 pfstate 328 33 0 3 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 215 0 43 12 0 12 12 0 8 1 art_table 32 216 0 43 2 0 2 2 0 8 0 art_node 16 52 0 16 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 30 0 20 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1582 0 175 46 0 46 46 0 8 0 ffsino 272 1582 0 175 95 0 95 95 0 8 0 nchpl 144 1958 0 340 61 0 61 61 0 8 0 uvmvnodes 72 1695 0 0 31 0 31 31 0 8 0 vnodes 208 1695 0 0 90 0 90 90 0 8 0 namei 1024 5215 0 5215 1 0 1 1 0 8 1 percpumem 16 35 0 3 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 2 1 0 1 1 0 8 0 scxspl 192 5758 0 5758 8 1 7 7 0 8 7 plimitpl 152 25 0 17 1 0 1 1 0 8 0 sigapl 432 330 0 314 3 1 2 3 0 8 0 futexpl 56 2331 0 2330 1 0 1 1 0 8 0 knotepl 112 73 0 54 1 0 1 1 0 8 0 kqueuepl 144 36 0 34 1 0 1 1 0 8 0 pipelkpl 48 103 0 93 1 0 1 1 0 8 0 pipepl 120 206 0 187 1 0 1 1 0 8 0 fdescpl 496 331 0 314 3 0 3 3 0 8 0 filepl 152 2164 0 2060 6 0 6 6 0 8 1 lockfpl 104 54 0 53 1 0 1 1 0 8 0 lockfspl 48 18 0 17 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 172 0 163 1 0 1 1 0 8 0 zombiepl 144 314 0 314 1 0 1 1 0 8 1 processpl 960 348 0 314 5 0 5 5 0 8 0 procpl 624 605 0 559 4 0 4 4 0 8 0 sosppl 128 5 0 3 2 1 1 1 0 8 0 sockpl 400 520 0 498 5 0 5 5 0 8 2 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 153 0 0 19 0 19 19 0 8 0 mtagpl 80 22 0 0 1 0 1 1 0 8 0 mbufpl 256 522 0 0 33 0 33 33 0 8 0 bufpl 280 4186 0 174 287 0 287 287 0 8 0 anonpl 16 54382 0 37181 87 1 86 86 0 124 16 amapchunkpl 152 1763 0 1625 8 1 7 8 0 158 0 amappl16 192 2004 0 1056 63 7 56 60 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 100 0 95 3 2 1 1 0 8 0 amappl13 168 26 0 25 1 0 1 1 0 8 0 amappl12 160 5 0 3 2 1 1 1 0 8 0 amappl11 152 75 0 56 1 0 1 1 0 8 0 amappl10 144 19 0 14 1 0 1 1 0 8 0 amappl9 136 388 0 385 1 0 1 1 0 8 0 amappl8 128 313 0 295 1 0 1 1 0 8 0 amappl7 120 117 0 107 1 0 1 1 0 8 0 amappl6 112 28 0 23 1 0 1 1 0 8 0 amappl5 104 132 0 117 1 0 1 1 0 8 0 amappl4 96 612 0 575 2 1 1 2 0 8 0 amappl3 88 209 0 198 1 0 1 1 0 8 0 amappl2 80 1712 0 1633 3 0 3 3 0 8 0 amappl1 72 17187 0 16727 26 16 10 20 0 8 0 amappl 80 867 0 821 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 335 0 316 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 335 0 316 1 0 1 1 0 8 0 vmmpekpl 168 6487 0 6446 2 0 2 2 0 8 0 vmmpepl 168 47883 0 45692 121 11 110 116 0 357 14 vmsppl 368 334 0 316 2 0 2 2 0 8 0 pdppl 4096 677 0 634 6 0 6 6 0 8 0 pvpl 32 166352 0 145941 202 0 202 202 0 265 36 pmappl 232 334 0 316 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 191 0 3 6 0 6 6 0 8 0