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

DAOS-15563 engine: Fix dss_chore use-after-free (#14096) #14196

Merged
merged 1 commit into from
Apr 19, 2024

Commits on Apr 19, 2024

  1. DAOS-15563 engine: Fix dss_chore use-after-free (#14096)

    When dss_chore.cho_func returns DSS_CHORE_DONE, the dss_chore object may
    have been freed already. For instance, in the dtx_rpc_helper case,
    dtx_check may have already returned, freeing (strictly speaking,
    releasing) its stack frame that contains the dca.dca_chore object.
    Hence, after calling chore->cho_func, dss_chore_queue_ult should only
    dereference chore if the return value is DSS_CHORE_YIELD.
    
    
    Signed-off-by: Li Wei <wei.g.li@intel.com>
    liw authored and jolivier23 committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    fa1c067 View commit details
    Browse the repository at this point in the history