From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys Date: Wed, 28 Jul 2021 12:58:58 -0700 Message-ID: <87k0lamcql.fsf@secretsauce.net> References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> <87zgubr31n.fsf@secretsauce.net> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> <87tukjr1lq.fsf@secretsauce.net> <87eebnmqty.fsf@gmx.de> <87lf5vqya5.fsf@secretsauce.net> <87o8aqwp1v.fsf@gmx.de> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9212"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 28.0.50 Cc: 49714@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 28 22:00:24 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8pj3-00028K-Pb for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Jul 2021 22:00:23 +0200 Original-Received: from localhost ([::1]:48864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8pj2-0001TY-1c for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Jul 2021 16:00:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8pik-0001RN-Gw for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2021 16:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8pik-0006ZS-99 for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2021 16:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m8pij-0000nC-VE for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2021 16:00:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jul 2021 20:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49714 X-GNU-PR-Package: emacs Original-Received: via spool by 49714-submit@debbugs.gnu.org id=B49714.16275023572949 (code B ref 49714); Wed, 28 Jul 2021 20:00:01 +0000 Original-Received: (at 49714) by debbugs.gnu.org; 28 Jul 2021 19:59:17 +0000 Original-Received: from localhost ([127.0.0.1]:55905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8pht-0000lK-1o for submit@debbugs.gnu.org; Wed, 28 Jul 2021 15:59:17 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:43527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8phq-0000kn-3X for 49714@debbugs.gnu.org; Wed, 28 Jul 2021 15:59:07 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B44AC5C0126; Wed, 28 Jul 2021 15:59:00 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 28 Jul 2021 15:59:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm3; bh=ga2cZdrIVN58kTHEzy4LZrDTg3 lKAjMB3IMLRe0ahBU=; b=pZrPjMpkEaC9yYxoNEK4+Y26EwTj5IBF0EtXw3nVW3 itDNLHdAnMuSHOkCzs80J57Ykb9nkr3SFzEAQn1fWLc6wCODRNuPTeZUPHmIFIFo p0kGA6oExIwuRkSBGynP21hbdFvT86JrCScW3SAB4jxbjge7kH8tx8Sk0lhIYRYL mRds3ypPZautdleumjlr12MH8oMguzQLa/blGcPinvo3icgkqr+iTcoOS8K7/xw8 D6Ik7bhZ+xem9fKU20rgV1l0SIi2FUYgvOKp5i9dfyHI7cbAVMehFjDfIqgJfiOk gviCw2zmjqURJkQMqsvYM3S7Aa3Npieq+Xwb8dAm8Y2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ga2cZd rIVN58kTHEzy4LZrDTg3lKAjMB3IMLRe0ahBU=; b=DeQkHArMQ90yO2OXchelhL ylYFZQrU8CwCPE8FzypHQ9YOa/6Zk6OB5cVXc2X5bP5kKpgGe9w6gQOsnzd/+R4P lyufMXN08PWCsFEf2g+1ye6phR+ugQwqoTPW5TUlYZoT6D9L9KNGKvV6GQSdUHCZ DNlI5J4R1Qmj+UVgIdFJVn/sjExa3z3SQBMMOibmFZExKO6+fEF0RCRmyhJElIKI NZFBOTRD8tI3Yvm5Czg/442eh9HszBDXWfHdUOUQK4U003l3CgnN0cOxKANLrNGi yqJA9phxPQtHzYASgwV7Cg85Cjse0aDSiNQVLwnBH5qmOcP59xRFK/Vf3cvGLipQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrgeelgdduudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnhepfeevfefgtedtfedvtefgkedvtdffvefhveellefhjeehlefgudfftdeiudeu keehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug himhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Jul 2021 15:58:59 -0400 (EDT) In-reply-to: <87zgu6sy7r.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210842 Archived-At: Michael Albinus writes: > Well, while you see the message, Tramp is looping with > accept-process-output in order to check, whether the yubikey has been > pressed. This is not different from everything else Tramp does, until > the remote shell prompt has been detected. So I don't see what we > could do otherwise ... I understand this argument. However, as a user, I would fully expect emacs to behave the same way while it's waiting for the passphrase as it does when waiting for me to touch the yubikey. Currently the passphrase input stage feels normal, while the wait-for-touch stage feels frozen. On a deeper level, in both cases we're waiting for some specific data to come from an OS file descriptor: either something ultimately connected to the keyboard, or the ssh process. Maybe this isn't worth the effort to fix, but it is a problem. > Btw, there is a timeout of 30 seconds. When you don't press the > yubikey during this time, Tramp shall cancel the authentication > process. Perhaps you could give this also a short test? Yes. Let me do that later today. The passphrase query itself (from ssh, unrelated to emacs) has some timeout too, which maybe expires before 30 sec. I will check. Thanks so much for implementing this!