|
struct ibv_ah_attr ah_attr; |
Within the ibgda_create_dct_shared_objects function, the struct ibv_ah_attr ah_attr variable appears to be used without being initialized.
Specifically, the problematic field is ah_attr.static_rate then containing a garbage value. This uninitialized data is then used later when calling ibv_create_ah, which I've seen leading to an EINVAL (Invalid argument) error on a RoCE setup.
Steps to Reproduce
- Build nvshmem with IBGDA transport enabled.
- Run a simple application with nvshmem_init, such as the hello.cpp example with
NVSHMEM_IB_ENABLE_IBGDA=1