Skip to content

Conversation

@vitalybuka
Copy link
Collaborator

After #130165.

In the code: VRMap[CurStageNum][Def] = VRMap[CurStageNum][LoopVal]
VRMap[CurStageNum][LoopVal] calculates a reference before
VRMap[CurStageNum][Def] which may rehash the DenseMap.
Then the reference can be dead.

Created using spr 1.3.4
@vitalybuka vitalybuka added the skip-precommit-approval PR for CI feedback, not intended for review label Mar 7, 2025
Created using spr 1.3.4
@vitalybuka vitalybuka requested a review from topperc March 7, 2025 19:03
Created using spr 1.3.4
Copy link
Collaborator

@topperc topperc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Created using spr 1.3.4
@vitalybuka vitalybuka merged commit 4bc3592 into main Mar 7, 2025
6 of 10 checks passed
@vitalybuka vitalybuka deleted the users/vitalybuka/spr/machinepipeliner-fix-use-after-free-coping-values-of-the-same-densemap branch March 7, 2025 19:09
@topperc
Copy link
Collaborator

topperc commented Mar 7, 2025

This looks like it was always a use-after-free risk. Any idea why my patch exposed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-precommit-approval PR for CI feedback, not intended for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants