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(ffffffff821fe3a1) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800020825cd8,ffff800020825d60,80c) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff800020825cd8,ffff800020825d60) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800020825cd8,ffff800020825d60) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8067e5f7d0) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8067e5f7d0,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8067e5f7d0,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057908d30,ffff80001d729c38) at soo_close+0x40 fdrop(fffffd8057908d30,ffff80001d729c38) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8057908d30,ffff80001d729c38) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d729c38) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d729c38,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d729c38,ffff800020826130,ffff800020826180) at sys_exit+0x16 sys/kern/kern_exit.c:95 end trace frame: 0xffff8000208261f0, 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(ffffffff821fe3a1) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800020825cd8,ffff800020825d60,80c) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff800020825cd8,ffff800020825d60) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800020825cd8,ffff800020825d60) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8067e5f7d0) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8067e5f7d0,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8067e5f7d0,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057908d30,ffff80001d729c38) at soo_close+0x40 fdrop(fffffd8057908d30,ffff80001d729c38) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8057908d30,ffff80001d729c38) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d729c38) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d729c38,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d729c38,ffff800020826130,ffff800020826180) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800020826200) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe83c0, count: -16 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800020825b20 rbx 0xffff800020825bd0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8182317f kprintf+0x15f r9 0x1 r10 0x2 r11 0x796a00bf4531a017 r12 0x3000000008 r13 0xffff800020825b30 r14 0x100 r15 0x1 rip 0xffffffff8186b358 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020825b10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=31377 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff80001d72a118,0xffffffff825c4ac0 process=0xffff8000ffff8ae0 user=0xffff800020821000, vmspace=0xfffffd80580deee8 estcpu=27, cpticks=0, pctcpu=0.6 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 4547 105715 0 0 3 0x14200 bored sosplice 15300 383511 13752 0 3 0x82 piperd syz-executor.0 41648 455192 13752 0 3 0x82 nanosleep syz-executor.1 13752 501023 87172 0 3 0x82 thrsleep syz-fuzzer 13752 319833 87172 0 3 0x4000082 nanosleep syz-fuzzer 13752 270009 87172 0 3 0x4000082 thrsleep syz-fuzzer 13752 303431 87172 0 3 0x4000082 thrsleep syz-fuzzer 13752 514798 87172 0 3 0x4000082 thrsleep syz-fuzzer 13752 472768 87172 0 3 0x4000082 kqread syz-fuzzer 13752 7509 87172 0 3 0x4000082 thrsleep syz-fuzzer 13752 183720 87172 0 3 0x4000082 thrsleep syz-fuzzer 87172 385311 73853 0 3 0x10008a pause ksh 73853 190925 88032 0 3 0x92 select sshd 68050 272298 1 0 3 0x100083 ttyin getty 88032 483337 1 0 3 0x80 select sshd 95281 170063 70616 73 3 0x100090 kqread syslogd 70616 308017 1 0 3 0x100082 netio syslogd 88196 143950 1 77 2 0x100010 dhclient 4993 127510 1 0 3 0x80 poll dhclient 48921 322879 0 0 3 0x14200 bored smr 92958 39525 0 0 3 0x14200 pgzero zerothread 96379 323364 0 0 3 0x14200 aiodoned aiodoned 67746 247655 0 0 3 0x14200 syncer update 6413 1742 0 0 3 0x14200 cleaner cleaner 66235 294922 0 0 3 0x14200 reaper reaper 5607 291402 0 0 3 0x14200 pgdaemon pagedaemon 92677 280522 0 0 3 0x14200 bored crynlk 55383 258687 0 0 3 0x14200 bored crypto 54540 128534 0 0 3 0x40014200 acpi0 acpi0 5826 266815 0 0 3 0x14200 bored softnet 31669 140345 0 0 3 0x14200 bored systqmp 83368 345155 0 0 3 0x14200 bored systq 27916 367154 0 0 3 0x40014200 bored softclock 1972 59915 0 0 3 0x40014200 idle0 1 245672 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 9525 6354K 6851K 78643K 11294 0 pcb 13 8K 8K 78643K 85 0 rtable 102 4K 9K 78643K 803 0 ifaddr 88 16K 17K 78643K 196 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 30 0 ioctlops 0 0K 4K 78643K 69 0 iov 0 0K 24K 78643K 48 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1460 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 20 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 443 0 sigio 0 0K 0K 78643K 8 0 proc 49 38K 54K 78643K 418 0 subproc 32 2K 2K 78643K 38 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 20 0 in_multi 51 2K 3K 78643K 88 0 ether_multi 1 0K 0K 78643K 12 0 mrt 0 0K 0K 78643K 2 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 225 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 138 56K 58K 78643K 1888 0 UVM aobj 14 2K 2K 78643K 16 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 51 0 NDP 15 0K 0K 78643K 29 0 temp 123 3039K 3107K 78643K 14857 0 kqueue 3 4K 12K 78643K 41 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 6 0 0 1 0 1 1 0 8 0 rtpcb 80 472 0 467 1 0 1 1 0 8 0 rtentry 112 51 0 13 2 0 2 2 0 8 0 unpcb 120 267 0 259 1 0 1 1 0 8 0 syncache 264 9 0 9 3 2 1 1 0 8 1 tcpqe 32 355 0 355 2 1 1 1 0 8 1 tcpcb 544 172 0 168 2 1 1 2 0 8 0 inpcb 280 432 0 425 3 1 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 8 0 4 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 2 0 0 1 0 1 1 0 8 0 pfrktable 1344 81 0 77 3 1 2 2 0 8 1 pftag 88 14 0 14 3 2 1 1 0 8 1 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 2 0 0 1 0 1 1 0 8 0 pfstate 328 1 0 0 1 0 1 1 0 8 0 pfrule 1360 29 0 22 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 214 0 64 13 0 13 13 0 8 2 art_table 32 215 0 64 2 0 2 2 0 8 0 art_node 16 50 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 5 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 12 0 2 1 0 1 1 0 8 0 shmpl 112 14 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2025 0 631 88 0 88 88 0 8 0 ffsino 240 2025 0 631 83 0 83 83 0 8 0 nchpl 144 2977 0 1374 60 0 60 60 0 8 0 uvmvnodes 72 2232 0 0 41 0 41 41 0 8 0 vnodes 208 2232 0 0 118 0 118 118 0 8 0 namei 1024 8193 0 8193 1 0 1 1 0 8 1 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 528 6 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 25 0 20 1 0 1 1 0 8 0 scxspl 192 8266 0 8266 1 0 1 1 0 8 1 plimitpl 152 59 0 52 1 0 1 1 0 8 0 sigapl 424 630 0 601 4 0 4 4 0 8 0 futexpl 56 9063 0 9063 1 0 1 1 0 8 1 knotepl 112 108 0 89 1 0 1 1 0 8 0 kqueuepl 144 82 0 79 1 0 1 1 0 8 0 pipelkpl 16 130 0 120 1 0 1 1 0 8 0 pipepl 120 260 0 241 1 0 1 1 0 8 0 fdescpl 432 615 0 601 2 0 2 2 0 8 0 filepl 120 4248 0 4147 4 0 4 4 0 8 0 lockfpl 104 105 0 103 1 0 1 1 0 8 0 lockfspl 48 45 0 43 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 553 0 546 1 0 1 1 0 8 0 zombiepl 144 602 0 601 1 0 1 1 0 8 0 processpl 920 630 0 601 4 0 4 4 0 8 0 procpl 624 1162 0 1126 4 0 4 4 0 8 1 sosppl 128 5 0 5 2 1 1 1 0 8 1 sockpl 400 1175 0 1154 4 1 3 4 0 8 0 mcl64k 65536 242 0 242 29 23 6 29 0 8 6 mcl16k 16384 6 0 6 2 1 1 1 0 8 1 mcl12k 12288 12 0 12 2 1 1 1 0 8 1 mcl9k 9216 3 0 3 2 1 1 1 0 8 1 mcl8k 8192 19 0 17 1 0 1 1 0 8 0 mcl4k 4096 59 0 59 2 1 1 1 0 8 1 mcl2k2 2112 4 0 4 1 1 0 1 0 8 0 mcl2k 2048 74910 0 74860 18 10 8 15 0 8 0 mtagpl 80 48 0 7 2 1 1 1 0 8 0 mbufpl 256 126853 0 126575 29 4 25 29 0 8 4 bufpl 280 4430 0 133 307 0 307 307 0 8 0 anonpl 16 68376 0 52401 74 9 65 70 0 107 0 amapchunkpl 152 2746 0 2609 14 1 13 13 0 158 5 amappl16 192 3139 0 2250 49 4 45 48 0 8 0 amappl15 184 208 0 206 1 0 1 1 0 8 0 amappl14 176 233 0 225 1 0 1 1 0 8 0 amappl13 168 27 0 23 1 0 1 1 0 8 0 amappl12 160 11 0 7 1 0 1 1 0 8 0 amappl11 152 45 0 36 1 0 1 1 0 8 0 amappl10 144 10 0 7 1 0 1 1 0 8 0 amappl9 136 373 0 370 1 0 1 1 0 8 0 amappl8 128 352 0 304 2 0 2 2 0 8 0 amappl7 120 106 0 94 1 0 1 1 0 8 0 amappl6 112 26 0 22 1 0 1 1 0 8 0 amappl5 104 567 0 555 1 0 1 1 0 8 0 amappl4 96 428 0 401 1 0 1 1 0 8 0 amappl3 88 319 0 312 1 0 1 1 0 8 0 amappl2 80 4282 0 4219 2 0 2 2 0 8 0 amappl1 72 20066 0 19645 24 15 9 17 0 8 0 amappl 80 1392 0 1347 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 15 0 2 1 0 1 1 0 8 0 uaddrrnd 24 621 0 603 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 621 0 603 1 0 1 1 0 8 0 vmmpekpl 168 7429 0 7400 2 0 2 2 0 8 0 vmmpepl 168 79114 0 77117 119 26 93 112 0 357 5 vmsppl 272 620 0 603 2 0 2 2 0 8 0 pdppl 4096 1248 0 1210 7 1 6 6 0 8 1 pvpl 32 215991 0 197042 171 7 164 169 0 265 10 pmappl 200 620 0 603 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 292 0 44 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(ffffffff821fe3a1) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800020825cd8,ffff800020825d60,80c) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff800020825cd8,ffff800020825d60) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800020825cd8,ffff800020825d60) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8067e5f7d0) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8067e5f7d0,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8067e5f7d0,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057908d30,ffff80001d729c38) at soo_close+0x40 fdrop(fffffd8057908d30,ffff80001d729c38) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8057908d30,ffff80001d729c38) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d729c38) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d729c38,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d729c38,ffff800020826130,ffff800020826180) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800020826200) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe83c0, 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(ffffffff821fe3a1) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff800020825cd8,ffff800020825d60,80c) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff800020825cd8,ffff800020825d60) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff800020825cd8,ffff800020825d60) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd8067e5f7d0) at sorflush+0x14b sys/kern/uipc_socket.c:1131 sofree(fffffd8067e5f7d0,42) at sofree+0x147 sys/kern/uipc_socket.c:257 soclose(fffffd8067e5f7d0,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057908d30,ffff80001d729c38) at soo_close+0x40 fdrop(fffffd8057908d30,ffff80001d729c38) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8057908d30,ffff80001d729c38) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d729c38) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d729c38,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d729c38,ffff800020826130,ffff800020826180) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff800020826200) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe83c0, count: -16