Commit 0be55df
committed
osc/rdma: Fix segfault in shared memory peer initialization
Commit 815fe8e changed ompi_osc_rdma_peer_local_base() calls to
ompi_osc_rdma_peer_cpu_atomics() in accumulate operations. This caused
local peers without CPU atomics to fall back to network operations,
but their base_handle was not initialized, leading to a NULL pointer
dereference in the BTL layer.
Fix by setting base_handle for local peers when use_memory_registration
is enabled (indicating BTL requires registered memory handles for RDMA
operations) and use_cpu_atomics is false (forcing network fallback).
Signed-off-by: Shi Jin <[email protected]>1 parent 333d8ad commit 0be55df
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
870 | 880 | | |
871 | 881 | | |
872 | 882 | | |
| |||
0 commit comments