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

Segmentation fault when canceling paused jobs #292

Open
zh-jq-b opened this issue Dec 27, 2023 · 2 comments
Open

Segmentation fault when canceling paused jobs #292

zh-jq-b opened this issue Dec 27, 2023 · 2 comments

Comments

@zh-jq-b
Copy link

zh-jq-b commented Dec 27, 2023

int qat_wake_job(volatile ASYNC_JOB *job, int jobStatus)
use a pointer to ASYNC_JOB to get wait_ctx each time the driver ready, but wait_ctx may be got freed already when the async job canceled after received ASYNC_PAUSE in the main thread.
ASYNC_JOB doesn't have any protection for reusing wait_ctx across threads.

@venkatesh6911
Copy link
Contributor

We will work on this issue internally and with OpenSSL as well.

@venkatesh6911
Copy link
Contributor

Feel free to raise PR if want to help with a patch.

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

No branches or pull requests

2 participants