DAOS-19202 client: Fix cont_create use-after-frees#18515
Conversation
|
Ticket title is 'Use-after-free issues in |
42a6231 to
d14e5f6
Compare
Calling daos_cont_create_with_label may result in use-after-frees when underlying tasks reinitialize: cont_prop ev Use-after-free ---------------------------------------------------------------- NULL non-NULL merged_props in daos_cont_create RF non-NULL merged_props in daos_cont_create_with_label This patch refactors daos_cont_create_with_label and daos_cont_create to free properties they allocate in task completion callbacks. Features: container Allow-unstable-test: true Signed-off-by: Li Wei <liwei@hpe.com>
d14e5f6 to
abc300c
Compare
|
Test stage NLT completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18515/3/testReport/ |
|
Test stage Functional Hardware Large MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-18515/3/execution/node/1401/log |
|
Test stage Functional Hardware Medium MD on SSD completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18515/3/testReport/ |
|
Test stage NLT completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18515/4/testReport/ |
|
Test stage Functional Hardware Large MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-18515/4/execution/node/1167/log |
|
Test stage Functional Hardware Medium MD on SSD completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18515/4/testReport/ |
Calling daos_cont_create_with_label may result in use-after-frees when
underlying tasks reinitialize:
This patch refactors daos_cont_create_with_label and daos_cont_create to
free properties they allocate in task completion callbacks.
Features: container
Steps for the author:
After all prior steps are complete: