Whamcloud - gitweb
LU-17015 gss: support large kerberos token for rpc sec ctxt 05/52305/23
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 7 Sep 2023 07:33:36 +0000 (09:33 +0200)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Nov 2023 21:43:56 +0000 (21:43 +0000)
commit473a41fec6fb600c9b6e26010d88772f5252d1e1
tree77ae03fe38e417263bef6f52f2d04a0e129da5a9
parent25523e5a35138a0534b01ff561169e501cc30787
LU-17015 gss: support large kerberos token for rpc sec ctxt

If the current Kerberos setup is using large token, like when PAC
feature is enabled for Kerberos, authentication can fail due to server
side unable to exchange token between kernel and userspace.
This limitation is inherent to the sunrpc cache mechanism, that can
only handle tokens up to PAGE_SIZE.

For RPC sec context phase, use Lustre's upcall cache mechanism
instead of deprecated kernel's sunrpc cache. Note this phase does not
involve a proper upcall, only the downcall part is relevant to
populate the context computed in userspace.

Test-Parameters: kerberos=true testlist=sanity-krb5
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I94e945a99cab60d5b6a4c40076c40fffede217ab
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52305
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Aurelien Degremont <adegremont@nvidia.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
12 files changed:
lustre/include/uapi/linux/lustre/lgss.h
lustre/include/upcall_cache.h
lustre/ptlrpc/gss/gss_internal.h
lustre/ptlrpc/gss/gss_svc_upcall.c
lustre/ptlrpc/gss/lproc_gss.c
lustre/ptlrpc/wiretest.c
lustre/tests/recovery-small.sh
lustre/tests/sanity-sec.sh
lustre/tests/sanity.sh
lustre/utils/gss/svcgssd_proc.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c