Replies: 1 comment
-
|
Looks like this has been effectively answered in #615 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
This sounds like an issue, but as I modified the code and probably is due to my provider or to any change on the code, I think it's better to put it here.
I'm trying to perform a MLDSA signature using the following command.
I had to modify some of the source code (last version of main as of today) because of some logic on the backend HSM simulator. The specific change I had to made was the following.
In
src/sig/mldsa.cThen I modified the
p11prov_sig_freectxin `/src/sig/signature.c' adding the following line.I have also multiple changes on other parts of the code due to different types and definitions on the provider, but those don't allocate memory so cannot be the issue (I suppose).
The thing is that now after performing the signature, when calling C_CloseSession, a segmentation fault happens on the precise call. It's exactly this line.
Other issue I experienced is the following.
As I have mutiple slots, the provider performs a login in all the slots. Those sessions opened at the beginning (when calling C_GenerateRandom) don't close until the end of the signature process. Sometimes the session 11 causes a segfault, sometimes it doesn't (I swear to god that sometimes I have to hate C). I notices that if I wait a little bit the error won't happen, so maybe is some dangling memory managed by the OS. Also if I introduce the PIN on the session 11, it always causes a segmentation fault.
The session where I perform the signature and always causes a segmentation fault is session 13.
A summary of when the sessions are opened.
There are only 2 slots and only two sessions that ask for login on the terminal.
Do you have any clue why this would happen? Maybe something related with how the PIN is managed.
By the way, the issue only happen with MLDSA Keys, the RSA keys work perfectly fine.
Beta Was this translation helpful? Give feedback.
All reactions