🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

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

--- Comment #15 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-XLR5jnqZeU@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!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!weretis.net!feeder8.news.weretis.net!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:34:21 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-300130-3630-XLR5jnqZeU@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="40834"; 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=1794310461;
	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=Pn7k0vRXHDRCYX7EJxSa4/sjSdk1XAyrEKjNmI2Wn44=;
	b=I63ET1xTqOzsOPwKYCGG41WRlRUajmY00ie1udepEMzaurxR844QXzqlFZ3QemKxrAvAn5
	0cCFlYJxom627mwLpZ6Lbj4Krhrm2/YxVMGSmN0d2tDYC5qUiLgOGAf9hVCRSdbTI1T00V
	1qsWGLrLBtBEy416WLIVcOJ8zgQrj4MSVs74OGFqKlZT78vwI1ShKRowxjyEdBTvGV/D6Q
	SBvrTDGi11f+EbN/f50trwzLa3d2voT0eWRRVXL7EXbWb6+/ZgXATNnk+f8/cENNofqZEy
	sRAaCORjt/BKuCoxNQ5jJyvwP7hvkYllACIEh+kRtnd4NZ1D5Bnzur4vCH5g7g==
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