MultiArchUefiPkg icon indicating copy to clipboard operation
MultiArchUefiPkg copied to clipboard

Fix race between JIT executing emulated code and another image starting.

Open andreiw opened this issue 9 months ago • 0 comments

More silent corruption due to lack of reentrance. But it's not enough to wrap uc_mem_protect...interrupts can be re-enabled inside JITted code (or really anytime) due to TPL manipulation, so need to hook the EFI_CPU_ARCH_PROTOCOL interrupt manipulation routines.

Very much reaching the point where a better JIT needs to be written that doesn't have the reentrancy issues.

andreiw avatar May 07 '24 02:05 andreiw