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(ffffffff821ffcf6) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd8069829018,fffffd8069829110,c3dc) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd8069829018,fffffd8069829110) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(fffffd8069829018,fffffd8069829110) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sofree(fffffd8069829018,42) at sofree+0x13f sys/kern/uipc_socket.c:256 soclose(fffffd8069829018,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057ce4da8,ffff80001d7399c8) at soo_close+0x40 fdrop(fffffd8057ce4da8,ffff80001d7399c8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8057ce4da8,ffff80001d7399c8) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d7399c8) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d7399c8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d7399c8,ffff80001d8240c0,ffff80001d824110) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001d824190) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 end trace frame: 0xffff80001d824210, 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(ffffffff821ffcf6) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd8069829018,fffffd8069829110,c3dc) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd8069829018,fffffd8069829110) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(fffffd8069829018,fffffd8069829110) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sofree(fffffd8069829018,42) at sofree+0x13f sys/kern/uipc_socket.c:256 soclose(fffffd8069829018,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057ce4da8,ffff80001d7399c8) at soo_close+0x40 fdrop(fffffd8057ce4da8,ffff80001d7399c8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8057ce4da8,ffff80001d7399c8) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d7399c8) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d7399c8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d7399c8,ffff80001d8240c0,ffff80001d824110) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001d824190) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff16c0, count: -15 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d823c90 rbx 0xffff80001d823d40 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8134a72f kprintf+0x15f r9 0x1 r10 0x2 r11 0xea7f5e44c020e884 r12 0x3000000008 r13 0xffff80001d823ca0 r14 0x100 r15 0x1 rip 0xffffffff8209e758 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d823c80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=417270 stat=onproc flags process=1018 proc=2000 pri=32, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff80001d73a118,0xffff80001d7a8610 process=0xffff8000ffffa740 user=0xffff80001d81f000, vmspace=0xfffffd806991b888 estcpu=20, cpticks=2, pctcpu=0.10 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 52021 104201 71009 0 2 0 syz-executor.0 52021 48590 71009 0 3 0x4000080 fsleep syz-executor.0 71009 435157 88934 0 3 0x82 nanosleep syz-executor.0 7371 13369 88934 0 2 0x482 syz-executor.1 88934 254056 3009 0 3 0x82 thrsleep syz-fuzzer 88934 251476 3009 0 3 0x4000082 thrsleep syz-fuzzer 88934 323618 3009 0 3 0x4000082 kqread syz-fuzzer 88934 396563 3009 0 3 0x4000082 thrsleep syz-fuzzer 88934 25209 3009 0 3 0x4000082 thrsleep syz-fuzzer 88934 520401 3009 0 3 0x4000082 thrsleep syz-fuzzer 88934 146128 3009 0 3 0x4000082 thrsleep syz-fuzzer 3009 434677 2942 0 3 0x10008a pause ksh 2942 53378 5044 0 3 0x92 select sshd 87039 423702 1 0 3 0x100083 ttyin getty 5044 177519 1 0 3 0x80 select sshd 16434 11843 81753 73 3 0x100090 kqread syslogd 81753 93800 1 0 3 0x100082 netio syslogd 91360 468119 1 77 3 0x100090 poll dhclient 11566 249617 1 0 3 0x80 poll dhclient 44987 409746 0 0 3 0x14200 bored smr 94450 329928 0 0 2 0x14200 zerothread 37093 70848 0 0 3 0x14200 aiodoned aiodoned 4493 277752 0 0 3 0x14200 syncer update 65336 185000 0 0 3 0x14200 cleaner cleaner 92351 377792 0 0 3 0x14200 reaper reaper 29873 456177 0 0 3 0x14200 pgdaemon pagedaemon 11100 154868 0 0 3 0x14200 bored crynlk 30743 3534 0 0 3 0x14200 bored crypto 84032 391350 0 0 3 0x40014200 acpi0 acpi0 41395 256524 0 0 2 0x14200 softnet 98761 99572 0 0 3 0x14200 bored systqmp 60550 13708 0 0 3 0x14200 bored systq 12944 365252 0 0 2 0x40014200 softclock 85292 272365 0 0 3 0x40014200 idle0 1 363681 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 9486 6353K 7437K 78643K 11027 0 pcb 13 8K 8K 78643K 61 0 rtable 108 3K 3K 78643K 262 0 ifaddr 58 12K 12K 78643K 88 0 counters 21 16K 16K 78643K 27 0 ioctlops 0 0K 2K 78643K 19 0 iov 0 0K 16K 78643K 42 0 mount 1 1K 1K 78643K 1 0 vnodes 1229 77K 77K 78643K 1344 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 0K 0K 78643K 2 0 sem 12 1K 1K 78643K 26 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 6 17K 25K 78643K 190 0 proc 49 38K 63K 78643K 381 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 152 0 in_multi 40 2K 2K 78643K 168 0 ether_multi 1 0K 0K 78643K 13 0 mrt 1 0K 0K 78643K 11 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 195 0 pfkey data 0 0K 0K 78643K 2 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 124 23K 32K 78643K 1269 0 UVM aobj 7 2K 2K 78643K 10 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 46 0 NDP 9 0K 0K 78643K 19 0 temp 94 3032K 3101K 78643K 9479 0 kqueue 3 4K 16K 78643K 22 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 29 0 27 1 0 1 1 0 8 0 rtentry 112 51 0 7 2 0 2 2 0 8 0 unpcb 120 113 0 105 1 0 1 1 0 8 0 syncache 264 8 0 8 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 544 217 0 206 2 0 2 2 0 8 1 inpcb 280 355 0 342 2 0 2 2 0 8 1 rttmr 72 4 0 4 1 0 1 1 0 8 1 nd6 48 6 0 0 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 48 0 8 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 0 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 20 0 10 1 0 1 1 0 8 0 shmpl 112 8 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1649 0 249 88 0 88 88 0 8 0 ffsino 240 1649 0 249 83 0 83 83 0 8 0 nchpl 144 2145 0 542 60 0 60 60 0 8 0 uvmvnodes 72 1789 0 0 33 0 33 33 0 8 0 vnodes 208 1789 0 0 95 0 95 95 0 8 0 namei 1024 5514 0 5514 1 0 1 1 0 8 1 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 528 2 0 0 1 0 1 1 0 8 0 scxspl 192 5666 0 5666 1 0 1 1 0 8 1 plimitpl 152 34 0 27 1 0 1 1 0 8 0 sigapl 424 376 0 347 4 0 4 4 0 8 0 futexpl 56 3727 0 3726 1 0 1 1 0 8 0 knotepl 112 86 0 67 1 0 1 1 0 8 0 kqueuepl 144 36 0 33 1 0 1 1 0 8 0 pipelkpl 16 86 0 76 1 0 1 1 0 8 0 pipepl 120 172 0 153 1 0 1 1 0 8 0 fdescpl 432 362 0 347 2 0 2 2 0 8 0 filepl 120 2197 0 2095 4 0 4 4 0 8 0 lockfpl 104 44 0 43 1 0 1 1 0 8 0 lockfspl 48 14 0 13 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 220 0 211 1 0 1 1 0 8 0 zombiepl 144 348 0 347 1 0 1 1 0 8 0 processpl 920 376 0 347 4 0 4 4 0 8 0 procpl 624 570 0 534 4 0 4 4 0 8 1 sockpl 400 499 0 476 4 0 4 4 0 8 1 mcl64k 65536 17 0 17 1 0 1 1 0 8 1 mcl16k 16384 5 0 5 1 0 1 1 0 8 1 mcl12k 12288 5 0 5 1 0 1 1 0 8 1 mcl9k 9216 4 0 4 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 23 0 23 2 1 1 1 0 8 1 mcl2k 2048 69071 0 69023 16 6 10 13 0 8 3 mtagpl 80 23 0 2 2 1 1 1 0 8 0 mbufpl 256 110911 0 110797 12 2 10 10 0 8 0 bufpl 280 4900 0 126 341 0 341 341 0 8 0 anonpl 16 56898 0 42008 76 2 74 74 0 107 13 amapchunkpl 152 1989 0 1854 15 0 15 15 0 158 9 amappl16 192 1841 0 1029 49 0 49 49 0 8 8 amappl15 184 83 0 80 1 0 1 1 0 8 0 amappl14 176 32 0 27 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 9 0 6 1 0 1 1 0 8 0 amappl11 152 131 0 120 1 0 1 1 0 8 0 amappl10 144 18 0 13 1 0 1 1 0 8 0 amappl9 136 446 0 443 1 0 1 1 0 8 0 amappl8 128 399 0 359 2 0 2 2 0 8 0 amappl7 120 109 0 95 1 0 1 1 0 8 0 amappl6 112 24 0 20 1 0 1 1 0 8 0 amappl5 104 306 0 293 1 0 1 1 0 8 0 amappl4 96 423 0 396 1 0 1 1 0 8 0 amappl3 88 110 0 105 1 0 1 1 0 8 0 amappl2 80 2127 0 2052 2 0 2 2 0 8 0 amappl1 72 16104 0 15670 23 11 12 17 0 8 2 amappl 80 796 0 753 1 0 1 1 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 9 0 3 1 0 1 1 0 8 0 uaddrrnd 24 364 0 347 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 364 0 347 1 0 1 1 0 8 0 vmmpekpl 168 6333 0 6305 2 0 2 2 0 8 0 vmmpepl 168 49979 0 47942 106 8 98 100 0 357 9 vmsppl 272 363 0 347 2 0 2 2 0 8 0 pdppl 4096 734 0 696 6 1 5 6 0 8 0 pvpl 32 203762 0 186300 261 0 261 261 0 265 118 pmappl 200 363 0 347 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 241 0 12 7 0 7 7 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(ffffffff821ffcf6) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd8069829018,fffffd8069829110,c3dc) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd8069829018,fffffd8069829110) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(fffffd8069829018,fffffd8069829110) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sofree(fffffd8069829018,42) at sofree+0x13f sys/kern/uipc_socket.c:256 soclose(fffffd8069829018,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057ce4da8,ffff80001d7399c8) at soo_close+0x40 fdrop(fffffd8057ce4da8,ffff80001d7399c8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8057ce4da8,ffff80001d7399c8) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d7399c8) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d7399c8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d7399c8,ffff80001d8240c0,ffff80001d824110) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001d824190) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff16c0, count: -15 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821ffcf6) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd8069829018,fffffd8069829110,c3dc) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd8069829018,fffffd8069829110) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(fffffd8069829018,fffffd8069829110) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sofree(fffffd8069829018,42) at sofree+0x13f sys/kern/uipc_socket.c:256 soclose(fffffd8069829018,0) at soclose+0x268 sys/kern/uipc_socket.c:338 soo_close(fffffd8057ce4da8,ffff80001d7399c8) at soo_close+0x40 fdrop(fffffd8057ce4da8,ffff80001d7399c8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8057ce4da8,ffff80001d7399c8) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d7399c8) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d7399c8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d7399c8,ffff80001d8240c0,ffff80001d824110) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001d824190) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff16c0, count: -15