Skip to content

Commit 611fa42

Browse files
Trond Myklebustamschuma-ntap
authored andcommitted
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: 7f5667a ("SUNRPC: Clean up rpc_verify_header()") Signed-off-by: Trond Myklebust <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent dd7d7ee commit 611fa42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sunrpc/clnt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,6 +2751,7 @@ rpc_decode_header(struct rpc_task *task, struct xdr_stream *xdr)
27512751
case rpc_autherr_rejectedverf:
27522752
case rpcsec_gsserr_credproblem:
27532753
case rpcsec_gsserr_ctxproblem:
2754+
rpcauth_invalcred(task);
27542755
if (!task->tk_cred_retry)
27552756
break;
27562757
task->tk_cred_retry--;

0 commit comments

Comments
 (0)