All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Intermittent EHEALTH Failure in FIPS Mode - jitterentropy jent_entropy_init() in Kernel 6.6.14
@ 2024-08-07 13:07 Jeff Barnes
  0 siblings, 0 replies; 10+ messages in thread
From: Jeff Barnes @ 2024-08-07 13:07 UTC (permalink / raw)
  To: linux-crypto@vger.kernel.org

Resending in plain text

Hello,

We are currently migrating to kernel 6.6.14 and encountering intermittent EHEALTH errors that cause a kernel panic in initrd (FIPS mode). The error occurs in the following section of the code:

crypto/jitterentropy.c
722                 /* Validate health test result */
723                 if (jent_health_failure(&ec))
724                         return JENT_EHEALTH;

This is called from jent_mod_init():

337         ret = jent_entropy_init(desc);
338         shash_desc_zero(desc);
339         crypto_free_shash(tfm);
340         if (ret) {
341                 /* Handle permanent health test error */
342                 if (fips_enabled)
343                         panic("jitterentropy: Initialization failed with host not compliant with requirements: %d\n", ret);

We are experiencing up to a 90% failure rate.

In my troubleshooting efforts, I followed the call to jent_condition_data() and attempted to increase the SHA3_HASH_LOOP to give the CPU more work, hoping to collect more entropy:

356
-#define SHA3_HASH_LOOP (1<<3)
+#define SHA3_HASH_LOOP (1<<4)

This adjustment reduced the failure rate to 40-50%, but the issue persists. It is intermittent. It is also intermittent without the change. Sometimes I get a 90% failure rate on 10 reboots, sometimes 0%.

Given the difficulty in reproducing the kernel panic consistently, is there a more effective workaround or solution for this problem?

Your assistance is greatly appreciated.

Best regards,
Jeff Barnes

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-08-24 13:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <DM4PR21MB360932816FA7B848D7D8F7B0C7B82@DM4PR21MB3609.namprd21.prod.outlook.com>
2024-08-07 13:21 ` Intermittent EHEALTH Failure in FIPS Mode - jitterentropy jent_entropy_init() in Kernel 6.6.14 Stephan Mueller
2024-08-08  5:17   ` Herbert Xu
2024-08-08  5:56     ` Stephan Mueller
2024-08-08  6:10       ` Herbert Xu
2024-08-08  6:13         ` Stephan Mueller
2024-08-08  6:20           ` Herbert Xu
2024-08-08 14:08             ` [EXTERNAL] " Jeff Barnes
2024-08-12  6:25     ` [PATCH] crypto: JENT - set default OSR to 3 Stephan Mueller
2024-08-24 13:48       ` Herbert Xu
2024-08-07 13:07 Intermittent EHEALTH Failure in FIPS Mode - jitterentropy jent_entropy_init() in Kernel 6.6.14 Jeff Barnes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.