panic: receive 1a: so 0xfffffd806f689000, so_type 3, m 0xfffffd8077dcae00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 318346 50455 0 0 0 1 syz-executor.0 *371241 20632 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ead86) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f689000,0,ffff800020e1df18,0,0,ffff800020e1de24) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80751f8390,ffff800020e1df18,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1df18,0,ffff800020e1e000) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1dfb0,ffff800020e1e000) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e080) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e080) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe8db0, 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 0xfffffd806f689000, so_type 3, m 0xfffffd8077dcae00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ead86) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f689000,0,ffff800020e1df18,0,0,ffff800020e1de24) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80751f8390,ffff800020e1df18,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1df18,0,ffff800020e1e000) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1dfb0,ffff800020e1e000) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e080) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e080) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe8db0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1dc60 rbx 0xffff800020e1dd10 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8169567f kprintf+0x16f r9 0x1 r10 0x2 r11 0x61ceec733355ac84 r12 0x3000000008 r13 0xffff800020e1dc70 r14 0x100 r15 0x1 rip 0xffffffff8138f5b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1dc50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=371241 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcc38,0xffff800020ddd398 process=0xffff800020df0bb0 user=0xffff800020e19000, 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 50455 318346 41777 0 7 0 syz-executor.0 50455 441961 41777 0 3 0x4000080 switchread syz-executor.0 6086 487494 29756 0 3 0x82 nanosleep syz-executor.1 41777 36973 29756 0 3 0x82 nanosleep syz-executor.0 29756 436647 35018 0 3 0x82 thrsleep syz-fuzzer 29756 218128 35018 0 3 0x4000082 thrsleep syz-fuzzer 29756 223905 35018 0 3 0x4000082 thrsleep syz-fuzzer 29756 363792 35018 0 3 0x4000082 thrsleep syz-fuzzer 29756 92400 35018 0 3 0x4000082 thrsleep syz-fuzzer 29756 496362 35018 0 3 0x4000082 thrsleep syz-fuzzer 29756 86854 35018 0 3 0x4000082 thrsleep syz-fuzzer 29756 128221 35018 0 3 0x4000082 thrsleep syz-fuzzer 29756 274769 35018 0 3 0x4000082 thrsleep syz-fuzzer 29756 365768 35018 0 3 0x4000082 kqread syz-fuzzer 35018 199338 48172 0 3 0x10008a pause ksh 48172 341890 21699 0 3 0x92 select sshd 62640 397972 1 0 3 0x100083 ttyin getty 21699 359492 1 0 3 0x80 select sshd 56969 504907 61367 74 3 0x100092 bpf pflogd 61367 333546 1 0 3 0x80 netio pflogd 13729 503013 94949 73 3 0x100090 kqread syslogd 94949 338427 1 0 3 0x100082 netio syslogd 93118 378273 1 77 3 0x100090 poll dhclient *20632 371241 1 0 7 0 dhclient 90754 443912 0 0 3 0x14200 bored smr 50701 286252 0 0 3 0x14200 pgzero zerothread 85736 317291 0 0 3 0x14200 aiodoned aiodoned 37729 92795 0 0 3 0x14200 syncer update 93251 179402 0 0 3 0x14200 cleaner cleaner 11208 514699 0 0 3 0x14200 reaper reaper 66399 425670 0 0 3 0x14200 pgdaemon pagedaemon 15377 50114 0 0 3 0x14200 bored crynlk 50915 360474 0 0 3 0x14200 bored crypto 62299 25083 0 0 3 0x40014200 acpi0 acpi0 90705 187557 0 0 3 0x40014200 idle1 87417 197563 0 0 3 0x14200 bored softnet 63768 386100 0 0 3 0x14200 bored systqmp 50966 74905 0 0 3 0x14200 bored systq 12827 40827 0 0 3 0x40014200 bored softclock 10478 523724 0 0 3 0x40014200 idle0 1 79982 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 20632 (dhclient) thread 0xffff800020ddc278 (371241) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828eb410) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0x114 sys/kern/uipc_socket.c:737 #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 9481 6402K 6730K 78643K 10637 0 pcb 13 8K 8K 78643K 27 0 rtable 105 3K 3K 78643K 208 0 ifaddr 49 11K 11K 78643K 54 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1473 0 iov 0 0K 2K 78643K 1 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1239 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 12 0K 0K 78643K 24 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 103 0 sigio 0 0K 0K 78643K 2 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 11 0 in_multi 33 2K 2K 78643K 43 0 ether_multi 1 0K 0K 78643K 2 0 mrt 0 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 210 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 121 39K 39K 78643K 1247 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 13 0 NDP 7 0K 0K 78643K 11 0 temp 75 3853K 3916K 78643K 2181 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 21 0 19 1 0 1 1 0 8 0 rtentry 112 48 0 4 2 0 2 2 0 8 0 unpcb 120 41 0 31 1 0 1 1 0 8 0 syncache 264 8 0 8 2 1 1 1 0 8 1 tcpqe 32 594 0 594 1 1 0 1 0 8 0 tcpcb 544 73 0 69 1 0 1 1 0 8 0 inpcb 296 180 0 173 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 8 0 2 1 0 1 1 0 8 0 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 22 0 1 1 0 1 1 0 8 0 pfstkey 112 22 0 1 1 0 1 1 0 8 0 pfstate 328 22 0 1 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 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 47 0 7 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 15 1 0 1 1 0 8 0 semupl 112 4 0 4 1 0 1 1 0 8 1 semapl 112 15 0 5 1 0 1 1 0 8 0 shmpl 112 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1519 0 111 89 0 89 89 0 8 0 ffsino 272 1519 0 111 96 1 95 95 0 8 0 nchpl 144 1847 0 235 60 0 60 60 0 8 0 uvmvnodes 72 1576 0 0 29 0 29 29 0 8 0 vnodes 208 1576 0 0 83 0 83 83 0 8 0 namei 1024 4894 0 4894 2 1 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 scxspl 192 5435 0 5435 8 7 1 7 0 8 1 plimitpl 152 22 0 14 1 0 1 1 0 8 0 sigapl 424 318 0 287 4 0 4 4 0 8 0 futexpl 56 1114 0 1114 1 0 1 1 0 8 1 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 10 0 8 1 0 1 1 0 8 0 pipepl 304 82 0 72 2 0 2 2 0 8 1 fdescpl 496 303 0 287 3 0 3 3 0 8 0 filepl 152 1600 0 1499 6 1 5 5 0 8 1 lockfpl 104 17 0 16 1 0 1 1 0 8 0 lockfspl 48 8 0 7 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 99 0 89 1 0 1 1 0 8 0 zombiepl 144 287 0 286 2 1 1 1 0 8 0 processpl 992 318 0 286 6 1 5 5 0 8 1 procpl 624 481 0 439 4 0 4 4 0 8 0 sockpl 400 242 0 223 5 1 4 4 0 8 2 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 220 0 0 27 0 27 27 0 8 0 mtagpl 96 9 0 0 1 0 1 1 0 8 0 mbufpl 256 252 0 0 16 1 15 16 0 8 0 bufpl 280 3449 0 132 237 0 237 237 0 8 0 anonpl 16 44993 0 27983 70 1 69 69 0 124 0 amapchunkpl 152 1395 0 1243 8 0 8 8 0 158 0 amappl16 192 1296 0 376 47 0 47 47 0 8 0 amappl15 184 34 0 32 1 0 1 1 0 8 0 amappl14 176 23 0 19 1 0 1 1 0 8 0 amappl13 168 38 0 33 1 0 1 1 0 8 0 amappl12 160 5 0 4 1 0 1 1 0 8 0 amappl11 152 58 0 42 1 0 1 1 0 8 0 amappl10 144 92 0 83 1 0 1 1 0 8 0 amappl9 136 380 0 379 1 0 1 1 0 8 0 amappl8 128 350 0 318 2 0 2 2 0 8 0 amappl7 120 155 0 142 1 0 1 1 0 8 0 amappl6 112 24 0 21 1 0 1 1 0 8 0 amappl5 104 212 0 196 1 0 1 1 0 8 0 amappl4 96 489 0 460 1 0 1 1 0 8 0 amappl3 88 110 0 103 1 0 1 1 0 8 0 amappl2 80 1470 0 1400 2 0 2 2 0 8 0 amappl1 72 17383 0 16940 24 13 11 18 0 8 1 amappl 80 730 0 684 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 305 0 287 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 305 0 287 1 0 1 1 0 8 0 vmmpekpl 168 6401 0 6369 2 0 2 2 0 8 0 vmmpepl 168 45426 0 43331 133 13 120 120 0 357 25 vmsppl 368 304 0 287 2 0 2 2 0 8 0 pdppl 4096 617 0 576 7 1 6 6 0 8 0 pvpl 32 152995 0 132853 167 3 164 164 0 265 1 pmappl 232 304 0 287 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 272 0 8 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ead86) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f689000,0,ffff800020e1df18,0,0,ffff800020e1de24) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80751f8390,ffff800020e1df18,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1df18,0,ffff800020e1e000) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1dfb0,ffff800020e1e000) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e080) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e080) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe8db0, count: -8 ddb{0}> machine ddbcpu 1