panic: receive 1a: so 0xfffffd806f6df190, so_type 3, m 0xfffffd8069adc600, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 229228 54167 0 0x2 0x480 1 syz-executor.0 *237712 76074 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821c23e8) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6df190,0,ffff800020abd8c8,0,0,ffff800020abd7d4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd807c5fc000,ffff800020abd8c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c008,6,ffff800020abd8c8,0,ffff800020abd9b0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:236 sys_read(ffff800020a7c008,ffff800020abd960,ffff800020abd9b0) at sys_read+0x83 sys/kern/sys_generic.c:156 syscall(ffff800020abda30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abda30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff97f0, 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 1a: so 0xfffffd806f6df190, so_type 3, m 0xfffffd8069adc600, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821c23e8) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6df190,0,ffff800020abd8c8,0,0,ffff800020abd7d4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd807c5fc000,ffff800020abd8c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c008,6,ffff800020abd8c8,0,ffff800020abd9b0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:236 sys_read(ffff800020a7c008,ffff800020abd960,ffff800020abd9b0) at sys_read+0x83 sys/kern/sys_generic.c:156 syscall(ffff800020abda30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abda30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff97f0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd610 rbx 0xffff800020abd6c0 rdx 0xffff800020a7c008 rcx 0 rax 0 r8 0xffffffff81729e0f kprintf+0x16f r9 0x1 r10 0x25 r11 0x56823f8b4498519d r12 0x3000000008 r13 0xffff800020abd620 r14 0x100 r15 0x1 rip 0xffffffff8149d698 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd600 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=237712 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7d118,0xffff800020a7c288 process=0xffff800020a903d0 user=0xffff800020ab8000, vmspace=0xfffffd807f000450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 9443 115005 38951 0 2 0 syz-executor.1 9443 462330 38951 0 2 0x4000000 syz-executor.1 52468 496326 54167 0 2 0 syz-executor.0 52468 304938 54167 0 3 0x4000080 fsleep syz-executor.0 29424 315715 0 0 3 0x14200 acct acct 56852 277507 0 0 3 0x14200 bored sosplice 38951 340091 93724 0 3 0x82 nanosleep syz-executor.1 54167 229228 93724 0 7 0x482 syz-executor.0 93724 399305 76972 0 3 0x82 thrsleep syz-fuzzer 93724 323979 76972 0 2 0x4000002 syz-fuzzer 93724 140328 76972 0 3 0x4000082 thrsleep syz-fuzzer 93724 356339 76972 0 3 0x4000082 thrsleep syz-fuzzer 93724 491370 76972 0 3 0x4000082 thrsleep syz-fuzzer 93724 421653 76972 0 3 0x4000082 kqread syz-fuzzer 93724 381717 76972 0 3 0x4000082 thrsleep syz-fuzzer 93724 200490 76972 0 3 0x4000082 thrsleep syz-fuzzer 93724 68707 76972 0 3 0x4000082 thrsleep syz-fuzzer 93724 439627 76972 0 3 0x4000082 thrsleep syz-fuzzer 76972 402363 60736 0 3 0x10008a pause ksh 60736 46461 46833 0 3 0x92 select sshd 89076 318031 1 0 3 0x100083 ttyin getty 46833 193212 1 0 3 0x80 select sshd 41343 278300 56867 74 3 0x100092 bpf pflogd 56867 221771 1 0 3 0x80 netio pflogd 36828 476035 33341 73 3 0x100090 kqread syslogd 33341 275172 1 0 3 0x100082 netio syslogd 57655 340535 1 77 3 0x100090 poll dhclient *76074 237712 1 0 7 0 dhclient 5668 97613 0 0 2 0x14200 zerothread 15033 197889 0 0 3 0x14200 aiodoned aiodoned 90668 25740 0 0 3 0x14200 syncer update 78136 432365 0 0 3 0x14200 cleaner cleaner 34252 233217 0 0 3 0x14200 reaper reaper 59797 230190 0 0 3 0x14200 pgdaemon pagedaemon 10537 132007 0 0 3 0x14200 bored crynlk 92005 209036 0 0 3 0x14200 bored crypto 42123 309905 0 0 3 0x40014200 acpi0 acpi0 74933 484907 0 0 3 0x40014200 idle1 64390 423227 0 0 3 0x14200 bored softnet 43514 307049 0 0 3 0x14200 bored systqmp 613 83072 0 0 3 0x14200 bored systq 4821 332629 0 0 3 0x40014200 bored softclock 27892 161235 0 0 3 0x40014200 idle0 31514 510503 0 0 3 0x14200 bored smr 1 4380 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 76074 (dhclient) thread 0xffff800020a7c008 (237712) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826203f0) #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:236 #5 sys_read+0x83 sys/kern/sys_generic.c:156 #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 9478 6401K 6917K 78643K 10637 0 pcb 13 8K 8K 78643K 17 0 rtable 105 3K 3K 78643K 201 0 ifaddr 49 11K 11K 78643K 53 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1471 0 iov 0 0K 12K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1240 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 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 54 0 proc 59 63K 95K 78643K 443 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 19 95K 95K 78643K 19 0 exec 0 0K 1K 78643K 209 0 pfkey data 0 0K 1K 78643K 2 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 117 22K 23K 78643K 1110 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 7 0K 0K 78643K 11 0 temp 74 3008K 3072K 78643K 2147 0 kqueue 3 4K 4K 78643K 3 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 19 0 17 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 30 0 30 1 0 1 1 0 8 1 tcpcb 544 16 0 12 1 0 1 1 0 8 0 inpcb 280 105 0 92 2 0 2 2 0 8 1 nd6 48 4 0 0 1 0 1 1 0 8 0 pkpcb 40 2 0 2 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 11 0 0 1 0 1 1 0 8 0 pfstkey 112 11 0 0 1 0 1 1 0 8 0 pfstate 328 11 0 0 1 0 1 1 0 8 0 pfrule 1360 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 213 0 0 14 0 14 14 0 8 0 art_table 32 214 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 0 1 0 1 1 0 8 0 semapl 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 1457 0 47 46 0 46 46 0 8 0 ffsino 272 1457 0 47 95 0 95 95 0 8 0 nchpl 144 1717 0 98 61 0 61 61 0 8 0 uvmvnodes 72 1519 0 0 28 0 28 28 0 8 0 vnodes 208 1519 0 0 80 0 80 80 0 8 0 namei 1024 4444 0 4444 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 5156 0 5154 8 1 7 7 0 8 5 plimitpl 152 15 0 7 1 0 1 1 0 8 0 sigapl 432 253 0 237 3 0 3 3 0 8 1 futexpl 56 443 0 442 1 0 1 1 0 8 0 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 104 13 0 10 1 0 1 1 0 8 0 pipelkpl 48 78 0 68 1 0 1 1 0 8 0 pipepl 120 156 0 137 1 0 1 1 0 8 0 fdescpl 496 254 0 237 3 0 3 3 0 8 0 filepl 152 1370 0 1262 5 0 5 5 0 8 0 lockfpl 104 12 0 11 1 0 1 1 0 8 0 lockfspl 48 5 0 4 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 47 0 38 1 0 1 1 0 8 0 zombiepl 144 239 0 239 1 0 1 1 0 8 1 processpl 960 273 0 239 5 0 5 5 0 8 0 procpl 624 338 0 293 4 0 4 4 0 8 0 sosppl 128 3 0 3 1 0 1 1 0 8 1 sockpl 400 171 0 146 4 0 4 4 0 8 1 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 145 0 0 18 0 18 18 0 8 0 mtagpl 80 2 0 0 1 0 1 1 0 8 0 mbufpl 256 157 0 0 10 0 10 10 0 8 0 bufpl 280 4159 0 191 284 0 284 284 0 8 0 anonpl 16 40016 0 24059 66 1 65 65 0 125 0 amapchunkpl 152 1214 0 1069 8 0 8 8 0 158 0 amappl16 192 1017 0 160 43 0 43 43 0 8 0 amappl15 184 83 0 76 1 0 1 1 0 8 0 amappl14 176 35 0 32 1 0 1 1 0 8 0 amappl12 160 17 0 10 1 0 1 1 0 8 0 amappl11 152 52 0 37 1 0 1 1 0 8 0 amappl10 144 11 0 8 1 0 1 1 0 8 0 amappl9 136 601 0 598 1 0 1 1 0 8 0 amappl8 128 125 0 100 2 0 2 2 0 8 0 amappl7 120 102 0 91 1 0 1 1 0 8 0 amappl6 112 61 0 52 1 0 1 1 0 8 0 amappl5 104 134 0 120 1 0 1 1 0 8 0 amappl4 96 500 0 472 1 0 1 1 0 8 0 amappl3 88 116 0 107 1 0 1 1 0 8 0 amappl2 80 1098 0 1014 3 1 2 3 0 8 0 amappl1 72 15640 0 15178 26 12 14 21 0 8 4 amappl 80 584 0 538 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 254 0 237 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 254 0 237 1 0 1 1 0 8 0 vmmpekpl 168 6005 0 5971 2 0 2 2 0 8 0 vmmpepl 168 38615 0 36490 124 4 120 120 0 357 27 vmsppl 368 253 0 237 2 0 2 2 0 8 0 pdppl 4096 515 0 474 6 0 6 6 0 8 0 pvpl 32 138044 0 118880 158 0 158 158 0 265 2 pmappl 232 253 0 237 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 165 0 2 5 0 5 5 0 8 0