panic: receive 1: so 0xfffffd806f68b320, so_type 3, sb_cc 80 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 42380 78612 0 0x2 0x4000480 1 syz-fuzzer * 13626 53781 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f1b68) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68b320,0,ffff800020e1e198,0,0,ffff800020e1e0a4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80757f7098,ffff800020e1e198,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1e198,0,ffff800020e1e280) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1e230,ffff800020e1e280) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e300) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e300) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8780, 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 0xfffffd806f68b320, so_type 3, sb_cc 80 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f1b68) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68b320,0,ffff800020e1e198,0,0,ffff800020e1e0a4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80757f7098,ffff800020e1e198,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1e198,0,ffff800020e1e280) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1e230,ffff800020e1e280) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e300) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e300) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8780, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1dee0 rbx 0xffff800020e1df90 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff817fa50f kprintf+0x16f r9 0x1 r10 0x2 r11 0x6a557cf11c14da3f r12 0x3000000008 r13 0xffff800020e1def0 r14 0x100 r15 0x1 rip 0xffffffff81ed2668 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1ded0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=13626 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc9c8,0xffff800020ddceb8 process=0xffff800020df0f90 user=0xffff800020e19000, vmspace=0xfffffd807f000000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 45003 241945 37482 0 2 0 syz-executor.0 45003 56134 37482 0 3 0x4000080 fsleep syz-executor.0 45003 461541 37482 0 2 0x4000000 syz-executor.0 53548 364835 65882 0 2 0 syz-executor.1 53548 243657 65882 0 3 0x4000080 fsleep syz-executor.1 14896 135378 0 0 3 0x14200 bored sosplice 65882 206774 78612 0 2 0x2 syz-executor.1 37482 329692 78612 0 2 0x482 syz-executor.0 78612 131011 30050 0 3 0x82 thrsleep syz-fuzzer 78612 430769 30050 0 3 0x4000082 nanosleep syz-fuzzer 78612 176060 30050 0 3 0x4000082 thrsleep syz-fuzzer 78612 285369 30050 0 3 0x4000082 thrsleep syz-fuzzer 78612 252143 30050 0 3 0x4000082 kqread syz-fuzzer 78612 377669 30050 0 3 0x4000082 thrsleep syz-fuzzer 78612 201783 30050 0 3 0x4000082 thrsleep syz-fuzzer 78612 42380 30050 0 7 0x4000482 syz-fuzzer 78612 207128 30050 0 3 0x4000082 thrsleep syz-fuzzer 78612 37682 30050 0 3 0x4000082 thrsleep syz-fuzzer 30050 455046 53877 0 3 0x10008a pause ksh 53877 237413 55757 0 3 0x92 select sshd 84496 92312 1 0 3 0x100083 ttyin getty 55757 217261 1 0 3 0x80 select sshd 98552 402264 52804 74 3 0x100092 bpf pflogd 52804 284310 1 0 3 0x80 netio pflogd 19180 173954 2051 73 3 0x100090 kqread syslogd 2051 195461 1 0 3 0x100082 netio syslogd 39342 370560 1 77 3 0x100090 poll dhclient *53781 13626 1 0 7 0 dhclient 56636 228809 0 0 3 0x14200 bored smr 12686 11170 0 0 2 0x14200 zerothread 68850 205317 0 0 3 0x14200 aiodoned aiodoned 19349 296156 0 0 3 0x14200 syncer update 59175 441680 0 0 3 0x14200 cleaner cleaner 60586 331432 0 0 3 0x14200 reaper reaper 45321 281743 0 0 3 0x14200 pgdaemon pagedaemon 45469 289572 0 0 3 0x14200 bored crynlk 55838 472545 0 0 3 0x14200 bored crypto 45068 450036 0 0 3 0x40014200 acpi0 acpi0 34957 28859 0 0 3 0x40014200 idle1 79784 209665 0 0 3 0x14200 bored softnet 34163 398761 0 0 3 0x14200 bored systqmp 51421 72512 0 0 3 0x14200 bored systq 27227 481683 0 0 2 0x40014200 softclock 83325 412541 0 0 3 0x40014200 idle0 1 2947 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 53781 (dhclient) thread 0xffff800020ddcc38 (13626) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828b55a0) #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 9536 6508K 6836K 78643K 11728 0 pcb 13 8K 8K 78643K 139 0 rtable 106 5K 6K 78643K 479 0 ifaddr 94 19K 20K 78643K 177 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 1588 0 iov 0 0K 16K 78643K 57 0 mount 1 1K 1K 78643K 1 0 vnodes 1225 77K 77K 78643K 1533 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 19 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 128 0 dirhash 9 1K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 666 0 sigio 0 0K 0K 78643K 8 0 proc 61 63K 83K 78643K 497 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 60 0 in_multi 91 4K 4K 78643K 234 0 ether_multi 1 0K 0K 78643K 21 0 mrt 0 0K 0K 78643K 14 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 252 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 129 39K 48K 78643K 3115 0 UVM aobj 36 4K 4K 78643K 39 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 75 0 NDP 14 0K 0K 78643K 40 0 temp 122 3874K 3944K 78643K 17694 0 kqueue 3 4K 9K 78643K 17 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 43 0 41 1 0 1 1 0 8 0 rtentry 112 112 0 72 2 0 2 2 0 8 0 unpcb 120 390 0 379 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 694 0 694 1 1 0 1 0 8 0 tcpcb 544 201 0 196 2 1 1 2 0 8 0 inpcb 296 1520 0 1506 3 1 2 2 0 8 0 rttmr 72 6 0 6 3 2 1 1 0 8 1 nd6 48 29 0 26 1 0 1 1 0 8 0 pkpcb 40 10 0 10 3 2 1 1 0 8 1 pffrag 232 3 0 2 2 1 1 1 0 482 0 pffrnode 88 3 0 2 2 1 1 1 0 8 0 pffrent 40 49 0 48 2 1 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 pfrktable 1344 42 0 38 4 3 1 1 0 8 0 pfstitem 24 45 0 19 1 0 1 1 0 8 0 pfstkey 112 45 0 19 2 0 2 2 0 8 0 pfstate 328 45 0 19 3 0 3 3 0 8 0 pfrule 1360 42 0 27 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 397 0 241 14 2 12 13 0 8 0 art_table 32 398 0 241 2 0 2 2 0 8 0 art_node 16 111 0 74 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 8 1 0 1 1 0 8 0 semupl 112 5 0 5 2 2 0 1 0 8 0 semapl 112 126 0 116 1 0 1 1 0 8 0 shmpl 112 36 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 10 3 1 2 3 0 8 0 dino2pl 256 2239 0 835 89 0 89 89 0 8 0 ffsino 272 2239 0 835 96 1 95 95 0 8 0 nchpl 144 3347 0 1733 62 2 60 61 0 8 0 uvmvnodes 72 2537 0 0 47 0 47 47 0 8 0 vnodes 208 2537 0 0 134 0 134 134 0 8 0 namei 1024 9249 0 9249 3 2 1 1 0 8 1 percpumem 16 37 0 5 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 pfiaddrpl 120 13 0 8 4 3 1 1 0 8 0 scxspl 192 9728 0 9728 9 8 1 7 0 8 1 plimitpl 152 48 0 40 1 0 1 1 0 8 0 sigapl 424 882 0 849 4 0 4 4 0 8 0 futexpl 56 9887 0 9885 2 1 1 1 0 8 0 knotepl 112 81 0 62 1 0 1 1 0 8 0 kqueuepl 144 60 0 58 1 0 1 1 0 8 0 pipepl 304 151 0 141 3 1 2 2 0 8 1 fdescpl 496 866 0 849 3 0 3 3 0 8 0 filepl 152 5216 0 5107 8 3 5 6 0 8 0 lockfpl 104 131 0 130 1 0 1 1 0 8 0 lockfspl 48 48 0 47 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 34 0 23 1 0 1 1 0 8 0 ucredpl 96 424 0 415 1 0 1 1 0 8 0 zombiepl 144 849 0 849 2 1 1 1 0 8 1 processpl 992 882 0 849 7 2 5 5 0 8 0 procpl 624 2334 0 2289 4 0 4 4 0 8 0 sosppl 128 14 0 14 2 1 1 1 0 8 1 sockpl 400 1970 0 1943 8 4 4 6 0 8 1 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 204 0 0 25 0 25 25 0 8 0 mtagpl 96 122 0 0 3 0 3 3 0 8 0 mbufpl 256 499 0 0 28 0 28 28 0 8 0 bufpl 280 4417 0 133 306 0 306 306 0 8 0 anonpl 16 91374 0 74030 80 8 72 75 0 124 2 amapchunkpl 152 4865 0 4713 19 11 8 13 0 158 1 amappl16 192 3477 0 2541 50 1 49 49 0 8 2 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 344 0 337 1 0 1 1 0 8 0 amappl13 168 32 0 28 1 0 1 1 0 8 0 amappl12 160 16 0 12 1 0 1 1 0 8 0 amappl11 152 686 0 667 1 0 1 1 0 8 0 amappl10 144 19 0 11 1 0 1 1 0 8 0 amappl9 136 388 0 387 1 0 1 1 0 8 0 amappl8 128 364 0 332 2 0 2 2 0 8 0 amappl7 120 117 0 107 1 0 1 1 0 8 0 amappl6 112 656 0 649 1 0 1 1 0 8 0 amappl5 104 443 0 428 1 0 1 1 0 8 0 amappl4 96 813 0 779 1 0 1 1 0 8 0 amappl3 88 130 0 125 1 0 1 1 0 8 0 amappl2 80 5963 0 5886 2 0 2 2 0 8 0 amappl1 72 35314 0 34836 23 13 10 18 0 8 0 amappl 80 2591 0 2544 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 38 0 3 1 0 1 1 0 8 0 uaddrrnd 24 868 0 849 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 868 0 849 1 0 1 1 0 8 0 vmmpekpl 168 10051 0 10016 2 0 2 2 0 8 0 vmmpepl 168 117709 0 115460 128 27 101 118 0 357 3 vmsppl 368 867 0 849 2 0 2 2 0 8 0 pdppl 4096 1743 0 1700 7 1 6 6 0 8 0 pvpl 32 294502 0 273822 190 15 175 181 0 265 8 pmappl 232 867 0 849 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 291 0 15 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(ffffffff823f1b68) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68b320,0,ffff800020e1e198,0,0,ffff800020e1e0a4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80757f7098,ffff800020e1e198,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1e198,0,ffff800020e1e280) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1e230,ffff800020e1e280) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e300) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e300) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8780, count: -8 ddb{0}> machine ddbcpu 1