Whamcloud - gitweb
LU-16532 sec: session key bad keyring 09/49909/2
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 12 Jan 2023 09:18:48 +0000 (10:18 +0100)
committerOleg Drokin <green@whamcloud.com>
Tue, 14 Feb 2023 06:06:24 +0000 (06:06 +0000)
commit1f034cf610deeb6b070338a9d005b75ce964f945
tree7a38b89d39b6ef729bd1de832d110467ce455ef8
parent7fe7f4ca06b9c8d128f7ba36988e36f8141ed53d
LU-16532 sec: session key bad keyring

At initialization, the session key created for GSS context is linked
to a keyring from userpace, and then unlinked from kernelspace if it
is for root, as we want to share it across all root sessions.
Sometimes initialization fails (expired token, unresponsive server,
etc.) so the key cannot be unlinked. Survive this use case gracefully.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I8ad2afa0e51e50640620e36211e5db1253d85e08
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49909
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/gss/gss_keyring.c
lustre/utils/gss/lgss_keyring.c