panic: sbdrop Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82408f66) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80002099e058,ffff80002099e0e0,80) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80002099e058,ffff80002099e0e0) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80002099e058,ffff80002099e0e0) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8064f69640) at sorflush+0x14b sys/kern/uipc_socket.c:1137 sofree(fffffd8064f69640,42) at sofree+0x147 sys/kern/uipc_socket.c:263 soclose(fffffd8064f69640,0) at soclose+0x268 sys/kern/uipc_socket.c:344 soo_close(fffffd8057808cb8,ffff80001d6cd9e0) at soo_close+0x40 fdrop(fffffd8057808cb8,ffff80001d6cd9e0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8057808cb8,ffff80001d6cd9e0) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6cd9e0) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6cd9e0,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6cd9e0,ffff80002099e4b0,ffff80002099e500) at sys_exit+0x16 sys/kern/kern_exit.c:95 end trace frame: 0xffff80002099e570, count: 0 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic sbdrop ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82408f66) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80002099e058,ffff80002099e0e0,80) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80002099e058,ffff80002099e0e0) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80002099e058,ffff80002099e0e0) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8064f69640) at sorflush+0x14b sys/kern/uipc_socket.c:1137 sofree(fffffd8064f69640,42) at sofree+0x147 sys/kern/uipc_socket.c:263 soclose(fffffd8064f69640,0) at soclose+0x268 sys/kern/uipc_socket.c:344 soo_close(fffffd8057808cb8,ffff80001d6cd9e0) at soo_close+0x40 fdrop(fffffd8057808cb8,ffff80001d6cd9e0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8057808cb8,ffff80001d6cd9e0) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6cd9e0) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6cd9e0,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6cd9e0,ffff80002099e4b0,ffff80002099e500) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80002099e580) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea100, count: -16 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002099dea0 rbx 0xffff80002099df50 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81ec181f kprintf+0x15f r9 0x1 r10 0x2 r11 0xdd9d490726c63dda r12 0x3000000008 r13 0xffff80002099deb0 r14 0x100 r15 0x1 rip 0xffffffff818a5a48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002099de90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=163404 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=72, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6cdc50,0xffffffff8284e5f8 process=0xffff800020a34030 user=0xffff800020999000, vmspace=0xfffffd806bc0a660 estcpu=22, cpticks=1, pctcpu=0.5 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 79708 438473 0 0 3 0x14280 nfsidl nfsio 85205 92328 0 0 3 0x14280 nfsidl nfsio 97526 11488 0 0 3 0x14280 nfsidl nfsio 24832 303299 0 0 3 0x14280 nfsidl nfsio 6098 374069 0 0 3 0x14280 nfsidl nfsio 48596 455329 0 0 3 0x14280 nfsidl nfsio 58445 477550 0 0 3 0x14280 nfsidl nfsio 15097 299549 0 0 3 0x14280 nfsidl nfsio 75902 185816 0 0 3 0x14280 nfsidl nfsio 41336 512661 0 0 3 0x14280 nfsidl nfsio 15347 70452 0 0 3 0x14280 nfsidl nfsio 86489 361703 0 0 3 0x14280 nfsidl nfsio 32976 380955 0 0 3 0x14280 nfsidl nfsio 53913 49740 0 0 3 0x14280 nfsidl nfsio 80965 124952 0 0 3 0x14280 nfsidl nfsio 91276 48711 0 0 3 0x14280 nfsidl nfsio 81127 493291 0 0 3 0x14280 nfsidl nfsio 85563 278479 0 0 3 0x14280 nfsidl nfsio 41793 346723 0 0 3 0x14280 nfsidl nfsio 13295 127387 0 0 3 0x14280 nfsidl nfsio 57788 57907 0 0 3 0x14200 bored sosplice 51165 195735 67259 0 3 0x82 nanosleep syz-executor.1 29981 191173 67259 0 3 0x82 piperd syz-executor.0 67259 9874 19424 0 3 0x82 thrsleep syz-fuzzer 67259 103656 19424 0 3 0x4000082 thrsleep syz-fuzzer 67259 216130 19424 0 3 0x4000082 kqread syz-fuzzer 67259 220638 19424 0 3 0x4000082 thrsleep syz-fuzzer 67259 488002 19424 0 3 0x4000082 thrsleep syz-fuzzer 67259 17623 19424 0 3 0x4000082 thrsleep syz-fuzzer 67259 124073 19424 0 3 0x4000082 thrsleep syz-fuzzer 67259 440225 19424 0 3 0x4000082 thrsleep syz-fuzzer 19424 250802 40888 0 3 0x10008a pause ksh 40888 515445 1227 0 3 0x92 select sshd 51530 374892 1 0 3 0x100083 ttyin getty 1227 166069 1 0 3 0x80 select sshd 62850 5135 78593 73 3 0x100090 kqread syslogd 78593 393782 1 0 3 0x100082 netio syslogd 9001 237828 1 77 3 0x100090 poll dhclient 26176 151366 1 0 3 0x80 poll dhclient 80523 141908 0 0 3 0x14200 bored smr 63363 314768 0 0 2 0x14200 zerothread 80098 295569 0 0 3 0x14200 aiodoned aiodoned 70104 396621 0 0 3 0x14200 syncer update 16657 32452 0 0 3 0x14200 cleaner cleaner 97159 425682 0 0 3 0x14200 reaper reaper 4783 118892 0 0 3 0x14200 pgdaemon pagedaemon 89392 234289 0 0 3 0x14200 bored crynlk 97744 290704 0 0 3 0x14200 bored crypto 9572 70457 0 0 3 0x40014200 acpi0 acpi0 79548 173840 0 0 3 0x14200 bored softnet 9817 206883 0 0 3 0x14200 bored systqmp 22334 170696 0 0 2 0x14200 systq 41156 89160 0 0 3 0x40014200 bored softclock 34808 189248 0 0 3 0x40014200 idle0 1 181540 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9508 6415K 7305K 78643K 11910 0 pcb 13 8K 8K 78643K 85 0 rtable 117 5K 7K 78643K 374 0 ifaddr 72 14K 14K 78643K 143 0 counters 21 16K 16K 78643K 23 0 ioctlops 0 0K 4K 78643K 77 0 iov 0 0K 16K 78643K 52 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1573 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 0K 0K 78643K 2 0 sem 12 1K 1K 78643K 30 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 343 0 sigio 0 0K 0K 78643K 2 0 proc 49 38K 63K 78643K 375 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 37 0 in_multi 43 2K 3K 78643K 119 0 ether_multi 1 0K 0K 78643K 12 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 190 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 139 40K 43K 78643K 1638 0 UVM aobj 18 4K 4K 78643K 20 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 50 0 NDP 11 0K 0K 78643K 26 0 temp 110 3856K 3920K 78643K 19732 0 kqueue 4 6K 12K 78643K 32 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 0 1 0 1 1 0 8 0 rtpcb 80 43 0 41 1 0 1 1 0 8 0 rtentry 112 64 0 19 2 0 2 2 0 8 0 unpcb 120 187 0 174 1 0 1 1 0 8 0 syncache 264 7 0 7 3 2 1 1 0 8 1 tcpqe 32 297 0 297 1 1 0 1 0 8 0 tcpcb 544 137 0 133 1 0 1 1 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 90 0 90 1 1 0 1 0 8 0 inpcb 296 505 0 496 2 0 2 2 0 8 1 nd6 48 16 0 12 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 0 1 1 0 8 1 pfstscr 40 4 0 4 1 1 0 1 0 8 0 pfrktable 1344 47 0 45 1 0 1 1 0 8 0 pftag 88 9 0 8 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 8 0 6 2 1 1 1 0 8 0 pfstate 328 4 0 3 2 1 1 1 0 8 0 pfrule 1360 16 0 14 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 239 0 55 13 0 13 13 0 8 0 art_table 32 240 0 55 2 0 2 2 0 8 0 art_node 16 63 0 21 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 11 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 26 0 16 1 0 1 1 0 8 0 shmpl 112 18 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1895 0 498 88 0 88 88 0 8 0 ffsino 240 1895 0 498 83 0 83 83 0 8 0 nchpl 144 2582 0 990 60 0 60 60 0 8 0 uvmvnodes 72 2238 0 0 41 0 41 41 0 8 0 vnodes 208 2238 0 0 118 0 118 118 0 8 0 namei 1024 7029 0 7029 1 0 1 1 0 8 1 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 528 2 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 14 0 12 1 0 1 1 0 8 0 scsiplug 64 2 0 2 2 1 1 1 0 8 1 scxspl 192 7536 0 7536 1 0 1 1 0 8 1 plimitpl 152 36 0 29 1 0 1 1 0 8 0 sigapl 424 552 0 503 6 0 6 6 0 8 0 futexpl 56 7834 0 7834 1 0 1 1 0 8 1 knotepl 112 105 0 86 1 0 1 1 0 8 0 kqueuepl 144 56 0 53 1 0 1 1 0 8 0 pipepl 272 111 0 101 1 0 1 1 0 8 0 fdescpl 432 515 0 501 2 0 2 2 0 8 0 filepl 120 3270 0 3168 4 0 4 4 0 8 0 lockfpl 104 495 0 492 1 0 1 1 0 8 0 lockfspl 48 213 0 210 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 253 0 245 1 0 1 1 0 8 0 zombiepl 144 504 0 503 1 0 1 1 0 8 0 processpl 920 552 0 503 7 0 7 7 0 8 0 procpl 624 938 0 882 5 0 5 5 0 8 0 sosppl 128 8 0 8 2 1 1 1 0 8 1 sockpl 400 735 0 712 4 0 4 4 0 8 1 mcl64k 65536 36 0 36 1 0 1 1 0 8 1 mcl16k 16384 7 0 7 1 0 1 1 0 8 1 mcl12k 12288 12 0 12 1 0 1 1 0 8 1 mcl9k 9216 3 0 3 2 1 1 1 0 8 1 mcl8k 8192 13 0 13 1 0 1 1 0 8 1 mcl4k 4096 48 0 48 2 1 1 1 0 8 1 mcl2k2 2112 3 0 3 1 1 0 1 0 8 0 mcl2k 2048 76900 0 76837 23 14 9 17 0 8 0 mtagpl 96 173 0 7 6 1 5 5 0 8 0 mbufpl 256 125048 0 124530 37 4 33 33 0 8 0 bufpl 280 4027 0 130 279 0 279 279 0 8 0 anonpl 16 63559 0 48135 84 7 77 82 0 107 10 amapchunkpl 152 2479 0 2347 21 3 18 19 0 158 12 amappl16 192 2451 0 1536 57 8 49 57 0 8 3 amappl15 184 163 0 161 1 0 1 1 0 8 0 amappl14 176 170 0 164 1 0 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 12 0 8 1 0 1 1 0 8 0 amappl11 152 195 0 184 1 0 1 1 0 8 0 amappl10 144 175 0 170 1 0 1 1 0 8 0 amappl9 136 366 0 365 1 0 1 1 0 8 0 amappl8 128 330 0 281 2 0 2 2 0 8 0 amappl7 120 269 0 256 1 0 1 1 0 8 0 amappl6 112 20 0 18 1 0 1 1 0 8 0 amappl5 104 321 0 312 1 0 1 1 0 8 0 amappl4 96 576 0 546 1 0 1 1 0 8 0 amappl3 88 266 0 259 1 0 1 1 0 8 0 amappl2 80 3309 0 3242 2 0 2 2 0 8 0 amappl1 72 18227 0 17803 23 14 9 17 0 8 0 amappl 80 1140 0 1097 2 0 2 2 0 84 1 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 19 0 2 1 0 1 1 0 8 0 uaddrrnd 24 517 0 502 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 517 0 502 1 0 1 1 0 8 0 vmmpekpl 168 7147 0 7116 2 0 2 2 0 8 0 vmmpepl 168 67453 0 65436 115 18 97 110 0 357 8 vmsppl 272 516 0 502 3 1 2 2 0 8 1 pdppl 4096 1040 0 1005 6 1 5 6 0 8 0 pvpl 32 196214 0 177723 193 5 188 193 0 265 29 pmappl 200 516 0 502 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 277 0 23 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82408f66) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80002099e058,ffff80002099e0e0,80) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80002099e058,ffff80002099e0e0) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80002099e058,ffff80002099e0e0) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8064f69640) at sorflush+0x14b sys/kern/uipc_socket.c:1137 sofree(fffffd8064f69640,42) at sofree+0x147 sys/kern/uipc_socket.c:263 soclose(fffffd8064f69640,0) at soclose+0x268 sys/kern/uipc_socket.c:344 soo_close(fffffd8057808cb8,ffff80001d6cd9e0) at soo_close+0x40 fdrop(fffffd8057808cb8,ffff80001d6cd9e0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8057808cb8,ffff80001d6cd9e0) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6cd9e0) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6cd9e0,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6cd9e0,ffff80002099e4b0,ffff80002099e500) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80002099e580) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea100, count: -16 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82408f66) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80002099e058,ffff80002099e0e0,80) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80002099e058,ffff80002099e0e0) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80002099e058,ffff80002099e0e0) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8064f69640) at sorflush+0x14b sys/kern/uipc_socket.c:1137 sofree(fffffd8064f69640,42) at sofree+0x147 sys/kern/uipc_socket.c:263 soclose(fffffd8064f69640,0) at soclose+0x268 sys/kern/uipc_socket.c:344 soo_close(fffffd8057808cb8,ffff80001d6cd9e0) at soo_close+0x40 fdrop(fffffd8057808cb8,ffff80001d6cd9e0) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd8057808cb8,ffff80001d6cd9e0) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6cd9e0) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6cd9e0,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6cd9e0,ffff80002099e4b0,ffff80002099e500) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80002099e580) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea100, count: -16