diff options
author | Trond Myklebust | 2023-09-04 12:50:09 -0400 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-10-06 14:56:31 +0200 |
commit | 839e07de9a0a5de098283e53d243e14a1f4bc92c (patch) | |
tree | 0bc2e642f5a9e6c12ebc5ff9d5fde3868a8eef2a | |
parent | 13acbca81eeeb6c205117f602400bbf77bf5948b (diff) |
SUNRPC: Mark the cred for revalidation if the server rejects it
[ Upstream commit 611fa42dfa9d2f3918ac5f4dd5705dfad81b323d ]
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 <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | net/sunrpc/clnt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index b0258507b236..ff6728e41e04 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -2736,6 +2736,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--; |