Skip to contentSkip to conversation

SUNRPC: Mark the cred for revalidation if the server rejects it

PATCH New [email protected] 1 participant 1 message Sep 4, 2023

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 SUNRPC: Mark the cred for revalidation if the server rejects it

From: Trond Myklebust <[email protected]>

If the server rejects the credential as being stale, or bad, then we should mark it for revalidation before retransmitting.

Fixes 7f5667a5f8c4 ("SUNRPC: Clean up rpc_verify_header()")
---
 net/sunrpc/clnt.c | 1 +
 1 file changed, 1 insertion(+)
net/sunrpc/clnt.c +1 -0
index 943dc3897378..12c46e129db8 100644
@@ -2750,6 +2750,7 @@ rpc_decode_header(struct rpc_task *task, struct xdr_stream *xdr)
 	case rpc_autherr_rejectedverf:
 	case rpcsec_gsserr_credproblem:
 	case rpcsec_gsserr_ctxproblem:
+		rpcauth_invalcred(task);
 		if (!task->tk_cred_retry)
 			break;
 		task->tk_cred_retry--;
Signature · 1 line
2.41.0