diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-06-02 12:07:36 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-06-02 12:07:36 +0200 |
| commit | 61a62645e845a657135994186b3a10ccef22d699 (patch) | |
| tree | 6c34fee59ad636a25103daccf90137148b81aa9e /src | |
| parent | e4edb65c2b3e6531b23f626f4880617d13fbbb55 (diff) | |
| download | box64-61a62645e845a657135994186b3a10ccef22d699.tar.gz box64-61a62645e845a657135994186b3a10ccef22d699.zip | |
Revert using getProtection_fast in CheckExec to avoid rare (or less rare in Interp) lockup
Diffstat (limited to 'src')
| -rw-r--r-- | src/os/emit_signals_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/emit_signals_linux.c b/src/os/emit_signals_linux.c index 39d209f7..e14c4c83 100644 --- a/src/os/emit_signals_linux.c +++ b/src/os/emit_signals_linux.c @@ -106,7 +106,7 @@ void CheckExec(x64emu_t* emu, uintptr_t addr) { if (box64_pagesize != 4096) return; // disabling the test, 4K pagesize simlation isn't good enough for this - while ((getProtection_fast(addr) & (PROT_EXEC | PROT_READ)) != (PROT_EXEC | PROT_READ)) { + while ((getProtection/*_fast*/(addr) & (PROT_EXEC | PROT_READ)) != (PROT_EXEC | PROT_READ)) { R_RIP = addr; // incase there is a slight difference EmitSignal(emu, SIGSEGV, (void*)addr, 0xecec); } |