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

Unicorn Engine Crash When Emulating DR7 Register Update with 0x10005 #2001

Open
Z4ee opened this issue Sep 15, 2024 · 0 comments
Open

Unicorn Engine Crash When Emulating DR7 Register Update with 0x10005 #2001

Z4ee opened this issue Sep 15, 2024 · 0 comments

Comments

@Z4ee
Copy link

Z4ee commented Sep 15, 2024

When attempting to emulate the following instructions:

mov rax, 0x10005
mov dr7, rax

a crash occurs in the Unicorn emulator. This is due to the cpu_x86_update_dr7_x86_64 function calling cpu_breakpoint_insert_x86_64, which then triggers tb_flush_sparc64. The latter performs a TCG region reset (via tcg_region_reset_all_x86_64), effectively wiping the emulation region.

As a result, when cpu_x86_update_dr7_x86_64 returns, it attempts to exit into a now-cleared region, causing the crash.

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