-
Notifications
You must be signed in to change notification settings - Fork 830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix benchmark failure on FIPS builds #6623
Conversation
Retest this please |
Retest this please |
64df3bb
to
e823da9
Compare
Can't seem to get it to re-test or pass this macOS check in GitHub CI. I went ahead and rebased and force pushed. Let's see if we still get a failure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaleb-himes please finalize and merge if you are happy.
examples/benchmark/tls_bench.c
Outdated
int ret = 0; | ||
int cast_idx = 0; | ||
|
||
for (cast_idx=0; cast_idx<FIPS_CAST_COUNT; cast_idx++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should have spaces around '=' and '<'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bigbrett please fix. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in latest commit. @dgarske thank you for bringing this PR back from the dead!!
…-fix Fix benchmark failure on FIPS builds
Description
Fixes bug where
tls_bench
can fail on FIPS builds in a multithreaded environment because of simultaneous attempts by client and server threads to run a CAST on-the-fly during the TLS handshake. This usually manifests itself as a KAT failure in ECC or AES, though I have seen a few other spurious error messages pop up depending on timing.Bug reproduction
Try and run
tls_bench
on a multithreaded system onmaster
and it should fail and report a KAT failure. Running on this branch should resolve the issue.