Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1838244

Summary: Preloaded nosync.so causes openssl's constructor segfault
Product: Red Hat Enterprise Linux 8 Reporter: Pavel Raiskup <praiskup>
Component: opensslAssignee: Tomas Mraz <tmraz>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: fedoraproject, fweimer, jkonecny
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-21 14:46:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Raiskup 2020-05-20 17:47:01 UTC
We use 'LD_PRELOAD=/usr/lib64/nosync/nosync.so' in mock to speedup chroot
installation.  But newly, with openssl-libs-1.1.1g-1.el8.x86_64, anything
that links against openssl segfaults early.

With openssl-libs-1.1.1c-15.el8.x86_64 it worked just fine.  This breaks
installation of mock chroot from mock bootstrap chroot with 8.3.0 build
chroots where is the new openssl.

You can install nosync.so e.g. from
https://copr.fedorainfracloud.org/coprs/praiskup/test-nosync/

Weird thing is that, despite the new openssl is there, this bug isn't
reproducible in Fedora chroots (so perhaps this is related to some
rhel downstream patch).

Comment 1 Pavel Raiskup 2020-05-20 17:49:27 UTC
The reproducers are e.g.
LD_PRELOAD=/usr/lib64/nosync/nosync.so curl
LD_PRELOAD=/usr/lib64/nosync/nosync.so rpm

Comment 2 Tomas Mraz 2020-05-20 17:58:52 UTC
This is a serious bug in the nosync - see the bug 1837809 investigation.

There is no way around the requirement of doing the open() call in constructor in OpenSSL.

Comment 3 Tomas Mraz 2020-05-20 18:01:46 UTC
We will discuss it within our team but most probably this is going to be WONTFIXed and must be fixed in the nosync.

Comment 4 Tomas Mraz 2020-05-21 14:46:26 UTC
The fixed nosync packages are in rawhide and testing repos for F32 and F31 - nosync-1.1-8.fcxx

I am closing this as NOTABUG.

Thanks Florian for helping with the investigation and providing the fix for nosync.