From nobody Fri Sep 29 18:12:00 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rxz2d3QKYz4vTqD for ; Fri, 29 Sep 2023 18:12:09 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rxz2b5Th7z3CFf for ; Fri, 29 Sep 2023 18:12:07 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net; dmarc=none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.17.1/8.15.2) with ESMTPS id 38TIC006059969 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Fri, 29 Sep 2023 11:12:00 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.15.2/Submit) id 38TIC0t1059968 for freebsd-arm@freebsd.org; Fri, 29 Sep 2023 11:12:00 -0700 (PDT) (envelope-from fbsd) Date: Fri, 29 Sep 2023 11:12:00 -0700 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Stable/14 dropping ssh connections to FT232 usb-serial adapter Message-ID: List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Bar: / X-Spamd-Result: default: False [0.57 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; NEURAL_HAM_SHORT(-0.89)[-0.888]; NEURAL_SPAM_LONG(0.55)[0.554]; MID_RHS_WWW(0.50)[]; WWW_DOT_DOMAIN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[zefox.net]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4Rxz2b5Th7z3CFf A stable/14 install on a Pi2 v1.1 (armv7) host seems to work quite well, apart from dropping ssh connections when used to run a cu or tip session to an FT232 usb-serial adapter. Ssh connections to interactive shells seem to remain up indefinitely, but drop within a couple of hours (between the same hosts) when used to run cu or tip. The only debug info provided by ssh looks like: login: Sep 29 08:25:19 pelorus sshd[53926]: error: PAM: Authentication error for illegal user username from 179.63.55.224 Sep 29 08:31:52 pelorus sshd[53966]: error: Fssh_kex_exchange_identification: Connection closed by remote host [....] Sep 29 08:41:05 pelorus sshd[54026]: error: PAM: Authentication error for illegal user ubnt from 103.146.55.222 FreeBSD/arm64 (pelorus.zefox.org) (ttyu0) login: debug3: send packet: type 1 client_loop: send disconnect: Broken pipe bob@raspberrypi:~ Since the problem doesn't happen when running a shell, it's tempting to think this is caued by tip, cu or maybe the driver for the adapter. It seems to be confined to stable/14, neither current nor 12.4 has this tendency. The stable/14 host is up to date as of yesterday. This sort of trouble has been present for some time on -current for both Pi2 (armv7) and Pi3 (aarch64), but it seems to have gone away on aarch64, which now holds ssh-to-ft232 sessions indefinitely. Thanks for reading, and any hints. bob prohaska .