Merge pull request #4206 from bylaws/smcim

Windows: Track RWX regions in mapped images
This commit is contained in:
Ryan Houdek authored and GitHub committed 2024-12-12 12:53:13 -08:00
commit 27ededf47f
5 files changed
+33 -2

No files matched your search

+4
View File
@@ -476,6 +476,10 @@ void BTCpuProcessInit() {
CTX->SetSyscallHandler(SyscallHandler.get());
CTX->InitCore();
InvalidationTracker.emplace(*CTX, Threads);
auto MainModule = reinterpret_cast<__TEB*>(NtCurrentTeb())->Peb->ImageBaseAddress;
InvalidationTracker->HandleImageMap(reinterpret_cast<uint64_t>(MainModule));
CPUFeatures.emplace(*CTX);
// Allocate the syscall/unixcall trampolines in the lower 2GB of the address space