Whamcloud - gitweb
LU-17015 gss: bump token buffer size to 16KiB 75/52475/3
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 22 Sep 2023 15:48:51 +0000 (17:48 +0200)
committerSebastien Buisson <sbuisson@ddn.com>
Thu, 28 Sep 2023 07:38:55 +0000 (09:38 +0200)
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.

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

lustre/ptlrpc/gss/gss_internal.h
lustre/tests/sanity-krb5.sh

index 8fc39e8..fc37409 100644 (file)
@@ -281,7 +281,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 017f18a..c497155 100755 (executable)
@@ -426,7 +426,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"