Skip to content

Comments

Fix data race in RAND_DRBG_generate [1.1.1]#7502

Closed
bernd-edlinger wants to merge 2 commits intoopenssl:OpenSSL_1_1_1-stablefrom
bernd-edlinger:fix_race_condition_in_drbg_generate_1
Closed

Fix data race in RAND_DRBG_generate [1.1.1]#7502
bernd-edlinger wants to merge 2 commits intoopenssl:OpenSSL_1_1_1-stablefrom
bernd-edlinger:fix_race_condition_in_drbg_generate_1

Conversation

@bernd-edlinger
Copy link
Member

Back-port of a83dc59 to 1.1.1-stable.
Fixes #7394

Back-port of a83dc59 to 1.1.1-stable.
Fixes openssl#7394
@bernd-edlinger bernd-edlinger added the branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) label Oct 26, 2018
@mspncp
Copy link
Contributor

mspncp commented Oct 26, 2018

The builds fail.

try to revert the renamings, i.e:

  • s/reseed_gen_counter/generate_counter/g
  • s/reseed_prop_counter/reseed_counter/g

then it should compile.

@mspncp mspncp added this to the 1.1.1a milestone Oct 26, 2018
@bernd-edlinger
Copy link
Member Author

Aargh...

@mspncp
Copy link
Contributor

mspncp commented Oct 26, 2018

I'll backport the renamings. As far as they don't touch any public interfaces, that should be ok and prevent unecessary conflicts in the future.

* rand_drbg_seedlen(master) bytes.
*
* If an os entropy source is available then RAND_seed(buffer, bufsize)
* is expected to succeed always.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kdiff3 accidentally picked this comment up, will revert.

@bernd-edlinger
Copy link
Member Author

Yes, also the comment changes are mostly good.

@mspncp
Copy link
Contributor

mspncp commented Oct 26, 2018

You could try the following:

  • revert the cherry-pick
  • undo the renamings and commit them
  • retry the cherry-pick

@bernd-edlinger
Copy link
Member Author

Are you working on a PR with the trivial changes from master?
Would be appreciated. I have to leave now.
Thanks

@mspncp
Copy link
Contributor

mspncp commented Oct 26, 2018

I can do it sometimes later this evening.

@mspncp
Copy link
Contributor

mspncp commented Oct 26, 2018

If you have enough time to wait for it, I'll fix 1.1.1 such that both your commit a83dc59 and my pr can be cherry-picked cleanly afterwards. Then this pr will be superfluous.

@mspncp mspncp changed the title Fix data race in RAND_DRBG_generate Fix data race in RAND_DRBG_generate [1.1.1] Oct 26, 2018
@bernd-edlinger
Copy link
Member Author

Yes, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants