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(ffffffff821f7cdb) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd805e55a320,fffffd805e55a3a8,1) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd805e55a320,fffffd805e55a3a8) at sbflush+0x93 sys/kern/uipc_socket2.c:934 tcp_disconnect(ffff8000009f6dc0) at tcp_disconnect+0xb4 tcp_usrclosed sys/netinet/tcp_usrreq.c:695 [inline] tcp_disconnect(ffff8000009f6dc0) at tcp_disconnect+0xb4 sys/netinet/tcp_usrreq.c:674 tcp_usrreq(fffffd805e55a320,6,0,0,0,ffff80001d75deb8) at tcp_usrreq+0x478 sys/netinet/tcp_usrreq.c:274 soclose(fffffd805e55a320,0) at soclose+0x2c8 sodisconnect sys/kern/uipc_socket.c:417 [inline] soclose(fffffd805e55a320,0) at soclose+0x2c8 sys/kern/uipc_socket.c:307 soo_close(fffffd80683e3018,ffff80001d75deb8) at soo_close+0x40 fdrop(fffffd80683e3018,ffff80001d75deb8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80683e3018,ffff80001d75deb8) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d75deb8) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d75deb8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d75deb8,ffff80001d782260,ffff80001d7822b0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001d782330) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 end trace frame: 0xffff80001d7823b0, 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(ffffffff821f7cdb) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd805e55a320,fffffd805e55a3a8,1) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd805e55a320,fffffd805e55a3a8) at sbflush+0x93 sys/kern/uipc_socket2.c:934 tcp_disconnect(ffff8000009f6dc0) at tcp_disconnect+0xb4 tcp_usrclosed sys/netinet/tcp_usrreq.c:695 [inline] tcp_disconnect(ffff8000009f6dc0) at tcp_disconnect+0xb4 sys/netinet/tcp_usrreq.c:674 tcp_usrreq(fffffd805e55a320,6,0,0,0,ffff80001d75deb8) at tcp_usrreq+0x478 sys/netinet/tcp_usrreq.c:274 soclose(fffffd805e55a320,0) at soclose+0x2c8 sodisconnect sys/kern/uipc_socket.c:417 [inline] soclose(fffffd805e55a320,0) at soclose+0x2c8 sys/kern/uipc_socket.c:307 soo_close(fffffd80683e3018,ffff80001d75deb8) at soo_close+0x40 fdrop(fffffd80683e3018,ffff80001d75deb8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80683e3018,ffff80001d75deb8) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d75deb8) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d75deb8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d75deb8,ffff80001d782260,ffff80001d7822b0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001d782330) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcd900, count: -15 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d781db0 rbx 0xffff80001d781e60 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d781d70 r9 0x1 r10 0 r11 0x47ed9f61027b6527 r12 0x3000000008 r13 0xffff80001d781dc0 r14 0x100 r15 0x1 rip 0xffffffff81664c08 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d781da0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=26506 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff80001d75e128,0xffffffff8258ca18 process=0xffff8000ffffaad8 user=0xffff80001d77d000, vmspace=0xfffffd8057ea0668 estcpu=30, cpticks=10, pctcpu=0.4 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 47605 297453 1 0 3 0x100083 ttyin getty 85722 488512 0 0 3 0x14200 bored sosplice 27589 446629 0 0 3 0x14200 acct acct 90821 76948 15514 0 3 0x82 nanosleep syz-executor.1 76233 363948 15514 0 3 0x82 piperd syz-executor.0 15514 245918 77361 0 3 0x82 thrsleep syz-fuzzer 15514 410973 77361 0 3 0x4000082 thrsleep syz-fuzzer 15514 215376 77361 0 3 0x4000082 kqread syz-fuzzer 15514 86195 77361 0 3 0x4000082 thrsleep syz-fuzzer 15514 50674 77361 0 3 0x4000082 thrsleep syz-fuzzer 15514 371840 77361 0 3 0x4000082 thrsleep syz-fuzzer 15514 6016 77361 0 3 0x4000082 thrsleep syz-fuzzer 77361 465487 1576 0 3 0x10008a pause ksh 1576 111319 31998 0 3 0x92 select sshd 31998 55356 1 0 3 0x80 select sshd 34817 421368 19874 73 3 0x100090 kqread syslogd 19874 12264 1 0 3 0x100082 netio syslogd 2709 73711 1 77 3 0x100090 poll dhclient 23192 433505 1 0 3 0x80 poll dhclient 58465 460719 0 0 3 0x14200 bored smr 5598 383224 0 0 2 0x14200 zerothread 31244 166270 0 0 3 0x14200 aiodoned aiodoned 35563 75157 0 0 3 0x14200 syncer update 50691 472895 0 0 3 0x14200 cleaner cleaner 40285 242073 0 0 3 0x14200 reaper reaper 4015 88037 0 0 3 0x14200 pgdaemon pagedaemon 32502 378782 0 0 3 0x14200 bored crynlk 12215 467536 0 0 3 0x14200 bored crypto 36882 310721 0 0 3 0x40014200 acpi0 acpi0 98003 464867 0 0 2 0x14200 softnet 68865 478154 0 0 3 0x14200 bored systqmp 71692 903 0 0 3 0x14200 bored systq 78835 352747 0 0 3 0x40014200 bored softclock 20694 50730 0 0 3 0x40014200 idle0 1 81667 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 9491 6340K 7115K 78643K 11421 0 pcb 13 8K 8K 78643K 59 0 rtable 88 2K 3K 78643K 249 0 ifaddr 63 12K 12K 78643K 76 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 2K 78643K 33 0 iov 0 0K 16K 78643K 28 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1516 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 32 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 215 0 sigio 0 0K 0K 78643K 2 0 proc 49 38K 63K 78643K 404 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 13 0 in_multi 25 1K 2K 78643K 65 0 ether_multi 1 0K 0K 78643K 9 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 212 0 pfkey data 0 0K 1K 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 55K 71K 78643K 1376 0 UVM aobj 8 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 56 0 NDP 11 0K 0K 78643K 16 0 temp 91 3036K 3100K 78643K 8246 0 kqueue 3 4K 8K 78643K 18 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 7 0 2 1 0 1 1 0 8 0 rtpcb 80 31 0 29 1 0 1 1 0 8 0 rtentry 112 58 0 24 2 0 2 2 0 8 0 unpcb 120 753 0 743 1 0 1 1 0 8 0 syncache 264 8 0 8 3 2 1 1 0 8 1 tcpqe 32 79 0 79 1 1 0 1 0 8 0 tcpcb 544 106 0 96 2 0 2 2 0 8 1 inpcb 280 268 0 255 2 0 2 2 0 8 1 nd6 48 9 0 7 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 253 0 99 13 1 12 13 0 8 1 art_table 32 254 0 99 2 0 2 2 0 8 0 art_node 16 57 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 4 0 4 1 0 1 1 0 8 1 semapl 112 18 0 8 1 0 1 1 0 8 0 shmpl 112 8 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1700 0 299 88 0 88 88 0 8 0 ffsino 240 1700 0 299 83 0 83 83 0 8 0 nchpl 144 2200 0 595 60 0 60 60 0 8 0 uvmvnodes 72 2008 0 0 37 0 37 37 0 8 0 vnodes 208 2008 0 0 106 0 106 106 0 8 0 namei 1024 5909 0 5909 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 scxspl 192 6289 0 6289 1 0 1 1 0 8 1 plimitpl 152 30 0 23 1 0 1 1 0 8 0 sigapl 424 404 0 374 4 0 4 4 0 8 0 futexpl 56 4701 0 4701 1 0 1 1 0 8 1 knotepl 112 76 0 57 1 0 1 1 0 8 0 kqueuepl 144 46 0 43 1 0 1 1 0 8 0 pipelkpl 16 96 0 86 1 0 1 1 0 8 0 pipepl 120 192 0 173 1 0 1 1 0 8 0 fdescpl 432 388 0 374 2 0 2 2 0 8 0 filepl 120 2998 0 2898 4 0 4 4 0 8 0 lockfpl 104 54 0 53 1 0 1 1 0 8 0 lockfspl 48 21 0 20 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 22 0 12 1 0 1 1 0 8 0 ucredpl 96 175 0 168 1 0 1 1 0 8 0 zombiepl 144 375 0 374 1 0 1 1 0 8 0 processpl 920 404 0 374 4 0 4 4 0 8 0 procpl 624 660 0 624 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 1054 0 1031 4 0 4 4 0 8 1 mcl64k 65536 3 0 3 1 1 0 1 0 8 0 mcl12k 12288 4 0 4 1 0 1 1 0 8 1 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 2 1 1 1 0 8 1 mcl4k 4096 20 0 20 2 1 1 1 0 8 1 mcl2k2 2112 4 0 4 2 1 1 1 0 8 1 mcl2k 2048 61810 0 61764 15 8 7 12 0 8 0 mtagpl 80 13 0 3 2 1 1 1 0 8 0 mbufpl 256 99394 0 99235 14 2 12 12 0 8 0 bufpl 280 4084 0 130 283 0 283 283 0 8 0 anonpl 16 52271 0 39215 71 8 63 69 0 107 7 amapchunkpl 152 2560 0 2419 23 3 20 20 0 158 14 amappl16 192 1893 0 1148 47 8 39 47 0 8 1 amappl15 184 9 0 7 1 0 1 1 0 8 0 amappl14 176 119 0 113 1 0 1 1 0 8 0 amappl13 168 24 0 23 1 0 1 1 0 8 0 amappl12 160 12 0 9 2 1 1 1 0 8 0 amappl11 152 45 0 36 1 0 1 1 0 8 0 amappl10 144 14 0 7 1 0 1 1 0 8 0 amappl9 136 459 0 455 1 0 1 1 0 8 0 amappl8 128 418 0 375 2 0 2 2 0 8 0 amappl7 120 107 0 96 1 0 1 1 0 8 0 amappl6 112 25 0 19 1 0 1 1 0 8 0 amappl5 104 343 0 331 1 0 1 1 0 8 0 amappl4 96 425 0 398 1 0 1 1 0 8 0 amappl3 88 206 0 198 1 0 1 1 0 8 0 amappl2 80 2290 0 2223 2 0 2 2 0 8 0 amappl1 72 16650 0 16234 23 13 10 17 0 8 0 amappl 80 892 0 846 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 9 0 2 1 0 1 1 0 8 0 uaddrrnd 24 394 0 376 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 394 0 376 1 0 1 1 0 8 0 vmmpekpl 168 6659 0 6635 2 0 2 2 0 8 0 vmmpepl 168 53446 0 51591 109 11 98 104 0 357 13 vmsppl 272 393 0 376 2 0 2 2 0 8 0 pdppl 4096 794 0 756 6 0 6 6 0 8 0 pvpl 32 167699 0 151682 171 6 165 171 0 265 30 pmappl 200 393 0 376 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 243 0 16 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(ffffffff821f7cdb) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd805e55a320,fffffd805e55a3a8,1) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd805e55a320,fffffd805e55a3a8) at sbflush+0x93 sys/kern/uipc_socket2.c:934 tcp_disconnect(ffff8000009f6dc0) at tcp_disconnect+0xb4 tcp_usrclosed sys/netinet/tcp_usrreq.c:695 [inline] tcp_disconnect(ffff8000009f6dc0) at tcp_disconnect+0xb4 sys/netinet/tcp_usrreq.c:674 tcp_usrreq(fffffd805e55a320,6,0,0,0,ffff80001d75deb8) at tcp_usrreq+0x478 sys/netinet/tcp_usrreq.c:274 soclose(fffffd805e55a320,0) at soclose+0x2c8 sodisconnect sys/kern/uipc_socket.c:417 [inline] soclose(fffffd805e55a320,0) at soclose+0x2c8 sys/kern/uipc_socket.c:307 soo_close(fffffd80683e3018,ffff80001d75deb8) at soo_close+0x40 fdrop(fffffd80683e3018,ffff80001d75deb8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80683e3018,ffff80001d75deb8) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d75deb8) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d75deb8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d75deb8,ffff80001d782260,ffff80001d7822b0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001d782330) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcd900, 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(ffffffff821f7cdb) at panic+0x15c sys/kern/subr_prf.c:207 sbdrop(fffffd805e55a320,fffffd805e55a3a8,1) at sbdrop+0x3a6 sys/kern/uipc_socket2.c:953 sbflush(fffffd805e55a320,fffffd805e55a3a8) at sbflush+0x93 sys/kern/uipc_socket2.c:934 tcp_disconnect(ffff8000009f6dc0) at tcp_disconnect+0xb4 tcp_usrclosed sys/netinet/tcp_usrreq.c:695 [inline] tcp_disconnect(ffff8000009f6dc0) at tcp_disconnect+0xb4 sys/netinet/tcp_usrreq.c:674 tcp_usrreq(fffffd805e55a320,6,0,0,0,ffff80001d75deb8) at tcp_usrreq+0x478 sys/netinet/tcp_usrreq.c:274 soclose(fffffd805e55a320,0) at soclose+0x2c8 sodisconnect sys/kern/uipc_socket.c:417 [inline] soclose(fffffd805e55a320,0) at soclose+0x2c8 sys/kern/uipc_socket.c:307 soo_close(fffffd80683e3018,ffff80001d75deb8) at soo_close+0x40 fdrop(fffffd80683e3018,ffff80001d75deb8) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80683e3018,ffff80001d75deb8) at closef+0x117 sys/kern/kern_descrip.c:1260 fdfree(ffff80001d75deb8) at fdfree+0x100 sys/kern/kern_descrip.c:1192 exit1(ffff80001d75deb8,0,0,1) at exit1+0x32c sys/kern/kern_exit.c:197 sys_exit(ffff80001d75deb8,ffff80001d782260,ffff80001d7822b0) at sys_exit+0x16 sys/kern/kern_exit.c:95 syscall(ffff80001d782330) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcd900, count: -15