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

fix: Use correct addresses during memory cow #1873

Merged
merged 3 commits into from
Sep 1, 2023

Conversation

mlgiraud
Copy link

Title is mostly self explanatory. There was an issue where performing snapshots with a non one to one mapping of virtual to physical addresses, resulting in an assertion failure in unicorn. I assume this commit fixes the issue. @PhilippTakacs should check if this is correct now.

@wtdcode
Copy link
Member

wtdcode commented Aug 23, 2023

I can understand the motivation and looks correct at first glance. Do you have a reproduction? So that I can make sure that the fix is correct.

@mlgiraud
Copy link
Author

mlgiraud commented Aug 23, 2023

I don't have a reproduction script since this occurred in our emulator for which i unfortunately cannot yet share the code. I will see if i can write up something that reproduces this.

@mlgiraud
Copy link
Author

I added a test that reproduces the issue. You can check by reverting the commit that fixes the issue.

@wtdcode
Copy link
Member

wtdcode commented Aug 24, 2023

I added a test that reproduces the issue. You can check by reverting the commit that fixes the issue.

I see. Will check and thanks!

@PhilippTakacs
Copy link

LGTM

@mlgiraud
Copy link
Author

@wtdcode Can we merge this, or are there some changes that need to be made?

@wtdcode
Copy link
Member

wtdcode commented Aug 31, 2023

Sorry just busy on something else and I will have a look today or tomorrow.

@wtdcode wtdcode merged commit 9c4f8a8 into unicorn-engine:dev Sep 1, 2023
29 checks passed
@wtdcode
Copy link
Member

wtdcode commented Sep 1, 2023

I tested and it's the correct fix. Thanks and I appreciate your patience.

@mlgiraud mlgiraud deleted the fix/vtlb_snapshots branch September 13, 2023 07:49
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.

None yet

3 participants