-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sbsign crashes in pkcs11.so while signing an (EFI) image #534
Comments
I am also experiencing this bug on x64 and aarch64 I have
|
In the original report it is using OpenSC-pkcs11. In the Sept 28 comment it is using Yubico's pkcs11 module for PIV. If possible use a libp11 build with debugging turned ( compile with LDFLAGS=-g and CFLAGS=-g) to get better backtrace when running it under gdb. |
You're right this was maybe the wrong issue to add this to as I'm using the Yubico module. But I will attempt a build of libp11 with debugging. My openssl version is 3.0.13 from ubuntu 24.04 |
In the end to workaround the issue I used a patch and rebuilt sbsign 0.9.5 (osresearch/sbsigntools@5154c68) |
Here is a stack trace with debug symbols:
The issue starts at I'll try with the patched |
Some additional comments. This is #327 which was closed but never committed? Full docs on Engine: https://docs.openssl.org/3.3/man3/ Which deals with "functional reference" vs "structural reference" and in example has:
So problem could be in libp11, actually doing the The doc also says: "All of these functions were deprecated in OpenSSL 3.0. ENGINE_cleanup() was deprecated in OpenSSL 1.1.0 by the automatic cleanup done by OPENSSL_cleanup() and should not be used." |
Try signing a file using
sbsign
where key is stored on a Yubikey, it will crash:gdb shows this backtrace:
These are logs just before crash:
The text was updated successfully, but these errors were encountered: