From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26FDD35AC2F; Tue, 7 Apr 2026 19:29:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775590182; cv=none; b=HS2PYu2McbQrmtulCqm4mV9AeKVGKLqOJxu3ZIdU/pMGEt/Cniig4BIiskJc1NKUTf1KsEbguCbJsNGQjTZWR3X3VXO4XGCKKpbAM76A8l1ZekRiNbjWPrAOnzZ8xcCvDs4dTPTH4Ou+6fTtJ6wCtJTTaSFLUZxNmg3gAAqOoiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775590182; c=relaxed/simple; bh=57m/MHhmb5jz7OVk2BzrYzPNeKdwEks4x6zwHLZ0J6I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VwGqP7jMO376O8P69l0gTK72IRZ7ZOCqEM+hRFmw/WMEm851g6CPqYK7kTFkCaNGjMNoH9pDDf3050m8He0k9TXaYmIRtyZxZX25BcbKPLkx3tEBjQGONAS524jEcU9YB4j1hs7JQYjZkRu8Cy32zxS9gVRj2qZo603qLwu6yE0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=AExyMAdr; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="AExyMAdr" Received: by linux.microsoft.com (Postfix, from userid 1216) id 0337820B7135; Tue, 7 Apr 2026 12:29:41 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 0337820B7135 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1775590181; bh=s7BvHIXUu/KyBlp0Bh64m9iU1jIIBC4g+vpzAyrmhA8=; h=From:To:Cc:Subject:Date:From; b=AExyMAdr/2moVZ3cwtjXrEfUHWE8ytLxMd0Bi3A3BWIfMTPoNYqZgo6ige9DgkoAu eAbIdTsod9SyuHLV177tEg9OwAnZdUZa/hgWdX1n7vGFk0b8lohV77HAHWxXFUD+FP k0W3kNaUohEn0/X3HcoAoTUNCvkqDkRbHH39wz84= From: Hamza Mahfooz To: linux-crypto@vger.kernel.org Cc: Herbert Xu , "David S. Miller" , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hamza Mahfooz , Jeff Barnes , Paul Monson Subject: [PATCH] crypto: tstmgr - guard xxhash tests Date: Tue, 7 Apr 2026 12:28:59 -0700 Message-ID: <20260407192859.270745-1-hamzamahfooz@linux.microsoft.com> X-Mailer: git-send-email 2.43.7 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit If the kernel isn't built with CONFIG_CRYPTO_XXHASH and booted with FIPS mode enabled it will currently panic. So, only benchmark xxhash64 if CRYPTO_XXHASH is enabled. Cc: Jeff Barnes Cc: Paul Monson Signed-off-by: Hamza Mahfooz --- crypto/testmgr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 4985411dedaec..9e4a040029ab8 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -5609,7 +5609,9 @@ static const struct alg_test_desc alg_test_descs[] = { #endif .alg = "xxhash64", .test = alg_test_hash, +#if IS_ENABLED(CONFIG_CRYPTO_XXHASH) .fips_allowed = 1, +#endif .suite = { .hash = __VECS(xxhash64_tv_template) } -- 2.53.0