Skip to content

Commit

Permalink
net_ib: fix out of bounds read in ncclIbGdrSupport on non-RDMA kernel (
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova authored Jan 8, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 3fefd31 commit b24580e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transport/net_ib.cc
Original file line number Diff line number Diff line change
@@ -586,7 +586,8 @@ ncclResult_t ncclIbGdrSupport() {
// or created under a different path like `/sys/kernel/` or `/sys/` (depending on your ib_peer_mem module)
const char* memory_peers_paths[] = {"/sys/kernel/mm/memory_peers/amdkfd/version",
"/sys/kernel/memory_peers/amdkfd/version",
"/sys/memory_peers/amdkfd/version"};
"/sys/memory_peers/amdkfd/version",
NULL};
int i = 0;

while (memory_peers_paths[i]) {

0 comments on commit b24580e

Please sign in to comment.