X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D786B39A1805 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1628258474; bh=174v9RF/E7tUS+2tRns/en6HMq4BaPxTZahktsfHLSI=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=qaGkijzfRCU9Jo+dy79GY/OaaAySWBzQoMd4ekozNGlGeaEiAzR65rOvxxtkdpqJT dMFk7sPNiiCJbEK5Uh5Lt8KzwtsnoJP80q38vSDHHrhVwg22uRVyqrkAYn9EoL5NmQ O6FYNUf9WJG8RiKobN0hMSAkconFjmxC8ikQJXD8= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 394CE39A183F Date: Fri, 6 Aug 2021 15:59:01 +0200 To: cygwin AT cygwin DOT com Subject: Re: SSHD causes 100% CPU load Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: <145999495 DOT 20210426124252 AT cfos DOT de> <1342428656 DOT 20210428072302 AT yandex DOT ru> <20210805191242 DOT b29a3904cbc4d082bdc3dd37 AT nifty DOT ne DOT jp> <20210806014331 DOT 899fb21f181e664663c328ae AT nifty DOT ne DOT jp> <20210806105507 DOT 47c573639b0762ba91828023 AT nifty DOT ne DOT jp> <20210806201403 DOT cbd0dcfb64bea6fe7712f813 AT nifty DOT ne DOT jp> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210806201403.cbd0dcfb64bea6fe7712f813@nifty.ne.jp> X-Provags-ID: V03:K1:UEdZ3CKK93ZuVl8OJ3Jx0ZtPG9YvOkVJrzTJzGlp6U8cJ7KPh48 SmCqdxvXC0ak88C3MZuauoHefaf/1iF2lnyK4Q3R4RDV+QCjkq+2Jg7RN5hK2eorMBYo0Dj 9viOJKQXg0kS28FB5cgiCuijWR3jgRFts1trjJJJDCvKOC03L2D6T9m8zZ8u0jJB5dKel6s JgzmYS8EZ1T+e3t6/natA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ek4ZIExkK+k=:AVKSjQ9y+/eMbYnIuunQqm gAR+hP2UuT3ZkXUz9bs1KGGRpGl1J/LHCrxjVCBt8xQbvMxFcIbasTImibF/NEJeNYmudE4Yt BQY5Y7wVOrofOQrqjonmylWBB1G0EDA/gdM8edQFLsXq7qlOQGbdvEVYp8LZpTmb7AtTMkvJm Q3F0dFtBHCcQAibKcYAOa5MMvK0AsxTy9c+8g2zVa7m7s79fycnHgt/zN/WgOfFzccoaJNhII q9L3GIyLXPRQos24LYfj/q3+XdtlHffP9XC8kQIYItVA6j++ea894fTpsn5MyVN5dKZz6yOky FJpwXYhDze+FfuZqzvuC5ebmLWMRiSA/VQCwpXuc55/Q88RQ9HFfYjZU/nmn+yK1G0dojYjn8 nhL0fz2h3Od/ucmzn6/DeOOCW9I+77MroTdW/409FYUSOOCykzrRA5GJdFtpuf00pM3scrpwr tKYIt6ucEd8iGnEkE3ESEd+s4kAGrXZEhK4br1bl67BeknIoz50ay3TPjzif3rfQrJkeQ7zOC r/IkweInXO5cPMhxZUQ9nSs5qDTE3a+vl23fkFwGHjCbNvSCe+o/fEehVyLviiiowiC1Xi6DS mWDJkQKJhCsYBv8OgYlekSsDw0rUOO/wkpykXH5C/hO8gYBAs2s5WvbC4fN2ORS8fm17ZlmuT oEyw3B3qGrH5xP7nAAXinQqr6k9Ypt9BvSqSVXjBhHmAul20gkrmcjpNhBfgBrovKtCXEan7R 4aYmKsIzKg86lz3ALkkQTvEQoWEVGIifelYLo0F7CMgpTpbv6gmiPpElxLsxAzG+eGeIY2T8Y 0BFQWNaW9yrs80mxDKSF/myavRVZCQmwJm+sy890NAGJO1xS+9Wg/d5Y+RGJ+wovxzWbdO8EG KRG9NYei6e1NgBHUF9IQ== 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 AT cygwin DOT 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: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Aug 6 20:14, Takashi Yano via Cygwin wrote: > 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. Great, thanks for testing! Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple