Skip to content
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

prov/sockets: Fix coveritylocking issues #9927

Merged
merged 4 commits into from
Mar 23, 2024
Merged

Conversation

zachdworkin
Copy link
Contributor

No description provided.

@shefty
Copy link
Member

shefty commented Mar 22, 2024

It's more useful if the commit header describe the problem/fix rather than a reference to a coverity report

Copy link
Member

@sydidelot sydidelot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the PR has a bug, please check my comment.

return 1;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a pthread_mutex_lock(&cq->lock); missing here, before the break.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in latest push, thanks!

Fix coverity 407557's missing lock

The cq error path should be considerably refactored.
This lock is needed for the current implementation.
Ideally we won't want this lock or check because it is
optimizing the error case and slowing down the actual
use case.

Signed-off-by: Zach Dworkin <[email protected]>
Add lock around err_flag like other places in this file.

Signed-off-by: Zach Dworkin <[email protected]>
Fix coverity missing lock

Signed-off-by: Zach Dworkin <[email protected]>
Fix coverity missing lock

Signed-off-by: Zach Dworkin <[email protected]>
@j-xiong
Copy link
Contributor

j-xiong commented Mar 23, 2024

bot:aws:retest

@j-xiong j-xiong merged commit ebd4858 into ofiwg:main Mar 23, 2024
15 checks passed
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.

4 participants