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 1785748 - Expose crypt_safe_free in libcryptsetup public API
Summary: Expose crypt_safe_free in libcryptsetup public API
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cryptsetup
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Ondrej Kozina
QA Contact: guazhang@redhat.com
URL:
Whiteboard:
Depends On: 1796826
Blocks: 1825061
TreeView+ depends on / blocked
 
Reported: 2019-12-20 20:48 UTC by Dennis Keefe
Modified: 2021-09-06 15:24 UTC (History)
6 users (show)

Fixed In Version: cryptsetup-2.3.3-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:59:39 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:4542 0 None None None 2020-11-04 01:59:54 UTC

Description Dennis Keefe 2019-12-20 20:48:09 UTC
Please expose crypt_safe_free in libcryptsetup public API in RHEL 8.3

Here is the Stratis PR

https://github.com/stratis-storage/project/issues/85

Comment 2 guazhang@redhat.com 2020-01-10 02:38:02 UTC
Hello

Could you share some test steps for the bug?

thanks 
guazhang

Comment 3 Ondrej Kozina 2020-01-13 14:36:52 UTC
Fixed with upstream commit: https://gitlab.com/cryptsetup/cryptsetup/commit/b03cb3f3d84069cffc6f8a147cedef7b6af5a5e5

Comment 4 Ondrej Kozina 2020-01-14 11:00:02 UTC
This can't be tested from command line interface.

Simplest test from my perspective would be to write very minimal C program that would link with libcryptsetup and try to use one of following symbols:

crypt_safe_alloc
crypt_safe_free
crypt_safe_realloc
crypt_safe_memzero

Description for those symbols and usage will be in libcryptsetup.h in cryptsetup-devel package in release cryptsetup-2.3.0-1.el8 or later.

Comment 7 guazhang@redhat.com 2020-06-18 08:14:40 UTC
Hello

Did code review and verified patches applied correctly on cryptsetup-2.3.3-1.el8, and no regression found. so will moved to "VERIFIED"

Comment 10 errata-xmlrpc 2020-11-04 01:59:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: cryptsetup security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4542


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