Skip to content

nvidia: fix mmap_context use-before-initialization in vma access#1096

Open
Romani-Archman wants to merge 1 commit intoNVIDIA:mainfrom
Romani-Archman:main
Open

nvidia: fix mmap_context use-before-initialization in vma access#1096
Romani-Archman wants to merge 1 commit intoNVIDIA:mainfrom
Romani-Archman:main

Conversation

@Romani-Archman
Copy link
Copy Markdown

Assign mmap_context before using mmap_context->access_start in nvidia_vma_access().

Assign mmap_context before using mmap_context->access_start in
nvidia_vma_access().
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 3, 2026

CLA assistant check
All committers have signed the CLA.

@Geremia
Copy link
Copy Markdown

Geremia commented Apr 18, 2026

@Romani-Archman I thought your patch (∵ it involves VMA) might've helped me fix #1113, but it didn't. 🤔

@Romani-Archman
Copy link
Copy Markdown
Author

@Romani-Archman I thought your patch (∵ it involves VMA) might've helped me fix #1113, but it didn't. 🤔

I took a look at the issue you mentioned. The problem you're seeing is likely related to VMA_LOCK_OFFSET being renamed in Linux 7.0 kernel. My PR/commit actually addresses a bug where mmap_context wasn't being initialized in nvidia_vma_access(), which was causing NULL pointer dereference.

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.

3 participants