panic: receive 1: so 0xfffffd806f686000, so_type 3, sb_cc 80 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 388859 26996 0 0 0 0 syz-executor.1 * 51558 75731 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823db05c) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f686000,0,ffff800020e1dc98,0,0,ffff800020e1dba4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80771f9260,ffff800020e1dc98,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1dc98,0,ffff800020e1dd80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1dd30,ffff800020e1dd80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1de00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1de00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffccc70, 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 1: so 0xfffffd806f686000, so_type 3, sb_cc 80 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823db05c) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f686000,0,ffff800020e1dc98,0,0,ffff800020e1dba4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80771f9260,ffff800020e1dc98,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1dc98,0,ffff800020e1dd80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1dd30,ffff800020e1dd80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1de00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1de00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffccc70, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1d9e0 rbx 0xffff800020e1da90 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff810d29cf kprintf+0x16f r9 0x1 r10 0x2 r11 0xa931992c711ba4f8 r12 0x3000000008 r13 0xffff800020e1d9f0 r14 0x100 r15 0x1 rip 0xffffffff81902818 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1d9d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=51558 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc9c8,0xffff800020ddceb8 process=0xffff800020df0010 user=0xffff800020e18000, vmspace=0xfffffd807efff450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 26996 388859 35531 0 7 0 syz-executor.1 26996 87311 35531 0 2 0x4000000 syz-executor.1 35531 17176 4621 0 3 0x82 nanosleep syz-executor.1 42024 31425 4621 0 3 0x82 nanosleep syz-executor.0 4621 212797 82758 0 3 0x82 thrsleep syz-fuzzer 4621 491166 82758 0 3 0x4000082 thrsleep syz-fuzzer 4621 368945 82758 0 3 0x4000082 thrsleep syz-fuzzer 4621 501044 82758 0 3 0x4000082 thrsleep syz-fuzzer 4621 101962 82758 0 3 0x4000082 thrsleep syz-fuzzer 4621 91691 82758 0 3 0x4000082 thrsleep syz-fuzzer 4621 82425 82758 0 3 0x4000082 thrsleep syz-fuzzer 4621 293327 82758 0 3 0x4000082 thrsleep syz-fuzzer 4621 312479 82758 0 3 0x4000082 kqread syz-fuzzer 4621 368556 82758 0 3 0x4000082 thrsleep syz-fuzzer 82758 263599 71613 0 3 0x10008a pause ksh 71613 469006 65465 0 3 0x92 select sshd 51203 3860 1 0 3 0x100083 ttyin getty 65465 171199 1 0 3 0x80 select sshd 1393 227453 89142 74 3 0x100092 bpf pflogd 89142 189332 1 0 3 0x80 netio pflogd 94625 464540 51878 73 3 0x100090 kqread syslogd 51878 284906 1 0 3 0x100082 netio syslogd 57548 288642 1 77 3 0x100090 poll dhclient *75731 51558 1 0 7 0 dhclient 67498 133614 0 0 3 0x14200 bored smr 67551 188522 0 0 2 0x14200 zerothread 38770 439005 0 0 3 0x14200 aiodoned aiodoned 71665 260158 0 0 3 0x14200 syncer update 47936 497131 0 0 3 0x14200 cleaner cleaner 76108 113040 0 0 3 0x14200 reaper reaper 96784 13441 0 0 3 0x14200 pgdaemon pagedaemon 54992 455371 0 0 3 0x14200 bored crynlk 55536 400319 0 0 3 0x14200 bored crypto 70890 270741 0 0 3 0x40014200 acpi0 acpi0 73217 349588 0 0 3 0x40014200 idle1 8269 169750 0 0 3 0x14200 bored softnet 68830 89178 0 0 3 0x14200 bored systqmp 84172 3182 0 0 3 0x14200 bored systq 14725 179332 0 0 3 0x40014200 bored softclock 30204 238944 0 0 3 0x40014200 idle0 1 433054 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 75731 (dhclient) thread 0xffff800020ddcc38 (51558) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8290a550) #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: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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9475 6399K 6595K 78643K 10634 0 pcb 14 8K 8K 78643K 32 0 rtable 104 4K 5K 78643K 216 0 ifaddr 48 11K 11K 78643K 54 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1480 0 iov 0 0K 12K 78643K 6 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1253 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 8 0K 0K 78643K 10 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 103 0 proc 61 63K 83K 78643K 475 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 3 0 in_multi 43 2K 2K 78643K 56 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 223 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 122 39K 39K 78643K 1242 0 UVM aobj 6 2K 2K 78643K 6 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 6 0K 0K 78643K 11 0 temp 72 3850K 3914K 78643K 2835 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 21 0 19 1 0 1 1 0 8 0 rtentry 112 49 0 8 2 0 2 2 0 8 0 unpcb 120 75 0 65 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 tcpqe 32 650 0 650 1 0 1 1 0 8 1 tcpcb 544 101 0 96 1 0 1 1 0 8 0 inpcb 280 177 0 167 2 0 2 2 0 8 1 nd6 48 7 0 3 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 pfrktable 1344 3 0 1 1 0 1 1 0 8 0 pfstitem 24 14 0 0 1 0 1 1 0 8 0 pfstkey 112 14 0 0 1 0 1 1 0 8 0 pfstate 328 14 0 0 2 0 2 2 0 8 0 pfrule 1360 22 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 212 0 40 12 0 12 12 0 8 0 art_table 32 213 0 40 2 0 2 2 0 8 0 art_node 16 48 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 8 0 2 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1529 0 122 89 0 89 89 0 8 1 ffsino 272 1529 0 122 94 0 94 94 0 8 0 nchpl 144 1864 0 253 60 0 60 60 0 8 0 uvmvnodes 72 1587 0 0 29 0 29 29 0 8 0 vnodes 208 1587 0 0 84 0 84 84 0 8 0 namei 1024 4948 0 4948 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 3 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 scxspl 192 5250 0 5249 2 1 1 2 0 8 0 plimitpl 152 21 0 13 1 0 1 1 0 8 0 sigapl 424 318 0 287 4 0 4 4 0 8 0 futexpl 56 1166 0 1166 1 0 1 1 0 8 1 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 14 0 12 1 0 1 1 0 8 0 pipepl 304 91 0 81 2 0 2 2 0 8 1 fdescpl 496 303 0 287 3 0 3 3 0 8 0 filepl 152 1675 0 1572 5 0 5 5 0 8 0 lockfpl 104 43 0 42 1 0 1 1 0 8 0 lockfspl 48 17 0 16 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 150 0 141 1 0 1 1 0 8 0 zombiepl 144 287 0 286 1 0 1 1 0 8 0 processpl 984 318 0 286 5 0 5 5 0 8 0 procpl 624 481 0 439 4 0 4 4 0 8 0 sockpl 400 275 0 253 4 0 4 4 0 8 1 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 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 184 0 0 22 0 22 22 0 8 0 mtagpl 80 6 0 0 1 0 1 1 0 8 0 mbufpl 256 243 0 0 15 0 15 15 0 8 0 bufpl 280 3457 0 133 238 0 238 238 0 8 0 anonpl 16 42464 0 27249 63 1 62 62 0 124 0 amapchunkpl 152 1438 0 1287 9 0 9 9 0 158 2 amappl16 192 1190 0 380 41 0 41 41 0 8 0 amappl15 184 33 0 31 1 0 1 1 0 8 0 amappl14 176 22 0 19 1 0 1 1 0 8 0 amappl13 168 36 0 32 1 0 1 1 0 8 0 amappl12 160 7 0 6 2 1 1 1 0 8 0 amappl11 152 86 0 70 1 0 1 1 0 8 0 amappl10 144 54 0 47 1 0 1 1 0 8 0 amappl9 136 389 0 387 1 0 1 1 0 8 0 amappl8 128 356 0 323 2 0 2 2 0 8 0 amappl7 120 152 0 140 1 0 1 1 0 8 0 amappl6 112 23 0 20 1 0 1 1 0 8 0 amappl5 104 199 0 183 1 0 1 1 0 8 0 amappl4 96 490 0 459 1 0 1 1 0 8 0 amappl3 88 108 0 101 1 0 1 1 0 8 0 amappl2 80 1500 0 1428 2 0 2 2 0 8 0 amappl1 72 16500 0 16065 23 9 14 18 0 8 4 amappl 80 730 0 681 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 306 0 289 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 306 0 289 1 0 1 1 0 8 0 vmmpekpl 168 6441 0 6408 2 0 2 2 0 8 0 vmmpepl 168 43951 0 41984 119 5 114 114 0 357 23 vmsppl 368 305 0 289 2 0 2 2 0 8 0 pdppl 4096 619 0 579 7 1 6 6 0 8 0 pvpl 32 149348 0 131017 155 0 155 155 0 265 5 pmappl 232 305 0 289 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 261 0 4 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82714ff0) 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 __mp_lock(ffffffff8290a348) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8290a348) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x7 kd_curproc sys/dev/kcov.c:75 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x7 sys/dev/kcov.c:79 syscall(ffff800023f0f330) at syscall+0x3dc mi_syscall sys/sys/syscall_mi.h:87 [inline] syscall(ffff800023f0f330) at syscall+0x3dc sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3390, count: 6 ddb{0}> trace x86_ipi_db(ffffffff82714ff0) 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 __mp_lock(ffffffff8290a348) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8290a348) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x7 kd_curproc sys/dev/kcov.c:75 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x7 sys/dev/kcov.c:79 syscall(ffff800023f0f330) at syscall+0x3dc mi_syscall sys/sys/syscall_mi.h:87 [inline] syscall(ffff800023f0f330) at syscall+0x3dc sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3390, count: -9 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(ffffffff823db05c) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f686000,0,ffff800020e1dc98,0,0,ffff800020e1dba4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80771f9260,ffff800020e1dc98,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1dc98,0,ffff800020e1dd80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1dd30,ffff800020e1dd80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1de00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1de00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffccc70, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823db05c) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f686000,0,ffff800020e1dc98,0,0,ffff800020e1dba4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80771f9260,ffff800020e1dc98,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1dc98,0,ffff800020e1dd80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1dd30,ffff800020e1dd80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1de00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1de00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffccc70, count: -8