panic: receive 1: so 0xfffffd806f688190, so_type 3, sb_cc 48 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 131843 85361 0 0 0x4000000 1 syz-executor.0 *381642 30954 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f1520) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688190,0,ffff800020e1e5e8,0,0,ffff800020e1e4f4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd806fc38130,ffff800020e1e5e8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd118,6,ffff800020e1e5e8,0,ffff800020e1e6d0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd118,ffff800020e1e680,ffff800020e1e6d0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e750) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e750) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9080, 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 1: so 0xfffffd806f688190, so_type 3, sb_cc 48 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f1520) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688190,0,ffff800020e1e5e8,0,0,ffff800020e1e4f4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd806fc38130,ffff800020e1e5e8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd118,6,ffff800020e1e5e8,0,ffff800020e1e6d0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd118,ffff800020e1e680,ffff800020e1e6d0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e750) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e750) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9080, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e330 rbx 0xffff800020e1e3e0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8169567f kprintf+0x16f r9 0x1 r10 0x2 r11 0x854e52918c158bd5 r12 0x3000000008 r13 0xffff800020e1e340 r14 0x100 r15 0x1 rip 0xffffffff8138f5b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e320 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=381642 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc278,0xffff800020ddd608 process=0xffff800020df1370 user=0xffff800020e19000, vmspace=0xfffffd807f000170 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 85361 442269 74329 0 2 0 syz-executor.0 85361 131843 74329 0 7 0x4000000 syz-executor.0 73466 121719 74981 0 3 0x90 nanosleep syz-executor.1 73466 354338 74981 0 3 0x4000090 msgwait syz-executor.1 73466 82235 74981 0 3 0x4000090 fsleep syz-executor.1 74981 114701 66041 0 3 0x82 nanosleep syz-executor.1 74329 341125 66041 0 2 0x482 syz-executor.0 66041 334390 97220 0 3 0x82 thrsleep syz-fuzzer 66041 18157 97220 0 2 0x4000482 syz-fuzzer 66041 174854 97220 0 3 0x4000082 thrsleep syz-fuzzer 66041 365985 97220 0 3 0x4000082 thrsleep syz-fuzzer 66041 289958 97220 0 3 0x4000082 thrsleep syz-fuzzer 66041 518518 97220 0 2 0x4000482 syz-fuzzer 66041 432530 97220 0 3 0x4000082 thrsleep syz-fuzzer 66041 108538 97220 0 3 0x4000082 thrsleep syz-fuzzer 66041 504599 97220 0 3 0x4000082 kqread syz-fuzzer 66041 432741 97220 0 3 0x4000082 thrsleep syz-fuzzer 97220 478054 26392 0 3 0x10008a pause ksh 26392 432036 19419 0 3 0x92 select sshd 22481 233775 1 0 3 0x100083 ttyin getty 19419 138778 1 0 3 0x80 select sshd 60291 105855 96623 74 3 0x100092 bpf pflogd 96623 1613 1 0 3 0x80 netio pflogd 42517 303976 94974 73 3 0x100090 kqread syslogd 94974 422578 1 0 3 0x100082 netio syslogd 33235 197124 1 77 3 0x100090 poll dhclient *30954 381642 1 0 7 0 dhclient 81250 6835 0 0 3 0x14200 bored smr 4474 119508 0 0 3 0x14200 pgzero zerothread 94694 427088 0 0 3 0x14200 aiodoned aiodoned 69480 498744 0 0 3 0x14200 syncer update 44952 309902 0 0 3 0x14200 cleaner cleaner 25585 212473 0 0 3 0x14200 reaper reaper 18429 210132 0 0 3 0x14200 pgdaemon pagedaemon 69781 343876 0 0 3 0x14200 bored crynlk 53182 485730 0 0 3 0x14200 bored crypto 12179 339058 0 0 3 0x40014200 acpi0 acpi0 91370 277279 0 0 3 0x40014200 idle1 19259 168647 0 0 3 0x14200 bored softnet 30962 268619 0 0 3 0x14200 bored systqmp 31489 185502 0 0 3 0x14200 bored systq 14775 48470 0 0 3 0x40014200 bored softclock 49995 106175 0 0 3 0x40014200 idle0 1 227424 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 30954 (dhclient) thread 0xffff800020ddd118 (381642) 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 6659K 78643K 10708 0 pcb 13 8K 8K 78643K 35 0 rtable 99 3K 3K 78643K 222 0 ifaddr 50 11K 11K 78643K 68 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1479 0 iov 0 0K 2K 78643K 5 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1263 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 11 1K 1K 78643K 21 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 132 0 sigio 0 0K 0K 78643K 4 0 proc 60 63K 95K 78643K 446 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 8 0 in_multi 36 2K 2K 78643K 73 0 ether_multi 1 0K 0K 78643K 4 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 125 23K 27K 78643K 1340 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 15 0 NDP 7 0K 0K 78643K 16 0 temp 76 3853K 3917K 78643K 2645 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 23 0 21 1 0 1 1 0 8 0 rtentry 112 55 0 14 2 0 2 2 0 8 0 unpcb 120 53 0 39 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 48 0 48 2 2 0 1 0 8 0 tcpcb 544 40 0 36 1 0 1 1 0 8 0 inpcb 296 151 0 144 1 0 1 1 0 8 0 nd6 48 13 0 9 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 0 1 0 1 1 0 8 0 pfstkey 112 22 0 0 1 0 1 1 0 8 0 pfstate 328 22 0 0 2 0 2 2 0 8 0 pfrule 1360 23 0 18 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 214 0 42 12 0 12 12 0 8 1 art_table 32 215 0 42 2 0 2 2 0 8 0 art_node 16 54 0 16 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semupl 112 4 0 4 1 0 1 1 0 8 1 semapl 112 9 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1542 0 136 89 0 89 89 0 8 1 ffsino 272 1542 0 136 94 0 94 94 0 8 0 nchpl 144 1945 0 330 60 0 60 60 0 8 0 uvmvnodes 72 1624 0 0 30 0 30 30 0 8 0 vnodes 208 1624 0 0 86 0 86 86 0 8 0 namei 1024 5097 0 5097 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 5639 0 5639 8 1 7 7 0 8 7 plimitpl 152 19 0 11 1 0 1 1 0 8 0 sigapl 424 347 0 315 4 0 4 4 0 8 0 futexpl 56 1462 0 1461 1 0 1 1 0 8 0 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 13 0 10 1 0 1 1 0 8 0 pipepl 304 85 0 75 1 0 1 1 0 8 0 fdescpl 496 332 0 315 3 0 3 3 0 8 0 filepl 152 1687 0 1581 5 0 5 5 0 8 0 lockfpl 104 7 0 6 1 0 1 1 0 8 0 lockfspl 48 4 0 3 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 95 0 84 1 0 1 1 0 8 0 zombiepl 144 315 0 315 1 0 1 1 0 8 1 processpl 992 347 0 315 5 0 5 5 0 8 0 procpl 624 565 0 521 4 0 4 4 0 8 0 sockpl 400 227 0 204 3 0 3 3 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 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 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 278 0 0 34 0 34 34 0 8 0 mtagpl 96 8 0 0 1 0 1 1 0 8 0 mbufpl 256 282 0 0 18 0 18 18 0 8 0 bufpl 280 3478 0 134 239 0 239 239 0 8 0 anonpl 16 47117 0 30289 69 1 68 68 0 124 0 amapchunkpl 152 1614 0 1451 8 0 8 8 0 158 1 amappl16 192 1378 0 486 45 0 45 45 0 8 0 amappl15 184 51 0 48 1 0 1 1 0 8 0 amappl14 176 27 0 21 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 14 0 11 2 1 1 1 0 8 0 amappl11 152 106 0 89 1 0 1 1 0 8 0 amappl10 144 71 0 63 1 0 1 1 0 8 0 amappl9 136 388 0 387 1 0 1 1 0 8 0 amappl8 128 346 0 314 2 0 2 2 0 8 0 amappl7 120 121 0 109 1 0 1 1 0 8 0 amappl6 112 74 0 67 1 0 1 1 0 8 0 amappl5 104 228 0 211 1 0 1 1 0 8 0 amappl4 96 490 0 459 1 0 1 1 0 8 0 amappl3 88 105 0 100 1 0 1 1 0 8 0 amappl2 80 1768 0 1687 2 0 2 2 0 8 0 amappl1 72 18237 0 17762 23 12 11 18 0 8 1 amappl 80 824 0 775 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 332 0 315 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 332 0 315 1 0 1 1 0 8 0 vmmpekpl 168 6594 0 6560 2 0 2 2 0 8 0 vmmpepl 168 48779 0 46591 120 4 116 116 0 357 20 vmsppl 368 331 0 315 2 0 2 2 0 8 0 pdppl 4096 671 0 630 7 1 6 6 0 8 0 pvpl 32 161231 0 141062 164 0 164 164 0 265 1 pmappl 232 331 0 315 2 0 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 277 0 4 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(ffffffff823f1520) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688190,0,ffff800020e1e5e8,0,0,ffff800020e1e4f4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd806fc38130,ffff800020e1e5e8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd118,6,ffff800020e1e5e8,0,ffff800020e1e6d0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd118,ffff800020e1e680,ffff800020e1e6d0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e750) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e750) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9080, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) 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(ffffffff828eb208) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828eb208) at __mp_lock+0x12e sys/kern/kern_lock.c:147 syscall(ffff800023f09920) at syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800023f09920) at syscall+0x400 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8e04d06b10, count: 9 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) 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(ffffffff828eb208) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828eb208) at __mp_lock+0x12e sys/kern/kern_lock.c:147 syscall(ffff800023f09920) at syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800023f09920) at syscall+0x400 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd8e04d06b10, count: -6