panic: receive 3: so 0xfffffd806f688000, so_type 3, m 0xfffffd806a799e00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 441268 2276 0 0 0 0 syz-executor.1 *153180 39409 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e24da) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f688000,0,ffff800020e1e928,0,0,ffff800020e1e834) at soreceive+0x1727 soo_read(fffffd8070e184c0,ffff800020e1e928,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e928,0,ffff800020e1ea10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1e9c0,ffff800020e1ea10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1740, 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 0xfffffd806f688000, so_type 3, m 0xfffffd806a799e00, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e24da) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f688000,0,ffff800020e1e928,0,0,ffff800020e1e834) at soreceive+0x1727 soo_read(fffffd8070e184c0,ffff800020e1e928,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e928,0,ffff800020e1ea10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1e9c0,ffff800020e1ea10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1740, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e670 rbx 0xffff800020e1e720 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8214115f kprintf+0x16f r9 0x1 r10 0x2 r11 0x522cfb031601fd38 r12 0x3000000008 r13 0xffff800020e1e680 r14 0x100 r15 0x1 rip 0xffffffff82061f48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e660 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=153180 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcc38,0xffff800020ddd128 process=0xffff800020df0bb0 user=0xffff800020e19000, vmspace=0xfffffd807efff2e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2276 441268 31666 0 7 0 syz-executor.1 2276 294460 31666 0 2 0x4000000 syz-executor.1 2276 51129 31666 0 3 0x4000080 fsleep syz-executor.1 58618 24181 10977 0 3 0x82 nanosleep syz-executor.0 31666 54376 10977 0 3 0x82 nanosleep syz-executor.1 10977 524032 97473 0 3 0x82 thrsleep syz-fuzzer 10977 452677 97473 0 3 0x4000082 thrsleep syz-fuzzer 10977 240998 97473 0 3 0x4000082 thrsleep syz-fuzzer 10977 196758 97473 0 3 0x4000082 kqread syz-fuzzer 10977 476177 97473 0 3 0x4000082 thrsleep syz-fuzzer 10977 359756 97473 0 3 0x4000082 thrsleep syz-fuzzer 10977 61324 97473 0 3 0x4000082 thrsleep syz-fuzzer 10977 344946 97473 0 3 0x4000082 thrsleep syz-fuzzer 10977 283999 97473 0 3 0x4000082 thrsleep syz-fuzzer 10977 321841 97473 0 3 0x4000082 thrsleep syz-fuzzer 97473 31354 64953 0 3 0x10008a pause ksh 64953 169944 78843 0 3 0x92 select sshd 4496 82110 1 0 3 0x100083 ttyin getty 78843 291328 1 0 3 0x80 select sshd 1998 435003 32285 74 3 0x100092 bpf pflogd 32285 157415 1 0 3 0x80 netio pflogd 86476 350744 64586 73 3 0x100090 kqread syslogd 64586 204451 1 0 3 0x100082 netio syslogd 27400 295935 1 77 3 0x100090 poll dhclient *39409 153180 1 0 7 0 dhclient 50898 44909 0 0 3 0x14200 bored smr 25923 423320 0 0 2 0x14200 zerothread 84812 79453 0 0 3 0x14200 aiodoned aiodoned 67489 489936 0 0 3 0x14200 syncer update 37234 85455 0 0 3 0x14200 cleaner cleaner 94322 223531 0 0 3 0x14200 reaper reaper 74781 78540 0 0 3 0x14200 pgdaemon pagedaemon 48234 79326 0 0 3 0x14200 bored crynlk 30865 213229 0 0 3 0x14200 bored crypto 29965 353625 0 0 3 0x40014200 acpi0 acpi0 71611 319326 0 0 3 0x40014200 idle1 86549 264495 0 0 3 0x14200 bored softnet 23791 314725 0 0 3 0x14200 bored systqmp 33448 508597 0 0 3 0x14200 bored systq 81357 505070 0 0 3 0x40014200 bored softclock 31569 151275 0 0 3 0x40014200 idle0 1 178275 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 39409 (dhclient) thread 0xffff800020ddc9c8 (153180) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8292f068) #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+0xb3a sys/kern/uipc_socket.c:956 #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 9475 6525K 7044K 78643K 10698 0 pcb 14 8K 8K 78643K 21 0 rtable 107 3K 3K 78643K 225 0 ifaddr 45 10K 11K 78643K 49 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1471 0 iov 0 0K 1K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1250 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 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 60 0 proc 60 63K 83K 78643K 439 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 37 2K 2K 78643K 45 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 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 207 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 118 22K 23K 78643K 1101 0 UVM aobj 4 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 8 0K 0K 78643K 13 0 temp 73 3853K 3917K 78643K 2097 0 kqueue 3 4K 4K 78643K 3 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 25 0 23 1 0 1 1 0 8 0 rtentry 112 55 0 10 2 0 2 2 0 8 0 unpcb 120 66 0 55 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 211 0 211 1 1 0 1 0 8 0 tcpcb 544 22 0 6 2 0 2 2 0 8 0 inpcb 296 78 0 69 2 0 2 2 0 8 1 nd6 48 9 0 3 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 18 0 0 1 0 1 1 0 8 0 pfstkey 112 18 0 0 1 0 1 1 0 8 0 pfstate 328 18 0 0 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 189 0 16 12 0 12 12 0 8 0 art_table 32 190 0 16 2 0 2 2 0 8 0 art_node 16 54 0 14 1 0 1 1 0 8 0 semapl 112 2 0 0 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 1453 0 47 88 0 88 88 0 8 0 ffsino 272 1453 0 47 94 0 94 94 0 8 0 nchpl 144 1729 0 113 60 0 60 60 0 8 0 uvmvnodes 72 1525 0 0 28 0 28 28 0 8 0 vnodes 208 1525 0 0 81 0 81 81 0 8 0 namei 1024 4526 0 4526 2 1 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 4889 0 4889 3 2 1 2 0 8 1 plimitpl 152 21 0 13 1 0 1 1 0 8 0 sigapl 424 275 0 244 4 0 4 4 0 8 0 futexpl 56 578 0 577 1 0 1 1 0 8 0 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 4 0 2 1 0 1 1 0 8 0 pipepl 304 77 0 67 1 0 1 1 0 8 0 fdescpl 496 260 0 244 3 0 3 3 0 8 0 filepl 152 1355 0 1252 6 1 5 5 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 68 0 59 1 0 1 1 0 8 0 zombiepl 144 244 0 243 2 1 1 1 0 8 0 processpl 992 275 0 243 5 0 5 5 0 8 0 procpl 624 336 0 293 4 0 4 4 0 8 0 sockpl 400 173 0 151 5 2 3 4 0 8 0 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 201 0 0 25 0 25 25 0 8 0 mtagpl 96 21 0 0 1 0 1 1 0 8 0 mbufpl 256 225 0 0 14 0 14 14 0 8 0 bufpl 280 3390 0 132 233 0 233 233 0 8 0 anonpl 16 41193 0 24866 67 1 66 66 0 124 0 amapchunkpl 152 1201 0 1052 9 2 7 9 0 158 0 amappl16 192 1099 0 216 45 0 45 45 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 25 0 20 1 0 1 1 0 8 0 amappl13 168 42 0 37 1 0 1 1 0 8 0 amappl12 160 24 0 21 2 1 1 1 0 8 0 amappl11 152 72 0 56 1 0 1 1 0 8 0 amappl10 144 16 0 12 1 0 1 1 0 8 0 amappl9 136 389 0 388 1 0 1 1 0 8 0 amappl8 128 344 0 315 2 0 2 2 0 8 0 amappl7 120 118 0 107 1 0 1 1 0 8 0 amappl6 112 35 0 32 1 0 1 1 0 8 0 amappl5 104 160 0 142 1 0 1 1 0 8 0 amappl4 96 483 0 456 1 0 1 1 0 8 0 amappl3 88 108 0 102 1 0 1 1 0 8 0 amappl2 80 1151 0 1078 2 0 2 2 0 8 0 amappl1 72 16229 0 15777 23 13 10 18 0 8 0 amappl 80 590 0 545 1 0 1 1 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 260 0 244 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 260 0 244 1 0 1 1 0 8 0 vmmpekpl 168 6119 0 6084 2 0 2 2 0 8 0 vmmpepl 168 39642 0 37592 121 26 95 114 0 357 2 vmsppl 368 259 0 244 2 0 2 2 0 8 0 pdppl 4096 527 0 488 6 0 6 6 0 8 1 pvpl 32 142481 0 122975 161 2 159 159 0 265 0 pmappl 232 259 0 244 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 265 0 6 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82722ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __sanitizer_cov_trace_cmp4(ffffffff8292ee60,ffffffff8292ee60) at __sanitizer_cov_trace_cmp4+0x6b sys/dev/kcov.c:137 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0x7f7fffff77f0, count: 9 ddb{0}> trace x86_ipi_db(ffffffff82722ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __sanitizer_cov_trace_cmp4(ffffffff8292ee60,ffffffff8292ee60) at __sanitizer_cov_trace_cmp4+0x6b sys/dev/kcov.c:137 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0x7f7fffff77f0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e24da) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f688000,0,ffff800020e1e928,0,0,ffff800020e1e834) at soreceive+0x1727 soo_read(fffffd8070e184c0,ffff800020e1e928,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e928,0,ffff800020e1ea10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1e9c0,ffff800020e1ea10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1740, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e24da) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f688000,0,ffff800020e1e928,0,0,ffff800020e1e834) at soreceive+0x1727 soo_read(fffffd8070e184c0,ffff800020e1e928,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e928,0,ffff800020e1ea10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1e9c0,ffff800020e1ea10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1740, count: -8