Bug 255277 - Base OpenSSL is missing the symbol EVP_PKEY_meth_get_digestsign in /usr/lib/libcrypto.so
Summary: Base OpenSSL is missing the symbol EVP_PKEY_meth_get_digestsign in /usr/lib/l...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 12.2-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: John Baldwin
URL:
Keywords:
: 258765 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-04-20 18:12 UTC by Yuri Victorovich
Modified: 2021-09-29 01:02 UTC (History)
3 users (show)

See Also:
jhb: mfc-stable13+
jhb: mfc-stable12+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2021-04-20 18:12:21 UTC
This symbol is present in the static library:
> $ nm /usr/lib/libcrypto.a | grep EVP_PKEY_meth_get_digestsign
> 0000000000000ec0 T EVP_PKEY_meth_get_digestsign

but it is missing in the shared library:
> $ elfdump -a /usr/lib/libcrypto.so | grep EVP_PKEY_meth_get_digestsign

This was discovered when the port security/pkcs11-tools failed to build without explicitly making it to use the static library.

12.2-STABLE amd64
Comment 1 John Baldwin freebsd_committer freebsd_triage 2021-05-26 21:06:40 UTC
It looks like the Version.map for libcrypto is missing symbols from 1.1.1e and later.  I've uploaded a possible (but untested!) fix at https://reviews.freebsd.org/D30483
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-05-28 22:19:04 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=7ad70d22c667173586c04fc13dd315995d78fbbf

commit 7ad70d22c667173586c04fc13dd315995d78fbbf
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-05-28 22:18:15 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-05-28 22:18:15 +0000

    libcrypto: Add symbol versions for symbols added since 1.1.1d.

    While here, trim a spurious local: I missed when added SSL_sendfile.

    PR:             255277
    Reported by:    yuri
    Reviewed by:    jkim
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D30483

 secure/lib/libcrypto/Version.map | 17 ++++++++++++++++-
 secure/lib/libssl/Version.map    |  1 -
 2 files changed, 16 insertions(+), 2 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-06-09 22:20:39 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=f8edb3f9c725e5b4a60981ee19a56395b0497e13

commit f8edb3f9c725e5b4a60981ee19a56395b0497e13
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-05-28 22:18:15 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-06-09 21:53:42 +0000

    libcrypto: Add symbol versions for symbols added since 1.1.1d.

    While here, trim a spurious local: I missed when added SSL_sendfile.

    PR:             255277
    Reported by:    yuri
    Reviewed by:    jkim
    Differential Revision:  https://reviews.freebsd.org/D30483

    (cherry picked from commit 7ad70d22c667173586c04fc13dd315995d78fbbf)

 secure/lib/libcrypto/Version.map | 17 ++++++++++++++++-
 secure/lib/libssl/Version.map    |  1 -
 2 files changed, 16 insertions(+), 2 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2021-06-09 22:20:40 UTC
A commit in branch stable/12 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=f29f5cc6f2d390b1ae4a6c526271e37233aafc70

commit f29f5cc6f2d390b1ae4a6c526271e37233aafc70
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-05-28 22:18:15 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-06-09 21:54:13 +0000

    libcrypto: Add symbol versions for symbols added since 1.1.1d.

    While here, trim a spurious local: I missed when added SSL_sendfile.

    PR:             255277
    Reported by:    yuri
    Reviewed by:    jkim
    Differential Revision:  https://reviews.freebsd.org/D30483

    (cherry picked from commit 7ad70d22c667173586c04fc13dd315995d78fbbf)

 secure/lib/libcrypto/Version.map | 17 ++++++++++++++++-
 secure/lib/libssl/Version.map    |  1 -
 2 files changed, 16 insertions(+), 2 deletions(-)
Comment 5 John Baldwin freebsd_committer freebsd_triage 2021-09-29 01:00:31 UTC
These fixes were merged to 12.2 and 13.0 as an EN on August 24, 2021.
Comment 6 John Baldwin freebsd_committer freebsd_triage 2021-09-29 01:02:53 UTC
*** Bug 258765 has been marked as a duplicate of this bug. ***