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

mlx5: fix a use-after-free error in mlx5_next_poll #1526

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 27, 2024

  1. mlx5: fix a use-after-free error in mlx5_next_poll

    When using cq_ex inteface, if the user destroys the QP associated with
    the current work completion, the next ibv_next_poll() call will cause a
    use-after-free error since it needs to access the QP that has already
    been destroyed through cq->cur_rsc inside get_req_context().
    
    Fix this error by resetting the cq->cur_rsc in __mlx5_cq_clean if it is
    associated with the QP to be destroyed.
    
    Signed-off-by: ZHOU Huaping <[email protected]>
    FujiZ committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    c48b366 View commit details
    Browse the repository at this point in the history