Fix race condition between C_FindObjects and object creation (issue 573)#576
Fix race condition between C_FindObjects and object creation (issue 573)#576
Conversation
Fix indenting
|
I've put a generic "flush before unlock" into File in #578, because none of the buffered reads or writes are flushed before unlocking, so the call to flush() will become unnecessary here. |
|
@nomis thanks for #578 and this note, I will wait for feedback from @ionut-arm and merge both PRs after positive feedback. |
|
Thanks for the change! Ionut will come back on Wednesday 16th. The changes look as planned so I am sure it would be fine to merge if you wanted to do that earlier 😃 |
|
Hi! Apologies for the delay - I've tested again and it seems the stress test still fails, but while before it was failing mainly with |
Removed `flush()` that will become unnecessary when #578 is merged.
|
Hey! Sorry for such a late reply, I managed to do some checks both locally and in the CI and it seems the latest change fixes our problems! 🎉 If you're ok with it, we're all in for it to be merged. |
This commit removes the mutex that was used to force the PKCS11 provider to work in a single-threaded way. The issue was fixed in softhsm/SoftHSMv2#576 and our Dockerfiles have been updated to use that commit. Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
This commit removes the mutex that was used to force the PKCS11 provider to work in a single-threaded way. The issue was fixed in softhsm/SoftHSMv2#576 and our Dockerfiles have been updated to use that commit. Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
This commit removes the mutex that was used to force the PKCS11 provider to work in a single-threaded way. The issue was fixed in softhsm/SoftHSMv2#576 and our Dockerfiles have been updated to use that commit. Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
This commit removes the mutex that was used to force the PKCS11 provider to work in a single-threaded way. The issue was fixed in softhsm/SoftHSMv2#576 and our Dockerfiles have been updated to use that commit. Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
This commit removes the mutex that was used to force the PKCS11 provider to work in a single-threaded way. The issue was fixed in softhsm/SoftHSMv2#576 and our Dockerfiles have been updated to use that commit. Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
This commit removes the mutex that was used to force the PKCS11 provider to work in a single-threaded way. The issue was fixed in softhsm/SoftHSMv2#576 and our Dockerfiles have been updated to use that commit. Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
This commit removes the mutex that was used to force the PKCS11 provider to work in a single-threaded way. The issue was fixed in softhsm/SoftHSMv2#576 and our Dockerfiles have been updated to use that commit. Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
This commit removes the mutex that was used to force the PKCS11 provider to work in a single-threaded way. The issue was fixed in softhsm/SoftHSMv2#576 and our Dockerfiles have been updated to use that commit. Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
This likely fixes #573