RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1262775 - openssl: thread-local error queue
Summary: openssl: thread-local error queue
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openssl
Version: 7.1
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Tomas Mraz
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-14 10:14 UTC by Florian Weimer
Modified: 2016-01-18 15:35 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-18 15:35:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
err-tls.patch (2.16 KB, patch)
2015-09-14 10:14 UTC, Florian Weimer
no flags Details | Diff

Description Florian Weimer 2015-09-14 10:14:56 UTC
Created attachment 1073174 [details]
err-tls.patch

The attached, slightly silly patch (on top of 1.0.1e-42)  replace the OpenSSL implementation of thread-local variables with the platform implementation.  It removes the “get_rn” function from profiles of multi-threaded applications and reduces lock contention.

This is not quite a production-quality implementation, and it is not 100% backwards compatibility (but it is quite close).  It should be enough for testing applications which see “get_rn“ in their profiles or are affected by the ERR subsystem lock contention.

A full implementation would keep the old mechanism alive and just cache the results in a thread-local variable, and maybe even add a pthreads destructor to release error state on thread exit.

Comment 2 Tomas Mraz 2015-09-14 10:31:54 UTC
Is this really something we want to implement in RHEL? I do not think we should diverge from upstream in this regard.

Comment 3 Florian Weimer 2015-12-02 21:19:54 UTC
(In reply to Tomas Mraz from comment #2)
> Is this really something we want to implement in RHEL? I do not think we
> should diverge from upstream in this regard.

I agree, I just wanted to capture the patch somewhere for future reference, in case there is demand for improved scalability of the ASN.1 parser (which seems to suffer most from this issue even if there are no errors to report).  Indirectly, this impacts client handshaking performance in most scenarios, and server handshaking performance if client certificates are used.

Comment 4 RHEL Program Management 2016-01-18 15:35:51 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.


Note You need to log in before you can comment on or make changes to this bug.