void IntSwapgsDisable(void)
Disable SWAPGS mitigations. Must be used only for PrepareUninit.
int INTSTATUS
The status data type.
void IntSwapgsUninit(void)
Uninit the SWAPGS mitigation.
BOOLEAN IntSwapgsIsPtrInHandler(QWORD Ptr, THS_PTR_TYPE Type, QWORD *Gadget)
Check if a pointer points inside a SWAPGS handler.
QWORD IntSwapgsRelocatePtrIfNeeded(QWORD Ptr)
Relocate a pointer if it points inside a SWAPGS gadget, and make it point inside the installed handle...
THS_PTR_TYPE
The type of pointer to be checked.
INTSTATUS IntSwapgsStartMitigation(void)
Scan the kernel for vulnerable SWAPGS gadgets, and mitigate CVE-2019-1125, when such gadgets are foun...