Skip to content

mapping_reuse: correct range size when unmapping failed allocations - #948

Closed
mateusz-bloch wants to merge 1 commit into
NVIDIA:mainfrom
mateusz-bloch:mateusz-bloch/fix-reusemappingdb-unmap-size
Closed

mateusz-bloch wants to merge 1 commit into
NVIDIA:mainfrom
mateusz-bloch:mateusz-bloch/fix-reusemappingdb-unmap-size

Conversation

@mateusz-bloch

Copy link
Copy Markdown

Fixes incorrect unmap range size in the error cleanup path of reusemappingdbMap().

Previously, range.size was used instead of the actual mapped fragment size (token.pList->size) when calling pUnmapCb. This could result in over-unmapping and overlapping VA ranges, causing inconsistencies and VA allocation failures.

@CLAassistant

CLAassistant commented Oct 13, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@moinak-nv

Copy link
Copy Markdown

This fix has been integrated locally in our development builds and will make it out in a future release. Thank you for your contribution.

@aritger

aritger commented Oct 29, 2025

Copy link
Copy Markdown
Collaborator

Thanks for the fix, @mateusz-bloch . Closing.

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.

4 participants