Skip to content

Conversation

@roiedanino
Copy link
Contributor

(cherry picked from commit 26fa31a)

(cherry picked from commit 26fa31a)
Signed-off-by: Roie Danino <[email protected]>
@github-actions github-actions bot added this to the v5.0.10 milestone Jan 12, 2026
@roiedanino roiedanino changed the title OSHMEM/MCA/SPML/UCX: implement put_signal and put_signal_nbi v5.0.x - OSHMEM/MCA/SPML/UCX: implement put_signal and put_signal_nbi Jan 12, 2026
@roiedanino
Copy link
Contributor Author

CI Fails due to #13623

uint64_t dummy_prev, dummy_fetch;

if (sig_op == SHMEM_SIGNAL_SET) {
return MCA_ATOMIC_CALL(swap_nb(ctx, &dummy_fetch, (void*)sig_addr, (void*)&dummy_prev,
Copy link
Contributor

Choose a reason for hiding this comment

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

This is unsafe. swap_nb is nonblocking (I assume) and dummy_fetch/dummy_prev will go out of scope before it completes. There is a good chance the network will randomly overwrite stack values. A dedicated heap memory location for dummy values like this is needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants