Skip to content

Comments

Fix race condition between C_FindObjects and object creation (issue 573)#576

Merged
rijswijk merged 3 commits intodevelopfrom
fix-issue-573
Oct 22, 2020
Merged

Fix race condition between C_FindObjects and object creation (issue 573)#576
rijswijk merged 3 commits intodevelopfrom
fix-issue-573

Conversation

@rijswijk
Copy link
Contributor

This likely fixes #573

@rijswijk rijswijk mentioned this pull request Sep 11, 2020
Fix indenting
@nomis
Copy link
Contributor

nomis commented Sep 11, 2020

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.

@rijswijk
Copy link
Contributor Author

@nomis thanks for #578 and this note, I will wait for feedback from @ionut-arm and merge both PRs after positive feedback.

@hug-dev
Copy link

hug-dev commented Sep 14, 2020

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 😃

@ionut-arm
Copy link

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 CKR_GENERAL_ERROR, now it fails with CKR_TEMPLATE_INCONSISTENT. I'll try to identify where the problem is coming from

Removed `flush()` that will become unnecessary when #578 is merged.
@ionut-arm
Copy link

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.

@rijswijk rijswijk merged commit 20a53bd into develop Oct 22, 2020
@rijswijk rijswijk deleted the fix-issue-573 branch October 22, 2020 12:48
ionut-arm added a commit to ionut-arm/parsec that referenced this pull request Oct 22, 2020
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>
ionut-arm added a commit to ionut-arm/parsec that referenced this pull request Oct 22, 2020
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>
ionut-arm added a commit to ionut-arm/parsec that referenced this pull request Oct 22, 2020
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>
ionut-arm added a commit to ionut-arm/parsec that referenced this pull request Oct 22, 2020
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>
ionut-arm added a commit to ionut-arm/parsec that referenced this pull request Oct 22, 2020
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>
ionut-arm added a commit to ionut-arm/parsec that referenced this pull request Oct 22, 2020
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>
ionut-arm added a commit to ionut-arm/parsec that referenced this pull request Oct 22, 2020
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>
ionut-arm added a commit to ionut-arm/parsec that referenced this pull request Oct 22, 2020
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Concurrency issue

4 participants