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

Observing Host OS panic/crash due to use-after-free error related to CPU OS memory when gdr_unmap is not called before gdr_close #314

Open
realarnavgoel opened this issue Jan 10, 2025 · 0 comments
Assignees
Milestone

Comments

@realarnavgoel
Copy link
Collaborator

Impacted platform
All server side products, first observed on Grace-Hopper system

Impacted gdrcopy versions
2.0 and later

Impacted gdrcopy configs
Both persistent and non-persistent mode

Scenarios
If an application opens a connection to the driver (gdr_open), allocates a GPU memory via CUDA, pins and maps the allocated memory to CPU (gdr_pin_buffer, gdr_map) for read/write operations. Subsequently, if the application closes the connection, without explicitly unmapping the GPU memory, it results in a use-after-free (UAF) condition of OS memory, which can result in functional issues in unrelated areas, or even kernel panic or crash.

Known Mitigations
applications should explicitly call gdr_unmap before gdr_close.

Fixed gdrcopy version
2.4.4

@realarnavgoel realarnavgoel added this to the v2.4 milestone Jan 10, 2025
@realarnavgoel realarnavgoel self-assigned this Jan 10, 2025
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