🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.fs
Article #37

[Bug 300130] nfscl: EXCHANGE_ID verifier bump on every recovery causes client-replacement churn against Linux nfsd

#37
From: bugzilla-noreply
Date: Tue, 10 Nov 2026 11:31
40 lines
3590 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300130

--- Comment #12 from Nick <e@4779.name> ---
Comment on attachment 276661
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=276661
nfscl.patch

>diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c
>index ed19a782c5ba..0e041ea38e29 100644
>--- a/sys/fs/nfsclient/nfs_clrpcops.c
>+++ b/sys/fs/nfsclient/nfs_clrpcops.c
>@@ -1085,8 +1085,16 @@ nfsrpc_setclient(struct nfsmount *nmp, struct nfsclclient *clp, int reclaim,
> 			 * Either there was no previous session or the
> 			 * CreateSession attempt failed, so...
> 			 * do an ExchangeID followed by the CreateSession.
>+			 * Only bump the verifier when there was no previous
>+			 * session (identity reset).  When a session existed,
>+			 * keep the verifier so that a server following
>+			 * RFC 5661 s18.35.4 case 2 reuses the confirmed
>+			 * client record instead of replacing it, destroying
>+			 * all sessions/stateids and re-triggering recovery
>+			 * for every racing operation (PR 300130).
> 			 */
>-			clp->nfsc_rev = rev++;
>+			if (odsp == NULL)
>+				clp->nfsc_rev = rev++;
> 			error = nfsrpc_exchangeid(nmp, clp, &nmp->nm_sockreq, 0,
> 			    NFSV4EXCH_USEPNFSMDS | NFSV4EXCH_USENONPNFS, &dsp,
> 			    cred, p);

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-300130-3630-8HRj7i3siW@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-300130-3630@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.fs
Subject: [Bug 300130] nfscl: EXCHANGE_ID verifier bump on every recovery
 causes client-replacement churn against Linux nfsd
Date: Tue, 10 Nov 2026 11:31:09 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-300130-3630-8HRj7i3siW@https.bugs.freebsd.org/bugzilla/>
References: <bug-300130-3630@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="38463"; mail-complaints-to="news-admin@muc.de"
X-Original-To: fs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1794310269;
	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=6z38jxCAy2u/4eayNoiftwJVQUbdNFtF5sPdmXXi1bQ=;
	b=c8Uex8mKIRVRpzJYy5hJQ8AIv7gKPep11aPDwxITBKplxTwv/DYhFd6gXsXBv88rkVoCpf
	8RoYXjDmiMXWB6Ge9pP+FNKqymvzYHU4kVgMbt7pxLd4H6XPGGM4L5lQA2S159KJ0RRYvU
	brBccXrOMrElWRv0scR1YmqrO+6D8dA2kdi/ikd9iw3h6nQCoMT+M4IWL+fDDDTlpACdUe
	iT8Nt9KPsm01Oli1zjxLWww0QyD4sZRb5RMQJsEJYNvjBFUKz2n6uakfHO6ZlSPOWcRcnE
	wfgql8dJjW5S7luA/TMpEUdDpVFelNAVP89rEAoZHm+d78moyNxuVX6UI+NhdA==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-300130-3630@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes