From nobody Tue Feb 08 22:43:15 2022 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 181A719B13BF for ; Tue, 8 Feb 2022 22:43:16 +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 4JtdMR5H5Yz3JGS for ; Tue, 8 Feb 2022 22:43:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 951DC2200F for ; Tue, 8 Feb 2022 22:43:15 +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 218MhFDm098710 for ; Tue, 8 Feb 2022 22:43:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 218MhFmQ098709 for bugs@FreeBSD.org; Tue, 8 Feb 2022 22:43:15 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 261291] ESX NFS4.1 client hangs, server never responds to EXCHANGE_ID/CREATE_SESSION Date: Tue, 08 Feb 2022 22:43:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rmacklem@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644360195; 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: in-reply-to:in-reply-to:references:references; bh=BLAK6sqamqqlROINcCfh343mgKWsnRi/fe5n21oRi8k=; b=M0H6pSDBtWI6oLyXzX7DB5NH6uniIBxEh1QjT4B7Q/TSVjFigtOPTpmBwFYEtw47LUUfRE mZLWTvmjbq7q2EoEC1x4ZXIij19caHy1zGMHV2WekYiqKLOzDUN3O7qwenvwv58fRJ6LfW z39ph0Sn5JA3rKX80pm5mKTw97oU0KSuhsMA4FS2+jnbfZA7zlwkkCiqVKmjITKxybvL9O L7jLLp2PRsiP2mS6NXowpx+r0MZbszrx3vFz4Jd8AHqglwY49u9mjKaGKy3D4AglsUvy2j iBizzx85vzCLmdsVBJbgctqn24zCXVfODQkgOABjA71GTkMovzcaylOBgJBixA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644360195; a=rsa-sha256; cv=none; b=IHu/6I9ZAJfS3hHHtEPZYNM+ryDshduk7P8L8U0cv9F7BMxZK+QXNeQc2kdhVL7d4spprE k17VEVHoCYHDV2MrvU+wx3tKudWSFkX+ULJdwhP25d6+YJ4XM7Pn0YLbHI/gNsYFXEgbWb IvsJEzlQYw7CwveRxKofxIhd0My8OGjirNzPgKxuYAe2s913IMxfCJBUtlapYa6m9tdK0n xgypxOxSc7vzePkP5pB7YAv32guRv4s0NPGdPXJo+5mkfOEUFpSGG3Jryjwju4mCPYVGZ5 z+MWZqBb9XHzZEv2TNUXHj+J6evWzO3UvH4+XrM9c1cDd3Tf3k3KpIp0TNc9zg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261291 --- Comment #13 from Rick Macklem --- Ok, I looked and this time the packet trace makes it clear. The ESXi client is broken. If you look at the seqid after the clientid in packet #477 (the Exchange_ID reply), you will see it is 0. If you look at the seqid in the CREATE_SESSION request in packet #478, you will see it is 39. They must be the same, as noted by the RFC... csa_sequence: Each client ID serializes CREATE_SESSION via a per-client ID sequence number (see Section 18.36.4). The corresponding result is csr_sequence, which MUST be equal to csa_sequence. The RFC does not seem to make it crystal clear what the error reply should be. The FreeBSD server uses NFS4ERR_STALE_CLIENTID. If the VMware engineers argued that it should be a different error, that could be changed in the FreeBSD server code. Since they send a bogus seqid argument, I doubt it matters which error the FreeBSD server sends in the reply. This is basically the same bug that shows up when multiple trunks (multiple TCP connections) are used by the client. In that case, it usually succeeded after several hundred tries, when the seqid values happen to be the same. If you have a maintenance contract with VMware, you can try reporting the bug to them. I have no way of doing so. Also, doing the DESTROY_SESSSION, EXCHANGE_ID, CREATE_SESSION makes no sense to me. If there is a problem with a TCP connection, other clients (Linux and FreeBSD, plus others) create a new TCP connection. They only do the above commands if the server replies NFS4ERR_EXPIRED. --=20 You are receiving this mail because: You are the assignee for the bug.=