From nobody Fri Mar 08 19:23:03 2024 X-Original-To: bugs@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 4Trx072Khpz5Dgwb for ; Fri, 8 Mar 2024 19:23:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Trx07025wz55MS for ; Fri, 8 Mar 2024 19:23:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709925783; a=rsa-sha256; cv=none; b=mSyMfA0q1QEZyfKO0TbT6+yYTSXTvW8vcojNmEmdHhrX7PbbeZV9iQ/8hw1nUIXeL//3xK Iw977k2UXYgzuX4Ca4colOKfGWkp0WxPWJh9t1NFW8dLxIXwf4FQywWvLMRnuwHU7SbRBA fIAP4x5AiXYKyB3YnbptiN14nG28RtWwaZ8YXb/0Lih0/zdf4AODnW0Nd8NcxPFbu3jNwp aiH1zSsCyWg1fVZK3MsRuZy9CL2FiFfGvr1PzbcENSYRWUNHlD6+8Oo2FuUqWWM0I8E5aT uDt8m/it2nJcTVaknRN9t8rgL/UPNOK1sIKJuzZ/UMJUvtkU1zw+pZGpceljVg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709925783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TDIKDbKNFa0C1afyyTLQc6lIY5/gU2vAm9WFLpcknV8=; b=eOV29hkKX+hzm5Ucg4/2IdIUz6DId8NSCWSfl9kqhsmrXoGcIT+3a/woE8HtgYKMfi46zv qTNWp5PiDizTSBmjwDiyoYt5QVuqNpdkkGSjQtvt4wCYTKuZ1ka+DFWtXGEJPtOaJsoylf 45OdsE9nQmvGqd5IJShjs5V+/0ZDVWGbeXYpvBq2mYtsq6jEyJ5bYzYJ9whpcB8WRo9u+J NhdUQ4XZErD/l0bbnlg1R8/8dkZ5qmAEEhUnED26yRkieF36RhvHmlZw2mMrq0KQ5XS/gf MKYI6P0xKJobHpqLbU/oXP9z3tPzDwyymCqHUjbIIyKPLt5NZ8bZbNd5DGfcDw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Trx066kwczX59 for ; Fri, 8 Mar 2024 19:23:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 428JN2dx092101 for ; Fri, 8 Mar 2024 19:23:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 428JN2hN092100 for bugs@FreeBSD.org; Fri, 8 Mar 2024 19:23:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 277584] Can't connect with SSH after changing net.inet.udp.recvspace on FreeBSD 13.2 Date: Fri, 08 Mar 2024 19:23:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: claudejgilbert@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277584 Bug ID: 277584 Summary: Can't connect with SSH after changing net.inet.udp.recvspace on FreeBSD 13.2 Product: Base System Version: 13.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: claudejgilbert@gmail.com When increasing net.inet.udp.recvspace on a server (FreeBSD 13.2), I notice= d I can no longer SSH into that server if I set the value higher than 1.86 MB. The current SSH session is kept alive, but if I initiate another simultaneo= us ssh connection, I get the following error message: kex_exchange_identification: Connection closed by remote host Connection closed by 172.31.29.181 port 22 Also, if I close the current SSH session, I am locked out of the server. In /var/log/messages, I notice the following: Jan 11 16:57:23 server-1 sshd[14120]: fatal: bad addr or host: (Name does not resolve) I then checked the ena0 interface: #ifconfig ena0 -v ifconfig: socket(family 2,SOCK_DGRAM): No buffer space available Finally, I checked the network memory buffer space: #netstat -m 3984/2376/6360 mbufs in use (current/cache/total) 0/1270/1270/1004997 mbuf clusters in use (current/cache/total/max) 0/1270 mbuf+clusters out of packet secondary zone in use (current/cache) 3982/1352/5334/502498 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/148888 9k jumbo clusters in use (current/cache/total/max) 0/0/0/83749 16k jumbo clusters in use (current/cache/total/max) 16924K/8542K/25466K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for mbufs delayed (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters delayed (4k/9k/16k) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0 sendfile syscalls 0 sendfile syscalls completed without I/O request 0 requests for I/O initiated by sendfile 0 pages read by sendfile as part of a request 0 pages were valid at time of a sendfile request 0 pages were valid and substituted to bogus page 0 pages were requested for read ahead by applications 0 pages were read ahead by sendfile 0 times sendfile encountered an already busy page 0 requests for sfbufs denied 0 requests for sfbufs delayed As far as I can tell, it doesn't look like network memory buffers are close= to full. I also found that if I increase kern.ipc.maxsockbuf to 3 MB, I am able to increase the net.inet.udp.recvspace to 2 MB and SSH on the server. Apparent= ly, the kern.ipc.maxsockbuf must be set a little higher than the net.inet.udp.recvspace, which makes sense. The command I used to increase/decrease udp socket buffer space: #sysctl net.inet.udp.recvspace=3Dvalue Server specs: FreeBSD server-1 13.2-RELEASE-p8 FreeBSD 13.2-RELEASE-p8 GENERIC amd64 I'm not sure whether this is a bug or not, but I have no idea why this happ= ens. This is a reference to the following discussion on the FreeBSD forums: https://forums.freebsd.org/threads/cant-connect-with-ssh-after-changing-net= -inet-udp-recvspace.91874/ --=20 You are receiving this mail because: You are the assignee for the bug.=