Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OFED - perftest - perftest_communication.c - rdma_write_keys and rdma_read_keys: Pointer to address bug #287

Open
mobooya opened this issue Sep 5, 2024 · 0 comments

Comments

@mobooya
Copy link

mobooya commented Sep 5, 2024

memcpy(comm->rdma_ctx->buf[0], &my_dest, sizeof(struct pingpong_dest));

Hey, in both the write and read keys functions, usually the HAVE_ENDIAN is on so the code goes down that path. But if HAVE_ENDIAN is off, then the memcpy has a bug because the source argument is &my_dest in the write function and &rem_dest in the read function, but this will be a pointer to the address instead of the address since my_dest and rem_dest are already the address since they were sent from earlier in the stack in the hand_shake as &my_dest[0]

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

No branches or pull requests

1 participant