projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd7d7ee
)
SUNRPC: Mark the cred for revalidation if the server rejects it
author
Trond Myklebust
<trond.myklebust@hammerspace.com>
Mon, 4 Sep 2023 16:50:09 +0000
(12:50 -0400)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Wed, 13 Sep 2023 15:51:11 +0000
(11:51 -0400)
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>
net/sunrpc/clnt.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/clnt.c
b/net/sunrpc/clnt.c
index 8d75290f1a31d23d5f61439c18549ed76c36ced8..5c37621aa09af6b17adc76fab4079889be15137e 100644
(file)
--- 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--;