login: panic: receive 1a: so 0xfffffd806f68d7d0, so_type 3, m 0xfffffd806f382b00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 113790 45679 0 0 0x4000080 1 syz-executor.0 *103793 14112 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ec8d5) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68d7d0,0,ffff800020e1e7a8,0,0,ffff800020e1e6b4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd806fc36390,ffff800020e1e7a8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1e7a8,0,ffff800020e1e890) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1e840,ffff800020e1e890) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e910) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e910) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd7660, 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 0xfffffd806f68d7d0, so_type 3, m 0xfffffd806f382b00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ec8d5) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68d7d0,0,ffff800020e1e7a8,0,0,ffff800020e1e6b4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd806fc36390,ffff800020e1e7a8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1e7a8,0,ffff800020e1e890) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1e840,ffff800020e1e890) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e910) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e910) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd7660, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e4f0 rbx 0xffff800020e1e5a0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81ec8d2f kprintf+0x16f r9 0x1 r10 0x2 r11 0x50f122903a232b8e r12 0x3000000008 r13 0xffff800020e1e500 r14 0x100 r15 0x1 rip 0xffffffff81efc068 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e4e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=103793 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd388,0xffff800020ddc018 process=0xffff800020df07d0 user=0xffff800020e19000, vmspace=0xfffffd807efff2e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 45679 395615 85476 0 2 0 syz-executor.0 45679 113790 85476 0 7 0x4000080 syz-executor.0 19751 201470 30489 0 3 0x82 nanosleep syz-executor.1 85476 171470 30489 0 3 0x82 nanosleep syz-executor.0 30489 147414 64300 0 3 0x82 thrsleep syz-fuzzer 30489 284567 64300 0 3 0x4000082 thrsleep syz-fuzzer 30489 392278 64300 0 3 0x4000082 thrsleep syz-fuzzer 30489 335825 64300 0 3 0x4000082 thrsleep syz-fuzzer 30489 39332 64300 0 3 0x4000082 thrsleep syz-fuzzer 30489 350125 64300 0 3 0x4000082 thrsleep syz-fuzzer 30489 69400 64300 0 3 0x4000082 thrsleep syz-fuzzer 30489 498471 64300 0 3 0x4000082 thrsleep syz-fuzzer 30489 59444 64300 0 3 0x4000082 thrsleep syz-fuzzer 30489 384432 64300 0 3 0x4000082 kqread syz-fuzzer 64300 194688 64130 0 3 0x10008a pause ksh 64130 45140 68056 0 3 0x92 select sshd 48774 21946 1 0 3 0x100083 ttyin getty 68056 297209 1 0 3 0x80 select sshd 87953 412338 32393 74 3 0x100092 bpf pflogd 32393 23294 1 0 3 0x80 netio pflogd 45813 119051 81190 73 3 0x100090 kqread syslogd 81190 84729 1 0 3 0x100082 netio syslogd 71410 195786 1 77 3 0x100090 poll dhclient *14112 103793 1 0 7 0 dhclient 90425 190160 0 0 3 0x14200 bored smr 81214 55622 0 0 3 0x14200 pgzero zerothread 10998 292719 0 0 3 0x14200 aiodoned aiodoned 49345 406112 0 0 3 0x14200 syncer update 1915 281776 0 0 3 0x14200 cleaner cleaner 39799 517128 0 0 3 0x14200 reaper reaper 16660 191174 0 0 3 0x14200 pgdaemon pagedaemon 72097 400100 0 0 3 0x14200 bored crynlk 67283 366468 0 0 3 0x14200 bored crypto 11551 289170 0 0 3 0x40014200 acpi0 acpi0 37664 460253 0 0 3 0x40014200 idle1 28660 323489 0 0 3 0x14200 bored softnet 2861 201514 0 0 3 0x14200 bored systqmp 7056 100583 0 0 3 0x14200 bored systq 23539 48575 0 0 3 0x40014200 bored softclock 66601 57405 0 0 3 0x40014200 idle0 1 351085 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 14112 (dhclient) thread 0xffff800020ddc278 (103793) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828c8768) #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 9483 6410K 6786K 78643K 10671 0 pcb 13 8K 8K 78643K 29 0 rtable 107 3K 3K 78643K 210 0 ifaddr 52 12K 12K 78643K 62 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1472 0 iov 0 0K 0K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1251 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 22 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 89 0 proc 60 63K 95K 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 1 0 in_multi 44 2K 2K 78643K 54 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 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 22K 23K 78643K 1220 0 UVM aobj 9 2K 2K 78643K 10 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 8 0 NDP 7 0K 0K 78643K 13 0 temp 74 3856K 3923K 78643K 2962 0 kqueue 3 4K 8K 78643K 6 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 7 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 49 0 4 2 0 2 2 0 8 0 unpcb 120 59 0 47 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 588 0 588 1 1 0 1 0 8 0 tcpcb 544 26 0 22 1 0 1 1 0 8 0 inpcb 296 110 0 102 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 23 0 1 1 0 1 1 0 8 0 pfstkey 112 23 0 1 1 0 1 1 0 8 0 pfstate 328 23 0 1 2 0 2 2 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 190 0 0 12 0 12 12 0 8 0 art_table 32 191 0 0 2 0 2 2 0 8 0 art_node 16 48 0 7 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 7 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1493 0 85 89 0 89 89 0 8 0 ffsino 272 1493 0 85 94 0 94 94 0 8 0 nchpl 144 1840 0 226 60 0 60 60 0 8 0 uvmvnodes 72 1562 0 0 29 0 29 29 0 8 0 vnodes 208 1562 0 0 83 0 83 83 0 8 0 namei 1024 4824 0 4824 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 5358 0 5358 8 1 7 7 0 8 7 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 304 0 273 4 0 4 4 0 8 0 futexpl 56 962 0 962 1 0 1 1 0 8 1 knotepl 112 66 0 47 1 0 1 1 0 8 0 kqueuepl 144 14 0 11 1 0 1 1 0 8 0 pipepl 304 85 0 75 1 0 1 1 0 8 0 fdescpl 496 289 0 273 3 0 3 3 0 8 0 filepl 152 1549 0 1441 5 0 5 5 0 8 0 lockfpl 104 15 0 14 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 92 0 82 1 0 1 1 0 8 0 zombiepl 144 273 0 272 1 0 1 1 0 8 0 processpl 992 304 0 272 5 0 5 5 0 8 0 procpl 624 448 0 406 4 0 4 4 0 8 0 sockpl 400 188 0 167 3 0 3 3 0 8 0 mcl64k 65536 1 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 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 197 0 0 24 0 24 24 0 8 0 mtagpl 96 9 0 0 1 0 1 1 0 8 0 mbufpl 256 212 0 0 13 0 13 13 0 8 0 bufpl 280 3480 0 133 240 0 240 240 0 8 0 anonpl 16 46839 0 30323 83 1 82 82 0 124 15 amapchunkpl 152 1435 0 1289 8 1 7 8 0 158 0 amappl16 192 1479 0 593 55 2 53 55 0 8 8 amappl15 184 58 0 54 1 0 1 1 0 8 0 amappl14 176 23 0 19 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 15 0 10 1 0 1 1 0 8 0 amappl11 152 52 0 37 1 0 1 1 0 8 0 amappl10 144 49 0 42 1 0 1 1 0 8 0 amappl9 136 387 0 385 1 0 1 1 0 8 0 amappl8 128 354 0 321 2 0 2 2 0 8 0 amappl7 120 147 0 135 1 0 1 1 0 8 0 amappl6 112 25 0 21 1 0 1 1 0 8 0 amappl5 104 187 0 170 1 0 1 1 0 8 0 amappl4 96 487 0 456 1 0 1 1 0 8 0 amappl3 88 108 0 103 1 0 1 1 0 8 0 amappl2 80 1340 0 1271 2 0 2 2 0 8 0 amappl1 72 16415 0 15979 23 13 10 18 0 8 0 amappl 80 707 0 664 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 9 0 1 1 0 1 1 0 8 0 uaddrrnd 24 289 0 273 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 289 0 273 1 0 1 1 0 8 0 vmmpekpl 168 6322 0 6284 2 0 2 2 0 8 0 vmmpepl 168 43044 0 40990 115 9 106 112 0 357 11 vmsppl 368 288 0 273 2 0 2 2 0 8 0 pdppl 4096 585 0 546 6 0 6 6 0 8 0 pvpl 32 151693 0 132036 193 0 193 193 0 265 33 pmappl 232 288 0 273 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 260 0 2 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(ffffffff823ec8d5) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68d7d0,0,ffff800020e1e7a8,0,0,ffff800020e1e6b4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd806fc36390,ffff800020e1e7a8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1e7a8,0,ffff800020e1e890) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1e840,ffff800020e1e890) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e910) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e910) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd7660, count: -8 ddb{0}> machine ddbcpu 1