ompi
ompi copied to clipboard
coll/UCC: Fix uninitialized saved-coll-module-pointer use scenario
Hi, this fixes an edge-case uninitialized access in UCC, by adding proper initialization for the prev_module
pointers.
If coll/ucc module initialization fails in mca_coll_ucc_save_coll_handlers()
(e.g. #9885, or with ucc_enable=1 and ucc_priority=0), the pointers remain uninitialized, and might contain garbage when they are accessed in mca_coll_ucc_module_destruct()
(triggered by coll/base). On my system, this resulted to segfaults.
Signed-off-by: George Katevenis [email protected]
Can one of the admins verify this patch?
ok to test
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
@vspetrov Yes that sounds appealing (I don't have a strong opinion). I can update the PR to use a struct+memset, and include scoll/ucc.
@gkatev Can you please cherry-pick -x to v5.0.x
?