From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-01.nifty.com (conssluserg-01.nifty.com [210.131.2.80]) by sourceware.org (Postfix) with ESMTPS id 512353839C44 for ; Fri, 6 Aug 2021 11:14:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 512353839C44 Received: from Express5800-S70 (z221123.dynamic.ppp.asahi-net.or.jp [110.4.221.123]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 176BE27G016962 for ; Fri, 6 Aug 2021 20:14:02 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 176BE27G016962 X-Nifty-SrcIP: [110.4.221.123] Date: Fri, 6 Aug 2021 20:14:03 +0900 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: SSHD causes 100% CPU load Message-Id: <20210806201403.cbd0dcfb64bea6fe7712f813@nifty.ne.jp> In-Reply-To: References: <145999495.20210426124252@cfos.de> <1342428656.20210428072302@yandex.ru> <20210805191242.b29a3904cbc4d082bdc3dd37@nifty.ne.jp> <20210806014331.899fb21f181e664663c328ae@nifty.ne.jp> <20210806105507.47c573639b0762ba91828023@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2021 11:14:27 -0000 On Fri, 6 Aug 2021 11:11:05 +0200 Corinna Vinschen wrote: > On Aug 6 10:55, Takashi Yano via Cygwin wrote: > > Hi Corinna, > > > > On Fri, 6 Aug 2021 01:43:31 +0900 > > Takashi Yano wrote: > > > Hi Corinna, > > > > > > On Thu, 5 Aug 2021 17:07:24 +0200 > > > Corinna Vinschen wrote: > > > > Could you perhaps bisect the issue on your machine? > > > > > > In my environment, this does not happen with 8.4p1-1 and 8.4p1-2. > > > However it happens with 8.5p1-1. > > > [...] > > I looked into the openssh code and might find a calprit. > > I guess the following patch solves the issue. > > > > --- serverloop.c.orig 2021-03-02 19:31:47.000000000 +0900 > > +++ serverloop.c 2021-08-06 10:41:55.439357200 +0900 > > @@ -333,7 +333,7 @@ > > return -1; > > } else if (len == -1) { > > if (errno == EINTR || errno == EAGAIN || > > - errno != EWOULDBLOCK) > > + errno == EWOULDBLOCK) > > return 0; > > verbose("Read error from remote host %s port %d: %s", > > ssh_remote_ipaddr(ssh), ssh_remote_port(ssh), > > > > > > This seems to be a upstream bug which has been already fixed. > > > > Please refer to: > > https://github.com/openssh/openssh-portable/commit/2dc328023f60212cd29504fc05d849133ae47355 > > Gosh, looks like I totally missed the 8.6p1 release! > > I'll build and upload 8.6p1 ASAP. I have confirmed that the issue has been fixed in 8.6p1-1. Thansk. -- Takashi Yano