panic: receive 1: so 0xfffffd806f684000, so_type 3, sb_cc 1984 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 172819 76909 0 0x2 0x4000480 1 syz-fuzzer *514992 60984 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f2cd8) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f684000,0,ffff800020e1ea38,0,0,ffff800020e1e944) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80747f77b8,ffff800020e1ea38,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd118,6,ffff800020e1ea38,0,ffff800020e1eb20) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd118,ffff800020e1ead0,ffff800020e1eb20) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eba0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eba0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3ca0, 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 0xfffffd806f684000, so_type 3, sb_cc 1984 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f2cd8) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f684000,0,ffff800020e1ea38,0,0,ffff800020e1e944) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80747f77b8,ffff800020e1ea38,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd118,6,ffff800020e1ea38,0,ffff800020e1eb20) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd118,ffff800020e1ead0,ffff800020e1eb20) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eba0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eba0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3ca0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e780 rbx 0xffff800020e1e830 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81e9c95f kprintf+0x16f r9 0x1 r10 0x2 r11 0xa03156b69e86bc18 r12 0x3000000008 r13 0xffff800020e1e790 r14 0x100 r15 0x1 rip 0xffffffff815638a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e770 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=514992 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc278,0xffff800020ddd398 process=0xffff800020df07d0 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 53793 78766 22885 0 2 0 syz-executor.0 53793 476019 22885 0 2 0x4000000 syz-executor.0 16501 109765 0 0 3 0x14200 bored sosplice 54340 209203 0 0 3 0x14280 nfsidl nfsio 45294 25768 0 0 3 0x14280 nfsidl nfsio 55542 168003 0 0 3 0x14280 nfsidl nfsio 34021 173399 0 0 3 0x14280 nfsidl nfsio 90302 191838 0 0 3 0x14280 nfsidl nfsio 5081 231760 0 0 3 0x14280 nfsidl nfsio 55426 506391 0 0 3 0x14280 nfsidl nfsio 53773 463828 0 0 3 0x14280 nfsidl nfsio 1156 53016 0 0 3 0x14280 nfsidl nfsio 15652 395887 0 0 3 0x14280 nfsidl nfsio 12586 35466 0 0 3 0x14280 nfsidl nfsio 21730 310111 0 0 3 0x14280 nfsidl nfsio 67368 352434 0 0 3 0x14280 nfsidl nfsio 4157 286143 0 0 3 0x14280 nfsidl nfsio 64496 2139 0 0 3 0x14280 nfsidl nfsio 50546 336810 0 0 3 0x14280 nfsidl nfsio 20245 212449 0 0 3 0x14280 nfsidl nfsio 93161 61964 0 0 3 0x14280 nfsidl nfsio 74718 49770 0 0 3 0x14280 nfsidl nfsio 59673 51330 0 0 3 0x14280 nfsidl nfsio 72180 119778 76909 0 3 0x82 piperd syz-executor.1 22885 387280 76909 0 2 0x482 syz-executor.0 76909 20688 87205 0 3 0x82 thrsleep syz-fuzzer 76909 272226 87205 0 2 0x4000002 syz-fuzzer 76909 69483 87205 0 3 0x4000082 thrsleep syz-fuzzer 76909 130302 87205 0 3 0x4000082 thrsleep syz-fuzzer 76909 494186 87205 0 3 0x4000082 thrsleep syz-fuzzer 76909 478271 87205 0 3 0x4000082 thrsleep syz-fuzzer 76909 19270 87205 0 3 0x4000082 thrsleep syz-fuzzer 76909 284977 87205 0 3 0x4000082 thrsleep syz-fuzzer 76909 291537 87205 0 2 0x4000002 syz-fuzzer 76909 172819 87205 0 7 0x4000482 syz-fuzzer 87205 447862 1462 0 3 0x10008a pause ksh 1462 215925 44360 0 3 0x92 select sshd 6273 204987 1 0 3 0x100083 ttyopn getty 44360 512611 1 0 3 0x80 select sshd 68588 369469 6304 74 3 0x100092 bpf pflogd 6304 341204 1 0 3 0x80 netio pflogd 75338 52989 67033 73 3 0x100090 kqread syslogd 67033 394074 1 0 3 0x100082 netio syslogd 87210 380312 1 77 3 0x100090 poll dhclient *60984 514992 1 0 7 0 dhclient 16819 483624 0 0 3 0x14200 bored smr 44227 43559 0 0 3 0x14200 pgzero zerothread 83333 22329 0 0 3 0x14200 aiodoned aiodoned 52101 164004 0 0 3 0x14200 syncer update 18949 116894 0 0 3 0x14200 cleaner cleaner 85566 342404 0 0 3 0x14200 reaper reaper 83696 517471 0 0 3 0x14200 pgdaemon pagedaemon 32539 112373 0 0 3 0x14200 bored crynlk 5263 374798 0 0 3 0x14200 bored crypto 71556 109182 0 0 3 0x40014200 acpi0 acpi0 24069 396353 0 0 3 0x40014200 idle1 88293 467165 0 0 3 0x14200 bored softnet 78012 488455 0 0 3 0x14200 bored systqmp 97414 227846 0 0 3 0x14200 bored systq 29210 314159 0 0 2 0x40014200 softclock 40852 194259 0 0 3 0x40014200 idle0 1 510381 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 60984 (dhclient) thread 0xffff800020ddd118 (514992) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82926118) #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 9549 6739K 6796K 78643K 11503 0 pcb 13 8K 8K 78643K 75 0 rtable 113 5K 6K 78643K 363 0 ifaddr 67 13K 13K 78643K 128 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 47 0 ioctlops 0 0K 4K 78643K 1555 0 iov 0 0K 12K 78643K 20 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1442 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 118 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 494 0 sigio 0 0K 0K 78643K 48 0 proc 62 63K 95K 78643K 488 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 31 0 in_multi 33 2K 2K 78643K 139 0 ether_multi 1 0K 0K 78643K 9 0 mrt 1 0K 0K 78643K 9 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 225 0 pfkey data 0 0K 0K 78643K 4 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 134 72K 88K 78643K 2547 0 UVM aobj 12 2K 2K 78643K 15 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 42 0 NDP 11 0K 0K 78643K 33 0 temp 111 3863K 3929K 78643K 5708 0 kqueue 10 14K 18K 78643K 19 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 44 0 42 1 0 1 1 0 8 0 rtentry 112 88 0 44 2 0 2 2 0 8 0 unpcb 120 285 0 275 1 0 1 1 0 8 0 syncache 264 8 0 8 3 3 0 1 0 8 0 tcpqe 32 244 0 244 1 1 0 1 0 8 0 tcpcb 544 190 0 186 2 1 1 2 0 8 0 inpcb 296 1137 0 1130 2 0 2 2 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 28 0 22 1 0 1 1 0 8 0 pkpcb 40 9 0 9 3 3 0 1 0 8 0 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 8 0 7 1 0 1 1 0 482 0 pffrnode 88 8 0 7 1 0 1 1 0 8 0 pffrent 40 110 0 109 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 pfrktable 1344 17 0 15 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 22 0 9 1 0 1 1 0 8 0 pfstkey 112 24 0 11 1 0 1 1 0 8 0 pfstate 328 23 0 10 2 0 2 2 0 8 0 pfrule 1360 33 0 23 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 309 0 135 15 2 13 15 0 8 2 art_table 32 310 0 135 2 0 2 2 0 8 0 art_node 16 85 0 45 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 12 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 108 0 98 1 0 1 1 0 8 0 shmpl 112 12 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1981 0 573 89 0 89 89 0 8 0 ffsino 272 1981 0 573 96 1 95 95 0 8 0 nchpl 144 2849 0 1238 60 0 60 60 0 8 0 uvmvnodes 72 2221 0 0 41 0 41 41 0 8 0 vnodes 208 2221 0 0 117 0 117 117 0 8 0 namei 1024 7630 0 7630 2 1 1 1 0 8 1 percpumem 16 34 0 2 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 6 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 13 0 8 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 8720 0 8720 10 9 1 7 0 8 1 plimitpl 152 43 0 35 1 0 1 1 0 8 0 sigapl 424 730 0 678 6 0 6 6 0 8 0 futexpl 56 7185 0 7185 1 0 1 1 0 8 1 knotepl 112 81 0 62 1 0 1 1 0 8 0 kqueuepl 144 56 0 50 1 0 1 1 0 8 0 pipepl 304 136 0 126 2 1 1 2 0 8 0 fdescpl 496 694 0 678 3 0 3 3 0 8 0 filepl 152 4087 0 3985 7 2 5 6 0 8 1 lockfpl 104 82 0 81 1 0 1 1 0 8 0 lockfspl 48 26 0 25 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 28 0 17 1 0 1 1 0 8 0 ucredpl 96 311 0 302 1 0 1 1 0 8 0 zombiepl 144 678 0 678 2 1 1 1 0 8 1 processpl 992 730 0 678 8 1 7 7 0 8 0 procpl 624 1773 0 1711 6 0 6 6 0 8 1 sosppl 128 3 0 3 2 2 0 1 0 8 0 sockpl 400 1494 0 1475 7 4 3 5 0 8 1 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 211 0 0 26 0 26 26 0 8 0 mtagpl 96 47 0 0 2 0 2 2 0 8 0 mbufpl 256 509 0 0 29 0 29 29 0 8 0 bufpl 280 4356 0 133 302 0 302 302 0 8 0 anonpl 16 82798 0 65657 89 3 86 86 0 124 16 amapchunkpl 152 3988 0 3829 20 6 14 20 0 158 6 amappl16 192 3032 0 2115 64 10 54 58 0 8 8 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 24 0 19 1 0 1 1 0 8 0 amappl13 168 490 0 484 1 0 1 1 0 8 0 amappl12 160 473 0 465 1 0 1 1 0 8 0 amappl11 152 51 0 36 1 0 1 1 0 8 0 amappl10 144 18 0 12 1 0 1 1 0 8 0 amappl9 136 392 0 390 1 0 1 1 0 8 0 amappl8 128 353 0 318 2 0 2 2 0 8 0 amappl7 120 120 0 108 1 0 1 1 0 8 0 amappl6 112 23 0 20 2 1 1 1 0 8 0 amappl5 104 359 0 343 1 0 1 1 0 8 0 amappl4 96 724 0 694 1 0 1 1 0 8 0 amappl3 88 359 0 352 1 0 1 1 0 8 0 amappl2 80 4840 0 4770 2 0 2 2 0 8 0 amappl1 72 29031 0 28588 23 13 10 18 0 8 0 amappl 80 2015 0 1967 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 14 0 3 1 0 1 1 0 8 0 uaddrrnd 24 700 0 680 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 700 0 680 1 0 1 1 0 8 0 vmmpekpl 168 9043 0 9003 2 0 2 2 0 8 0 vmmpepl 168 95226 0 93126 137 28 109 118 0 357 13 vmsppl 368 699 0 680 2 0 2 2 0 8 0 pdppl 4096 1407 0 1364 7 1 6 6 0 8 0 pvpl 32 257193 0 237059 200 2 198 200 0 265 33 pmappl 232 699 0 680 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 294 0 13 9 0 9 9 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(ffffffff823f2cd8) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f684000,0,ffff800020e1ea38,0,0,ffff800020e1e944) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80747f77b8,ffff800020e1ea38,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd118,6,ffff800020e1ea38,0,ffff800020e1eb20) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd118,ffff800020e1ead0,ffff800020e1eb20) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eba0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eba0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3ca0, count: -8 ddb{0}> machine ddbcpu 1