Skip to content
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

Keccak_(X4_)Dispatch Initialize_ptr assignment is thread unsafe #1548

Closed
zxjtan opened this issue Sep 11, 2023 · 0 comments · Fixed by #1549
Closed

Keccak_(X4_)Dispatch Initialize_ptr assignment is thread unsafe #1548

zxjtan opened this issue Sep 11, 2023 · 0 comments · Fixed by #1549

Comments

@zxjtan
Copy link
Contributor

zxjtan commented Sep 11, 2023

Keccak_(X4_)Dispatch Initialize_ptr assignment is thread unsafe due to race condition. Keccak_Dispatch in xkcp_sha3.c and Keccak_X4_Dispatch in xkcp_sha3x4.c.

Example execution:

Made a fix using pthread_once in #1549 but not cross-platform, open to other fixes

Environment:

  • OS: CentOS Stream 9
  • OpenSSL 1.1.1
  • Clang 12
  • liboqs version 0.8.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant