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(ffffffff823e871f) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd8062d447d0,fffffd8062d44858,4000) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd8062d447d0,fffffd8062d44858) at sbflush+0x93 sys/kern/uipc_socket2.c:934 tcp_disconnect(ffff800000ac0540) at tcp_disconnect+0xb4 tcp_usrclosed sys/netinet/tcp_usrreq.c:695 [inline] tcp_disconnect(ffff800000ac0540) at tcp_disconnect+0xb4 sys/netinet/tcp_usrreq.c:674 tcp_usrreq(fffffd8062d447d0,6,0,0,0,ffff80001d6a9c38) at tcp_usrreq+0x478 sys/netinet/tcp_usrreq.c:274 soclose(fffffd8062d447d0,0) at soclose+0x2c8 sodisconnect sys/kern/uipc_socket.c:417 [inline] soclose(fffffd8062d447d0,0) at soclose+0x2c8 sys/kern/uipc_socket.c:307 soo_close(fffffd805d870878,ffff80001d6a9c38) at soo_close+0x40 fdrop(fffffd805d870878,ffff80001d6a9c38) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd805d870878,ffff80001d6a9c38) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6a9c38) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6a9c38,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6a9c38,ffff80001e7a7700,ffff80001e7a7750) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001e7a77d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 end trace frame: 0xffff80001e7a7850, 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(ffffffff823e871f) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd8062d447d0,fffffd8062d44858,4000) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd8062d447d0,fffffd8062d44858) at sbflush+0x93 sys/kern/uipc_socket2.c:934 tcp_disconnect(ffff800000ac0540) at tcp_disconnect+0xb4 tcp_usrclosed sys/netinet/tcp_usrreq.c:695 [inline] tcp_disconnect(ffff800000ac0540) at tcp_disconnect+0xb4 sys/netinet/tcp_usrreq.c:674 tcp_usrreq(fffffd8062d447d0,6,0,0,0,ffff80001d6a9c38) at tcp_usrreq+0x478 sys/netinet/tcp_usrreq.c:274 soclose(fffffd8062d447d0,0) at soclose+0x2c8 sodisconnect sys/kern/uipc_socket.c:417 [inline] soclose(fffffd8062d447d0,0) at soclose+0x2c8 sys/kern/uipc_socket.c:307 soo_close(fffffd805d870878,ffff80001d6a9c38) at soo_close+0x40 fdrop(fffffd805d870878,ffff80001d6a9c38) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd805d870878,ffff80001d6a9c38) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6a9c38) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6a9c38,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6a9c38,ffff80001e7a7700,ffff80001e7a7750) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001e7a77d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcfe20, count: -15 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001e7a7250 rbx 0xffff80001e7a7300 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8122338f kprintf+0x15f r9 0x1 r10 0x2 r11 0x7020dce5d96cc84f r12 0x3000000008 r13 0xffff80001e7a7260 r14 0x100 r15 0x1 rip 0xffffffff814ee128 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001e7a7240 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=433153 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6a9008,0xffffffff82837578 process=0xffff8000ffffb208 user=0xffff80001e7a2000, vmspace=0xfffffd806bc0a440 estcpu=36, cpticks=6, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 11352 40821 92912 0 3 0x82 nanosleep syz-executor.0 43599 60826 92912 0 3 0x82 nanosleep syz-executor.1 92912 368899 3116 0 3 0x82 thrsleep syz-fuzzer 92912 406593 3116 0 3 0x4000082 thrsleep syz-fuzzer 92912 413931 3116 0 3 0x4000082 thrsleep syz-fuzzer 92912 190162 3116 0 3 0x4000082 thrsleep syz-fuzzer 92912 241581 3116 0 3 0x4000082 kqread syz-fuzzer 92912 279384 3116 0 3 0x4000082 thrsleep syz-fuzzer 92912 392890 3116 0 3 0x4000082 thrsleep syz-fuzzer 92912 322359 3116 0 3 0x4000082 thrsleep syz-fuzzer 3116 415960 93074 0 3 0x10008a pause ksh 93074 507220 16922 0 3 0x92 select sshd 96888 243009 1 0 3 0x100083 ttyin getty 16922 200167 1 0 3 0x80 select sshd 45427 68810 35914 73 3 0x100090 kqread syslogd 35914 335614 1 0 3 0x100082 netio syslogd 99776 289238 1 77 3 0x100090 poll dhclient 89693 357069 1 0 3 0x80 poll dhclient 84569 263694 0 0 3 0x14200 bored smr 39170 79650 0 0 2 0x14200 zerothread 30894 72031 0 0 3 0x14200 aiodoned aiodoned 41299 518375 0 0 3 0x14200 syncer update 99868 256944 0 0 3 0x14200 cleaner cleaner 1587 407020 0 0 3 0x14200 reaper reaper 84713 64211 0 0 3 0x14200 pgdaemon pagedaemon 87553 131014 0 0 3 0x14200 bored crynlk 634 518697 0 0 3 0x14200 bored crypto 24091 493349 0 0 3 0x40014200 acpi0 acpi0 713 264898 0 0 2 0x14200 softnet 99588 482615 0 0 3 0x14200 bored systqmp 87147 307471 0 0 3 0x14200 bored systq 62440 278258 0 0 3 0x40014200 bored softclock 62738 212519 0 0 3 0x40014200 idle0 1 341894 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 9472 6332K 6718K 78643K 10841 0 pcb 13 8K 8K 78643K 55 0 rtable 111 3K 7K 78643K 262 0 ifaddr 56 12K 12K 78643K 71 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 33 0 iov 0 0K 14K 78643K 24 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1290 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 14 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 128 0 proc 49 38K 54K 78643K 363 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 16 0 in_multi 46 2K 2K 78643K 60 0 ether_multi 1 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 195 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 119 22K 23K 78643K 1145 0 UVM aobj 4 2K 2K 78643K 5 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 28 0 NDP 8 0K 0K 78643K 12 0 temp 77 3844K 3908K 78643K 11576 0 kqueue 3 4K 8K 78643K 7 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 23 0 21 1 0 1 1 0 8 0 rtentry 112 46 0 1 2 0 2 2 0 8 0 unpcb 120 113 0 105 1 0 1 1 0 8 0 syncache 264 14 0 14 2 1 1 1 0 8 1 tcpqe 32 130 0 130 1 1 0 1 0 8 0 tcpcb 544 86 0 76 2 0 2 2 0 8 1 inpcb 280 238 0 226 2 0 2 2 0 8 1 nd6 48 7 0 0 1 0 1 1 0 8 0 pfrktable 1344 20 0 20 1 0 1 1 0 8 1 pftag 88 4 0 4 1 0 1 1 0 8 1 pfrule 1360 4 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 190 0 0 12 0 12 12 0 8 0 art_table 32 191 0 0 2 0 2 2 0 8 0 art_node 16 45 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 3 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1537 0 135 88 0 88 88 0 8 0 ffsino 240 1537 0 135 83 0 83 83 0 8 0 nchpl 144 1879 0 274 60 0 60 60 0 8 0 uvmvnodes 72 1644 0 0 30 0 30 30 0 8 0 vnodes 208 1644 0 0 87 0 87 87 0 8 0 namei 1024 4748 0 4748 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 pfiaddrpl 120 6 0 6 1 0 1 1 0 8 1 scxspl 192 5757 0 5757 1 0 1 1 0 8 1 plimitpl 152 26 0 19 1 0 1 1 0 8 0 sigapl 424 314 0 286 4 0 4 4 0 8 0 futexpl 56 2119 0 2119 1 0 1 1 0 8 1 knotepl 112 65 0 46 1 0 1 1 0 8 0 kqueuepl 144 22 0 20 1 0 1 1 0 8 0 pipelkpl 16 90 0 80 1 0 1 1 0 8 0 pipepl 120 180 0 161 1 0 1 1 0 8 0 fdescpl 432 300 0 286 2 0 2 2 0 8 0 filepl 120 1721 0 1623 4 0 4 4 0 8 0 lockfpl 104 22 0 21 1 0 1 1 0 8 0 lockfspl 48 8 0 7 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 13 1 0 1 1 0 8 0 ucredpl 96 106 0 99 1 0 1 1 0 8 0 zombiepl 144 287 0 285 1 0 1 1 0 8 0 processpl 920 314 0 285 4 0 4 4 0 8 0 procpl 624 453 0 417 4 0 4 4 0 8 1 sockpl 400 374 0 353 4 0 4 4 0 8 1 mcl64k 65536 16 0 16 1 0 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 15 0 15 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 74812 0 74762 18 7 11 14 0 8 4 mtagpl 80 6 0 4 2 1 1 1 0 8 0 mbufpl 256 119688 0 119608 14 2 12 12 0 8 1 bufpl 280 3607 0 126 249 0 249 249 0 8 0 anonpl 16 52719 0 35976 80 2 78 78 0 107 9 amapchunkpl 152 1392 0 1246 10 0 10 10 0 158 3 amappl16 192 1790 0 866 57 2 55 57 0 8 8 amappl15 184 2 0 0 1 0 1 1 0 8 0 amappl14 176 70 0 65 1 0 1 1 0 8 0 amappl13 168 34 0 30 1 0 1 1 0 8 0 amappl12 160 64 0 61 1 0 1 1 0 8 0 amappl11 152 49 0 39 1 0 1 1 0 8 0 amappl10 144 58 0 54 1 0 1 1 0 8 0 amappl9 136 350 0 349 1 0 1 1 0 8 0 amappl8 128 312 0 278 2 0 2 2 0 8 0 amappl7 120 153 0 140 1 0 1 1 0 8 0 amappl6 112 28 0 20 1 0 1 1 0 8 0 amappl5 104 231 0 221 1 0 1 1 0 8 0 amappl4 96 469 0 445 1 0 1 1 0 8 0 amappl3 88 147 0 141 1 0 1 1 0 8 0 amappl2 80 1577 0 1508 2 0 2 2 0 8 0 amappl1 72 15056 0 14642 23 13 10 17 0 8 1 amappl 80 682 0 636 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 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 302 0 286 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 302 0 286 1 0 1 1 0 8 0 vmmpekpl 168 6125 0 6099 2 0 2 2 0 8 0 vmmpepl 168 43681 0 41643 116 7 109 110 0 357 20 vmsppl 272 301 0 286 2 0 2 2 0 8 1 pdppl 4096 610 0 574 6 1 5 6 0 8 0 pvpl 32 155730 0 136380 184 0 184 184 0 265 26 pmappl 200 301 0 286 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 246 0 13 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(ffffffff823e871f) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd8062d447d0,fffffd8062d44858,4000) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd8062d447d0,fffffd8062d44858) at sbflush+0x93 sys/kern/uipc_socket2.c:934 tcp_disconnect(ffff800000ac0540) at tcp_disconnect+0xb4 tcp_usrclosed sys/netinet/tcp_usrreq.c:695 [inline] tcp_disconnect(ffff800000ac0540) at tcp_disconnect+0xb4 sys/netinet/tcp_usrreq.c:674 tcp_usrreq(fffffd8062d447d0,6,0,0,0,ffff80001d6a9c38) at tcp_usrreq+0x478 sys/netinet/tcp_usrreq.c:274 soclose(fffffd8062d447d0,0) at soclose+0x2c8 sodisconnect sys/kern/uipc_socket.c:417 [inline] soclose(fffffd8062d447d0,0) at soclose+0x2c8 sys/kern/uipc_socket.c:307 soo_close(fffffd805d870878,ffff80001d6a9c38) at soo_close+0x40 fdrop(fffffd805d870878,ffff80001d6a9c38) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd805d870878,ffff80001d6a9c38) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6a9c38) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6a9c38,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6a9c38,ffff80001e7a7700,ffff80001e7a7750) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001e7a77d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcfe20, 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(ffffffff823e871f) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd8062d447d0,fffffd8062d44858,4000) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd8062d447d0,fffffd8062d44858) at sbflush+0x93 sys/kern/uipc_socket2.c:934 tcp_disconnect(ffff800000ac0540) at tcp_disconnect+0xb4 tcp_usrclosed sys/netinet/tcp_usrreq.c:695 [inline] tcp_disconnect(ffff800000ac0540) at tcp_disconnect+0xb4 sys/netinet/tcp_usrreq.c:674 tcp_usrreq(fffffd8062d447d0,6,0,0,0,ffff80001d6a9c38) at tcp_usrreq+0x478 sys/netinet/tcp_usrreq.c:274 soclose(fffffd8062d447d0,0) at soclose+0x2c8 sodisconnect sys/kern/uipc_socket.c:417 [inline] soclose(fffffd8062d447d0,0) at soclose+0x2c8 sys/kern/uipc_socket.c:307 soo_close(fffffd805d870878,ffff80001d6a9c38) at soo_close+0x40 fdrop(fffffd805d870878,ffff80001d6a9c38) at fdrop+0xc2 sys/kern/kern_descrip.c:1279 closef(fffffd805d870878,ffff80001d6a9c38) at closef+0x117 sys/kern/kern_descrip.c:1263 fdfree(ffff80001d6a9c38) at fdfree+0x100 sys/kern/kern_descrip.c:1195 exit1(ffff80001d6a9c38,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d6a9c38,ffff80001e7a7700,ffff80001e7a7750) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001e7a77d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcfe20, count: -15