From bdb254df1060f1ad4b21d53396b5b4014c926758 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Tue, 11 Oct 2016 11:43:07 -0600 Subject: [PATCH] LU-3289 ssk: fix SK_IV_REV_START on 32-bit systems Use a 64-bit constant for SK_IV_REV_START so that it doesn't overflow on 32-bit systems. Test-Parameters: trivial testlist=sanity-sec Signed-off-by: Andreas Dilger Change-Id: Ie790f7ea438847b18e7b83689e3816ceffe2ddd7 Reviewed-on: http://review.whamcloud.com/23089 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/ptlrpc/gss/gss_sk_mech.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ptlrpc/gss/gss_sk_mech.c b/lustre/ptlrpc/gss/gss_sk_mech.c index f88e576..9bae7b8 100644 --- a/lustre/ptlrpc/gss/gss_sk_mech.c +++ b/lustre/ptlrpc/gss/gss_sk_mech.c @@ -59,7 +59,7 @@ * use the the negative range of a 64-bit number and regular contexts use the * postive range. If the same IV/nonce combination were reused it would leak * information about the plaintext. */ -#define SK_IV_REV_START (1UL << 63) +#define SK_IV_REV_START (1ULL << 63) struct sk_ctx { __u16 sc_hmac; -- 1.8.3.1