Skip to content

UCT: Prevent segfault in uct_rdmacm_cm_ep_str when id is not initialized [v1.10.x] - #6228

Merged
yosefe merged 1 commit into
openucx:v1.10.xfrom
dmitrygx:topic/uct/fix-uct_rdmacm_cm_ep_str_v1_10
Jan 29, 2021
Merged

yosefe merged 1 commit into
openucx:v1.10.xfrom
dmitrygx:topic/uct/fix-uct_rdmacm_cm_ep_str_v1_10

Conversation

@dmitrygx

Copy link
Copy Markdown
Member

What

Prevent segfault in uct_rdmacm_cm_ep_str when id is not initialized

Why ?

CM ID isn't initialized

How ?

Backport of #6076 to v1.10.x

Comment thread src/uct/ib/rdmacm/rdmacm_cm_ep.c Outdated
Comment on lines +19 to +20
struct sockaddr *local_addr = cep->id ? rdma_get_local_addr(cep->id) : NULL;
struct sockaddr *remote_addr = cep->id ? rdma_get_peer_addr(cep->id) : NULL;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent on column

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@dmitrygx
dmitrygx force-pushed the topic/uct/fix-uct_rdmacm_cm_ep_str_v1_10 branch from 268d351 to 07c020b Compare January 28, 2021 23:46
@yosefe
yosefe merged commit 8cd9a82 into openucx:v1.10.x Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants