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: 7f5667a5f8 ("SUNRPC: Clean up rpc_verify_header()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
Trond Myklebust 2023-09-04 12:50:09 -04:00 committed by Anna Schumaker
parent dd7d7ee3ba
commit 611fa42dfa

View File

@ -2751,6 +2751,7 @@ out_msg_denied:
case rpc_autherr_rejectedverf: case rpc_autherr_rejectedverf:
case rpcsec_gsserr_credproblem: case rpcsec_gsserr_credproblem:
case rpcsec_gsserr_ctxproblem: case rpcsec_gsserr_ctxproblem:
rpcauth_invalcred(task);
if (!task->tk_cred_retry) if (!task->tk_cred_retry)
break; break;
task->tk_cred_retry--; task->tk_cred_retry--;