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(ffffffff824046f9) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80001e78cbd8,ffff80001e78cc60,4315a) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80001e78cbd8,ffff80001e78cc60) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80001e78cbd8,ffff80001e78cc60) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd805e506640) at sorflush+0x14b sys/kern/uipc_socket.c:1137 sofree(fffffd805e506640,42) at sofree+0x147 sys/kern/uipc_socket.c:263 soclose(fffffd805e506640,0) at soclose+0x268 sys/kern/uipc_socket.c:344 soo_close(fffffd80576bce98,ffff80001d6c3128) at soo_close+0x40 fdrop(fffffd80576bce98,ffff80001d6c3128) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80576bce98,ffff80001d6c3128) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6c3128) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6c3128,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6c3128,ffff80001e78d030,ffff80001e78d080) at sys_exit+0x16 sys/kern/kern_exit.c:95 end trace frame: 0xffff80001e78d0f0, 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(ffffffff824046f9) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80001e78cbd8,ffff80001e78cc60,4315a) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80001e78cbd8,ffff80001e78cc60) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80001e78cbd8,ffff80001e78cc60) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd805e506640) at sorflush+0x14b sys/kern/uipc_socket.c:1137 sofree(fffffd805e506640,42) at sofree+0x147 sys/kern/uipc_socket.c:263 soclose(fffffd805e506640,0) at soclose+0x268 sys/kern/uipc_socket.c:344 soo_close(fffffd80576bce98,ffff80001d6c3128) at soo_close+0x40 fdrop(fffffd80576bce98,ffff80001d6c3128) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80576bce98,ffff80001d6c3128) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6c3128) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6c3128,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6c3128,ffff80001e78d030,ffff80001e78d080) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001e78d100) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd8e0, count: -16 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001e78ca20 rbx 0xffff80001e78cad0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8187ab8f kprintf+0x15f r9 0x1 r10 0x2 r11 0xf0590286ef05f280 r12 0x3000000008 r13 0xffff80001e78ca30 r14 0x100 r15 0x1 rip 0xffffffff81db0098 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001e78ca10 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=336667 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6c24f8,0xffff80001d6c2ec8 process=0xffff80001d6c4af0 user=0xffff80001e788000, vmspace=0xfffffd805c836778 estcpu=36, cpticks=8, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 51249 247669 46625 0 2 0 syz-executor.0 51249 482109 46625 0 3 0x4000080 fsleep syz-executor.0 62505 136789 0 0 3 0x14200 bored sosplice 62105 186548 42657 0 3 0x82 nanosleep syz-executor.1 46625 360599 42657 0 3 0x82 nanosleep syz-executor.0 42657 103650 66286 0 3 0x82 thrsleep syz-fuzzer 42657 65717 66286 0 3 0x4000082 thrsleep syz-fuzzer 42657 461441 66286 0 3 0x4000082 kqread syz-fuzzer 42657 324974 66286 0 3 0x4000082 thrsleep syz-fuzzer 42657 439607 66286 0 3 0x4000082 thrsleep syz-fuzzer 42657 121251 66286 0 3 0x4000082 thrsleep syz-fuzzer 42657 173090 66286 0 3 0x4000082 thrsleep syz-fuzzer 42657 8069 66286 0 3 0x4000082 thrsleep syz-fuzzer 66286 496623 37492 0 3 0x10008a pause ksh 37492 510146 27822 0 3 0x92 select sshd 48489 424613 1 0 3 0x100083 ttyin getty 27822 268766 1 0 3 0x80 select sshd 1334 439565 28984 73 3 0x100090 kqread syslogd 28984 469033 1 0 3 0x100082 netio syslogd 42258 57816 1 77 3 0x100090 poll dhclient 80836 11778 1 0 3 0x80 poll dhclient 72079 311333 0 0 3 0x14200 bored smr 19802 223649 0 0 2 0x14200 zerothread 29935 49094 0 0 3 0x14200 aiodoned aiodoned 13428 100056 0 0 3 0x14200 syncer update 29957 61305 0 0 3 0x14200 cleaner cleaner 71722 65496 0 0 3 0x14200 reaper reaper 26112 104863 0 0 3 0x14200 pgdaemon pagedaemon 83710 219948 0 0 3 0x14200 bored crynlk 73956 31768 0 0 3 0x14200 bored crypto 49805 137540 0 0 3 0x40014200 acpi0 acpi0 71686 78840 0 0 3 0x14200 bored softnet 73416 456018 0 0 3 0x14200 bored systqmp 68564 184813 0 0 3 0x14200 bored systq 57904 55392 0 0 3 0x40014200 bored softclock 27953 54519 0 0 3 0x40014200 idle0 1 378516 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 9489 6347K 7432K 78643K 11657 0 pcb 13 8K 8K 78643K 71 0 rtable 110 4K 7K 78643K 373 0 ifaddr 67 14K 14K 78643K 109 0 counters 21 16K 16K 78643K 22 0 ioctlops 0 0K 4K 78643K 63 0 iov 0 0K 18K 78643K 50 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1513 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 68 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 6 17K 25K 78643K 314 0 sigio 0 0K 0K 78643K 4 0 proc 50 38K 54K 78643K 386 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 40 0 in_multi 54 2K 3K 78643K 114 0 ether_multi 1 0K 0K 78643K 9 0 mrt 0 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 205 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 147 109K 109K 78643K 1588 0 UVM aobj 11 2K 2K 78643K 11 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 32 0 NDP 10 0K 0K 78643K 21 0 temp 116 3856K 3929K 78643K 11876 0 kqueue 3 4K 8K 78643K 21 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 12 0 5 1 0 1 1 0 8 0 rtpcb 80 23 0 21 1 0 1 1 0 8 0 rtentry 112 74 0 30 2 0 2 2 0 8 0 unpcb 120 595 0 582 2 0 2 2 0 8 1 syncache 264 6 0 6 3 3 0 1 0 8 0 tcpqe 32 546 0 546 1 1 0 1 0 8 0 tcpcb 544 130 0 126 2 0 2 2 0 8 1 inpcb 296 342 0 335 4 1 3 3 0 8 2 rttmr 72 3 0 2 1 0 1 1 0 8 0 nd6 48 15 0 10 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 pfrktable 1344 40 0 40 1 1 0 1 0 8 0 pftag 88 8 0 8 1 1 0 1 0 8 0 pfrule 1360 6 0 4 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 425 0 175 18 0 18 18 0 8 2 art_table 32 427 0 175 3 0 3 3 0 8 0 art_node 16 73 0 32 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 6 1 0 1 1 0 8 0 semapl 112 66 0 56 1 0 1 1 0 8 0 shmpl 112 8 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1879 0 481 88 0 88 88 0 8 0 ffsino 240 1879 0 481 83 0 83 83 0 8 0 nchpl 144 2529 0 922 60 0 60 60 0 8 0 uvmvnodes 72 2168 0 0 40 0 40 40 0 8 0 vnodes 208 2168 0 0 115 0 115 115 0 8 0 namei 1024 7017 0 7017 1 0 1 1 0 8 1 vcpupl 1984 12 0 0 2 0 2 2 0 8 0 vmpool 528 14 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 12 0 12 1 1 0 1 0 8 0 scxspl 192 8224 0 8224 1 0 1 1 0 8 1 plimitpl 152 34 0 27 1 0 1 1 0 8 0 sigapl 424 503 0 473 4 0 4 4 0 8 0 futexpl 56 6797 0 6796 1 0 1 1 0 8 0 knotepl 112 91 0 72 1 0 1 1 0 8 0 kqueuepl 144 38 0 36 1 0 1 1 0 8 0 pipepl 272 119 0 109 1 0 1 1 0 8 0 fdescpl 432 486 0 471 2 0 2 2 0 8 0 filepl 120 3318 0 3211 4 0 4 4 0 8 0 lockfpl 104 82 0 80 1 0 1 1 0 8 0 lockfspl 48 32 0 30 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 314 0 307 1 0 1 1 0 8 0 zombiepl 144 474 0 473 1 0 1 1 0 8 0 processpl 928 503 0 473 4 0 4 4 0 8 0 procpl 624 855 0 817 4 0 4 4 0 8 0 sosppl 128 10 0 10 2 1 1 1 0 8 1 sockpl 400 962 0 939 6 1 5 5 0 8 2 mcl64k 65536 38 0 32 1 0 1 1 0 8 0 mcl16k 16384 3 0 1 2 1 1 1 0 8 0 mcl12k 12288 7 0 7 3 2 1 1 0 8 1 mcl9k 9216 7 0 7 3 2 1 1 0 8 1 mcl8k 8192 5 0 5 2 1 1 1 0 8 1 mcl4k 4096 40 0 40 2 1 1 1 0 8 1 mcl2k2 2112 3 0 3 1 1 0 1 0 8 0 mcl2k 2048 78058 0 78008 24 17 7 21 0 8 0 mtagpl 96 70 0 10 3 1 2 2 0 8 0 mbufpl 256 125876 0 125598 21 3 18 18 0 8 0 bufpl 280 4315 0 130 299 0 299 299 0 8 0 anonpl 16 70169 0 53849 85 3 82 82 0 107 15 amapchunkpl 152 2404 0 2268 19 13 6 19 0 158 0 amappl16 192 3300 0 2384 67 9 58 58 0 8 12 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 24 0 18 1 0 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 17 0 16 2 1 1 1 0 8 0 amappl11 152 197 0 186 1 0 1 1 0 8 0 amappl10 144 13 0 7 1 0 1 1 0 8 0 amappl9 136 344 0 342 1 0 1 1 0 8 0 amappl8 128 315 0 276 2 0 2 2 0 8 0 amappl7 120 113 0 101 1 0 1 1 0 8 0 amappl6 112 168 0 162 1 0 1 1 0 8 0 amappl5 104 483 0 471 1 0 1 1 0 8 0 amappl4 96 424 0 396 1 0 1 1 0 8 0 amappl3 88 119 0 113 1 0 1 1 0 8 0 amappl2 80 3053 0 2979 2 0 2 2 0 8 0 amappl1 72 18243 0 17824 24 15 9 17 0 8 0 amappl 80 1086 0 1036 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 10 0 0 1 0 1 1 0 8 0 uaddrrnd 24 500 0 473 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 500 0 473 1 0 1 1 0 8 0 vmmpekpl 168 7088 0 7054 2 0 2 2 0 8 0 vmmpepl 168 65578 0 63455 130 26 104 115 0 357 11 vmsppl 272 499 0 473 2 0 2 2 0 8 0 pdppl 4096 1006 0 958 8 1 7 7 0 8 0 pvpl 32 202088 0 182682 195 1 194 194 0 265 37 pmappl 200 499 0 473 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 273 0 27 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(ffffffff824046f9) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80001e78cbd8,ffff80001e78cc60,4315a) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80001e78cbd8,ffff80001e78cc60) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80001e78cbd8,ffff80001e78cc60) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd805e506640) at sorflush+0x14b sys/kern/uipc_socket.c:1137 sofree(fffffd805e506640,42) at sofree+0x147 sys/kern/uipc_socket.c:263 soclose(fffffd805e506640,0) at soclose+0x268 sys/kern/uipc_socket.c:344 soo_close(fffffd80576bce98,ffff80001d6c3128) at soo_close+0x40 fdrop(fffffd80576bce98,ffff80001d6c3128) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80576bce98,ffff80001d6c3128) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6c3128) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6c3128,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6c3128,ffff80001e78d030,ffff80001e78d080) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001e78d100) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd8e0, 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(ffffffff824046f9) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(ffff80001e78cbd8,ffff80001e78cc60,4315a) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(ffff80001e78cbd8,ffff80001e78cc60) at sbflush+0x93 sys/kern/uipc_socket2.c:934 sbrelease(ffff80001e78cbd8,ffff80001e78cc60) at sbrelease+0x2e sys/kern/uipc_socket2.c:525 sorflush(fffffd805e506640) at sorflush+0x14b sys/kern/uipc_socket.c:1137 sofree(fffffd805e506640,42) at sofree+0x147 sys/kern/uipc_socket.c:263 soclose(fffffd805e506640,0) at soclose+0x268 sys/kern/uipc_socket.c:344 soo_close(fffffd80576bce98,ffff80001d6c3128) at soo_close+0x40 fdrop(fffffd80576bce98,ffff80001d6c3128) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd80576bce98,ffff80001d6c3128) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6c3128) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6c3128,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6c3128,ffff80001e78d030,ffff80001e78d080) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001e78d100) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd8e0, count: -16