From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by sourceware.org (Postfix) with ESMTPS id 134263857420 for ; Fri, 6 Aug 2021 09:11:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 134263857420 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N5VTm-1nE0v222Oo-016wiC for ; Fri, 06 Aug 2021 11:11:06 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 75CBBA80DE2; Fri, 6 Aug 2021 11:11:05 +0200 (CEST) Date: Fri, 6 Aug 2021 11:11:05 +0200 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: SSHD causes 100% CPU load Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <145999495.20210426124252@cfos.de> <1342428656.20210428072302@yandex.ru> <20210805191242.b29a3904cbc4d082bdc3dd37@nifty.ne.jp> <20210806014331.899fb21f181e664663c328ae@nifty.ne.jp> <20210806105507.47c573639b0762ba91828023@nifty.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210806105507.47c573639b0762ba91828023@nifty.ne.jp> X-Provags-ID: V03:K1:KcSMwucTD+YixfVr7PWw+l4QeGN8QVcH1FYmibi/HLn+cMmHRzp Hh9RiQpzylYXjjimdWER/79pGqL0GWfG7l1us48njs8GYACcPnyHe6p9AoWMydmkNM3hTa6 FMLGjDMuouNW5X3uUjDdUkttcIPz9lcry/1mFPKMtY0NoDEigBioZWY4eH0w9DSPQsiwBFy EdQTYvOQBviKrrIoVU1bw== X-UI-Out-Filterresults: notjunk:1;V03:K0:uGqHbaOdP2k=:zTRLDnjUwMNVCbJjnLWSgF hRvrsZl1NbuDCZxMJyj5Q+eYt6tjKADE1xDc7fY0NdXdWz2AREPbfUKciJQf+PlolaIDs9zQT VEW1gY8dFE1HNo/LwbhJkbMPrWwsUi9VEQpU2iNLTtGRPefhYmos0DsW5p5eih47qHz/9RXuV uSXowHcTXC6ofxNZyWsVctV/jq/6uNQlEXMahu55rMEAX+GVoVeobVQ0KF0deO+tBp87NeUSv H4JAa1dqO3e1uyLY2dbChS7MsGxB7TPzcNY009UteUGe/252in02EAZe5NhF+62cEf1KxM9SB CJSPplIeCz44VLHAQWRkFViYWnXiyRn9uegutaH8KErdotjaDfPHgNriQM53PcwNOX+SzE1Ko 9Qv480iXIhkGS2WimO5B6lFSBNTo2TwZzKfkih4VpdL0RrR9Z6uEY95GWz1qoGSYFL0ZKfPpf ZEw/sjGMHJkhT+ka0xyL0GWfWxZyH7V3oqgJ+GtRBy2anBLwqnGrwSMGbIS8pvmRBuHwXKx6S jdMlJaZB/eKbos242nWH0Ol7PinNaFdkjCTSyCojdckAxX7MepKdcCxEP1h5WSolBJKGYXVFW 7TIo0cRtUwjZiMIn22fUlyhh7M4e1RJNuv3zxbZs/bwOCW003fn/I0NzRxob4zu4aKfEv3WpA Qr9Kd6/Ke+TdWBEUJ0uPcWw2p/7EtFB9umLjv5fYACAv829vqKlLqWgFkiWnWQpRVSyC4z439 UYH4P6QSZxbykSrlVG/z3V4RYNW63m3IyXGW2Ax3FwLZFb1+xZXj7OjGADa6CcQ1u4EVFrUnA ZbuiQnAbTaJRUd660ScsOH/VgasP+phFBBKkYBZKDHwakD17qGNkUyz6xj4TUeR2yorJhP4VL CEkJQY3BVSPVzXF3iurw== X-Spam-Status: No, score=-99.9 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NEUTRAL, 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 09:11:09 -0000 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. Thanks, Corinna