Skip to content

Comments

v3_purp.c: add locking to x509v3_cache_extensions()#6162

Closed
mspncp wants to merge 1 commit intoopenssl:masterfrom
mspncp:pr-add-locking-to-x509v3-cache-extensions
Closed

v3_purp.c: add locking to x509v3_cache_extensions()#6162
mspncp wants to merge 1 commit intoopenssl:masterfrom
mspncp:pr-add-locking-to-x509v3-cache-extensions

Conversation

@mspncp
Copy link
Contributor

@mspncp mspncp commented May 2, 2018

Fixes #6121

Thanks to Mingtao Yang for reporting this bug.

This is an alternative to pull request #6161.

@mspncp
Copy link
Contributor Author

mspncp commented May 2, 2018

Cherry-picks cleanly to 1.1.0 but not to 1.0.2

@mspncp mspncp added 1.1.0 approval: review pending This pull request needs review by a committer branch: 1.1.1 Applies to OpenSSL_1_1_1-stable branch (EOL) labels May 2, 2018
@mspncp mspncp force-pushed the pr-add-locking-to-x509v3-cache-extensions branch from 9bcc223 to 39c4d33 Compare May 2, 2018 21:59
Fixes openssl#6121

Thanks to Mingtao Yang for reporting this bug.
@mspncp mspncp force-pushed the pr-add-locking-to-x509v3-cache-extensions branch from 39c4d33 to 5e47d82 Compare May 2, 2018 22:11
if (x->ex_flags & EXFLAG_SET)
return;

CRYPTO_THREAD_write_lock(x->lock);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a comment that we need to double-check now that we have the lock?

@richsalz richsalz added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels May 3, 2018
levitte pushed a commit that referenced this pull request May 3, 2018
Fixes #6121

Thanks to Mingtao Yang for reporting this bug.

Reviewed-by: Rich Salz <[email protected]>
(Merged from #6162)
levitte pushed a commit that referenced this pull request May 3, 2018
Fixes #6121

Thanks to Mingtao Yang for reporting this bug.

Reviewed-by: Rich Salz <[email protected]>
(Merged from #6162)
@mspncp
Copy link
Contributor Author

mspncp commented May 3, 2018

Merged, thanks!

bc624bd (master)
2c2d9dc (1.1.0)

@mspncp mspncp closed this May 3, 2018
@mspncp mspncp deleted the pr-add-locking-to-x509v3-cache-extensions branch May 3, 2018 20:38
@mspncp
Copy link
Contributor Author

mspncp commented May 3, 2018 via email

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

Labels

approval: done This pull request has the required number of approvals 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