Whamcloud - gitweb
LU-17015 gss: bump token buffer size to 16KiB
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 22 Sep 2023 15:48:51 +0000 (17:48 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 14 Oct 2023 10:47:42 +0000 (10:47 +0000)
A 4 KiB large buffer is not enough to hold the GSS token under some
circumstances. So bump GSS_CTX_INIT_MAX_LEN value to 16 KiB.

Lustre-change: https://review.whamcloud.com/52475
Lustre-commit: TBD (from 43a540207da0198cc9c45b3c6312c555702b56cb)

Fixes: 9758129177 ("LU-17015 gss: support large kerberos token on client")
Test-Parameters: trivial kerberos=true testlist=sanity-krb5
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I8e72f1447593d2bf2ae537fcc920ceee20e93c09
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52628
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/ptlrpc/gss/gss_internal.h
lustre/tests/sanity-krb5.sh

index 5b0eab4..9f8c984 100644 (file)
@@ -299,7 +299,7 @@ static inline struct gss_sec_keyring *sec2gsec_keyring(struct ptlrpc_sec *sec)
 # define cache_read_unlock(cdetail) read_unlock(&((cdetail)->hash_lock))
 #endif
 
-#define GSS_CTX_INIT_MAX_LEN            (4096)
+#define GSS_CTX_INIT_MAX_LEN            (16384)
 
 /*
  * This only guaranteed be enough for current krb5 des-cbc-crc . We might
index 14a5a51..8aad873 100755 (executable)
@@ -470,7 +470,7 @@ test_8()
        $RUNAS touch $DIR/$tdir/$tfile &
        TOUCHPID=$!
        echo "waiting for touch (pid $TOUCHPID) to finish..."
-       sleep 2 # give it a chance to really trigger context init rpc
+       sleep 30 # give it a chance to really trigger context init rpc
        do_facet $SINGLEMDS $LCTL set_param fail_loc=0
        wait $TOUCHPID || error "touch should have succeeded"