🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.fs
1 messages
1 total messages Started by bugzilla-noreply Tue, 10 Nov 2026 11:31
[Bug 300130] nfscl: EXCHANGE_ID verifier bump on every recovery causes client-replacement churn against Linux nfsd
#38
Author: bugzilla-noreply
Date: Tue, 10 Nov 2026 11:31
40 lines
3607 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300130

--- Comment #13 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads