panic: receive 1: so 0xfffffd806f683000, so_type 3, sb_cc 80 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 323576 48268 0 0x2 0x4000000 1 syz-fuzzer *436798 53793 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f4f61) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f683000,0,ffff800020e1e498,0,0,ffff800020e1e3a4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8074bf7260,ffff800020e1e498,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e498,0,ffff800020e1e580) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e530,ffff800020e1e580) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e600) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e600) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff9a80, 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 0xfffffd806f683000, so_type 3, sb_cc 80 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f4f61) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f683000,0,ffff800020e1e498,0,0,ffff800020e1e3a4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8074bf7260,ffff800020e1e498,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e498,0,ffff800020e1e580) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e530,ffff800020e1e580) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e600) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e600) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff9a80, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e1e0 rbx 0xffff800020e1e290 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81c9288f kprintf+0x16f r9 0x1 r10 0x2 r11 0xb372af6102257fc7 r12 0x3000000008 r13 0xffff800020e1e1f0 r14 0x100 r15 0x1 rip 0xffffffff82161af8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e1d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=436798 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc758,0xffff800020ddd128 process=0xffff800020df0010 user=0xffff800020e19000, vmspace=0xfffffd807efff450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 6014 521641 36183 0 2 0 syz-executor.0 6014 448792 36183 0 3 0x4000080 fsleep syz-executor.0 48961 49064 1 0 3 0x100083 ttyin getty 36183 203719 48268 0 2 0x482 syz-executor.0 90344 339622 0 0 3 0x14200 bored sosplice 52823 7690 0 0 3 0x14280 nfsidl nfsio 42288 206612 0 0 3 0x14280 nfsidl nfsio 68005 263041 0 0 3 0x14280 nfsidl nfsio 32062 5464 0 0 3 0x14280 nfsidl nfsio 35455 448814 0 0 3 0x14280 nfsidl nfsio 57546 522370 0 0 3 0x14280 nfsidl nfsio 16554 455371 0 0 3 0x14280 nfsidl nfsio 54415 523564 0 0 3 0x14280 nfsidl nfsio 70948 124956 0 0 3 0x14280 nfsidl nfsio 42377 244334 0 0 3 0x14280 nfsidl nfsio 98481 69507 0 0 3 0x14280 nfsidl nfsio 38100 298509 0 0 3 0x14280 nfsidl nfsio 23882 94416 0 0 3 0x14280 nfsidl nfsio 79410 41287 0 0 3 0x14280 nfsidl nfsio 17009 504265 0 0 3 0x14280 nfsidl nfsio 25512 464062 0 0 3 0x14280 nfsidl nfsio 48884 106686 0 0 3 0x14280 nfsidl nfsio 48802 362536 0 0 3 0x14280 nfsidl nfsio 99082 170003 0 0 3 0x14280 nfsidl nfsio 73904 189881 0 0 3 0x14280 nfsidl nfsio 15065 158395 48268 0 3 0x82 piperd syz-executor.1 48268 28446 6295 0 3 0x82 thrsleep syz-fuzzer 48268 323576 6295 0 7 0x4000002 syz-fuzzer 48268 482175 6295 0 3 0x4000082 thrsleep syz-fuzzer 48268 514114 6295 0 2 0x4000002 syz-fuzzer 48268 387287 6295 0 3 0x4000082 thrsleep syz-fuzzer 48268 286673 6295 0 3 0x4000082 kqread syz-fuzzer 48268 454726 6295 0 3 0x4000082 thrsleep syz-fuzzer 48268 287301 6295 0 3 0x4000082 thrsleep syz-fuzzer 48268 473217 6295 0 3 0x4000082 thrsleep syz-fuzzer 48268 431943 6295 0 3 0x4000082 thrsleep syz-fuzzer 6295 210853 14548 0 3 0x10008a pause ksh 14548 207694 4683 0 3 0x92 select sshd 4683 433292 1 0 3 0x80 select sshd 56543 140578 80533 74 3 0x100092 bpf pflogd 80533 128616 1 0 3 0x80 netio pflogd 31885 337372 75820 73 3 0x100090 kqread syslogd 75820 441684 1 0 3 0x100082 netio syslogd 52409 368382 1 77 3 0x100090 poll dhclient *53793 436798 1 0 7 0 dhclient 5323 372099 0 0 3 0x14200 bored smr 58809 348713 0 0 2 0x14200 zerothread 44049 261856 0 0 3 0x14200 aiodoned aiodoned 66948 331329 0 0 3 0x14200 syncer update 74615 425216 0 0 3 0x14200 cleaner cleaner 16181 333822 0 0 3 0x14200 reaper reaper 54503 178484 0 0 3 0x14200 pgdaemon pagedaemon 508 79695 0 0 3 0x14200 bored crynlk 32918 91288 0 0 3 0x14200 bored crypto 40605 112919 0 0 3 0x40014200 acpi0 acpi0 62442 29325 0 0 3 0x40014200 idle1 15211 204896 0 0 3 0x14200 bored softnet 69682 419641 0 0 3 0x14200 bored systqmp 36855 52757 0 0 3 0x14200 bored systq 39189 352714 0 0 2 0x40014200 softclock 50959 443821 0 0 3 0x40014200 idle0 1 334554 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 53793 (dhclient) thread 0xffff800020ddcea8 (436798) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8291af60) #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 6487K 7129K 78643K 14399 0 pcb 13 8K 8K 78643K 129 0 rtable 111 5K 5K 78643K 815 0 ifaddr 102 21K 21K 78643K 474 0 sysctl 2 0K 0K 78643K 2 0 counters 45 34K 34K 78643K 99 0 ioctlops 0 0K 4K 78643K 1636 0 iov 0 0K 16K 78643K 584 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 2190 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 21 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 260 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 1400 0 sigio 0 0K 0K 78643K 11 0 proc 63 63K 95K 78643K 580 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 323 0 in_multi 118 5K 5K 78643K 697 0 ether_multi 1 0K 0K 78643K 24 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 341 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 140 153K 153K 78643K 5350 0 UVM aobj 45 4K 5K 78643K 51 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 91 0 NDP 14 0K 0K 78643K 189 0 temp 143 3865K 3928K 78643K 15217 0 kqueue 4 6K 8K 78643K 28 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 9 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 48 0 46 1 0 1 1 0 8 0 rtentry 112 233 0 191 2 0 2 2 0 8 0 unpcb 120 481 0 468 1 0 1 1 0 8 0 syncache 264 18 0 18 7 7 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 544 408 0 404 1 0 1 1 0 8 0 inpcb 296 1674 0 1667 9 7 2 2 0 8 1 nd6 48 157 0 153 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1136 3 0 3 1 1 0 1 0 8 0 pffrag 232 17 0 17 6 6 0 1 0 482 0 pffrnode 88 17 0 17 6 6 0 1 0 8 0 pffrent 40 217 0 217 6 6 0 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 3 0 1 1 0 1 1 0 8 0 pfstitem 24 91 0 64 1 0 1 1 0 8 0 pfstkey 112 91 0 64 2 0 2 2 0 8 0 pfstate 328 91 0 64 5 1 4 4 0 8 0 pfrule 1360 22 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 449 0 265 16 3 13 14 0 8 0 art_table 32 451 0 265 2 0 2 2 0 8 0 art_node 16 232 0 193 1 0 1 1 0 8 0 sysvmsgpl 40 53 0 13 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 254 0 244 1 0 1 1 0 8 0 shmpl 112 48 0 6 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3344 0 1941 89 0 89 89 0 8 0 ffsino 272 3344 0 1941 94 0 94 94 0 8 0 nchpl 144 5573 0 3975 60 0 60 60 0 8 0 uvmvnodes 72 4223 0 0 77 0 77 77 0 8 0 vnodes 208 4223 0 0 223 0 223 223 0 8 0 namei 1024 15477 0 15477 4 3 1 1 0 8 1 percpumem 16 60 0 27 1 0 1 1 0 8 0 vcpupl 1984 12 0 0 2 0 2 2 0 8 0 vmpool 560 15 0 3 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 scsiplug 64 4 0 4 2 2 0 1 0 8 0 scxspl 192 16055 0 16055 14 13 1 7 0 8 1 plimitpl 152 80 0 72 1 0 1 1 0 8 0 sigapl 424 1634 0 1582 6 0 6 6 0 8 0 futexpl 56 24815 0 24814 3 2 1 1 0 8 0 knotepl 112 101 0 81 1 0 1 1 0 8 0 kqueuepl 144 182 0 179 1 0 1 1 0 8 0 pipepl 304 272 0 262 6 5 1 2 0 8 0 fdescpl 496 1598 0 1582 3 0 3 3 0 8 0 filepl 152 8757 0 8655 8 3 5 6 0 8 1 lockfpl 104 702 0 701 1 0 1 1 0 8 0 lockfspl 48 291 0 290 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 40 0 29 1 0 1 1 0 8 0 ucredpl 96 675 0 666 1 0 1 1 0 8 0 zombiepl 144 1582 0 1582 3 2 1 1 0 8 1 processpl 992 1634 0 1582 7 0 7 7 0 8 0 procpl 624 4315 0 4253 6 0 6 6 0 8 0 sosppl 128 16 0 16 6 6 0 1 0 8 0 sockpl 400 2222 0 2200 10 6 4 4 0 8 1 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 16 0 0 2 0 2 2 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 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 25 0 25 25 0 8 0 mtagpl 96 34 0 0 1 0 1 1 0 8 0 mbufpl 256 515 0 0 24 0 24 24 0 8 0 bufpl 280 6537 0 302 446 0 446 446 0 8 0 anonpl 16 169794 0 151529 113 37 76 89 0 124 0 amapchunkpl 152 9466 0 9289 38 29 9 21 0 158 0 amappl16 192 7934 0 6934 96 45 51 60 0 8 0 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 449 0 442 1 0 1 1 0 8 0 amappl13 168 35 0 32 1 0 1 1 0 8 0 amappl12 160 3 0 2 1 0 1 1 0 8 0 amappl11 152 472 0 457 1 0 1 1 0 8 0 amappl10 144 23 0 19 1 0 1 1 0 8 0 amappl9 136 1331 0 1326 1 0 1 1 0 8 0 amappl8 128 1231 0 1194 2 0 2 2 0 8 0 amappl7 120 123 0 111 1 0 1 1 0 8 0 amappl6 112 445 0 437 1 0 1 1 0 8 0 amappl5 104 1082 0 1064 1 0 1 1 0 8 0 amappl4 96 933 0 904 1 0 1 1 0 8 0 amappl3 88 165 0 158 1 0 1 1 0 8 0 amappl2 80 11791 0 11718 2 0 2 2 0 8 0 amappl1 72 54555 0 54105 23 13 10 18 0 8 0 amappl 80 4575 0 4521 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 50 0 6 1 0 1 1 0 8 0 uaddrrnd 24 1613 0 1585 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1613 0 1585 1 0 1 1 0 8 0 vmmpekpl 168 14595 0 14550 3 0 3 3 0 8 0 vmmpepl 168 210593 0 208380 185 87 98 129 0 357 1 vmsppl 368 1612 0 1585 3 0 3 3 0 8 0 pdppl 4096 3233 0 3182 8 1 7 7 0 8 0 pvpl 32 498097 0 476788 248 68 180 206 0 265 5 pmappl 232 1612 0 1585 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 295 0 16 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(ffffffff823f4f61) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f683000,0,ffff800020e1e498,0,0,ffff800020e1e3a4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8074bf7260,ffff800020e1e498,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e498,0,ffff800020e1e580) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e530,ffff800020e1e580) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e600) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e600) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff9a80, count: -8 ddb{0}> machine ddbcpu 1