Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information