From: Trond Myklebust Date: Mon, 4 Sep 2023 16:50:09 +0000 (-0400) Subject: SUNRPC: Mark the cred for revalidation if the server rejects it X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=611fa42dfa9d2f3918ac5f4dd5705dfad81b323d;p=linux.git SUNRPC: Mark the cred for revalidation if the server rejects it 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()") Signed-off-by: Trond Myklebust Signed-off-by: Anna Schumaker --- diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 8d75290f1a31d..5c37621aa09af 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -2751,6 +2751,7 @@ out_msg_denied: 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--;