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

[v1.21.x] prov/efa: Fix error handling in efa_rdm_cq_poll_ibv_cq #9978

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

shijin-aws
Copy link
Contributor

Backport #9973

When ibv_start_poll or ibv_next_poll return error, it may read
a cqe from a destroyed EP (QP). In this case we shouldn't call
efa_rdm_cq_get_prov_errno, which may use a freed EP from the
pkt_entry (wr_id) and cause segmentation fault.

Signed-off-by: Shi Jin <[email protected]>
(cherry picked from commit ce244a7)
@shijin-aws shijin-aws requested a review from darrylabbate April 3, 2024 22:35
@shijin-aws shijin-aws merged commit d51c70b into ofiwg:v1.21.x Apr 4, 2024
10 of 11 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.

2 participants