Whamcloud - gitweb
LU-17317 gss: do not continue using expired reverse context 75/53375/3
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 7 Dec 2023 17:07:09 +0000 (18:07 +0100)
committerSebastien Buisson <sbuisson@ddn.com>
Tue, 12 Dec 2023 07:46:11 +0000 (08:46 +0100)
commit65f91673262098aa6d97448f68a036b0f2cdfd98
tree7087b02d2f46af8f63f8b328118cfa078d24a1cd
parentd0babe6bd8b38cb86875c5e3d92aee4c69986ce9
LU-17317 gss: do not continue using expired reverse context

In case a server uses an expired gss context to send a callback
request to a client, it might be that the associated context on
the client has already expired, and been purged from the cache.
This results in a GSS_S_NO_CONTEXT reply.
In this specific scenario, the server must mark its reverse context
as dead. This will lead to destruction of the expired context, and
creation of a new context suitable for further callback requests.

Test-Parameters: kerberos=true testlist=sanity-krb5
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I4af90cd70a3815851ec555ea85b49714c8da4202
lustre/ptlrpc/gss/gss_keyring.c
lustre/ptlrpc/gss/sec_gss.c