Skip to content

Commit

Permalink
Fix lingering remapped gfns after memaccess traps are gone (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
tklengyel authored Oct 5, 2019
1 parent f2e824b commit 0fd85fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libdrakvuf/vmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ void remove_trap(drakvuf_t drakvuf,

if (!container->traps)
{
if ( VMI_SUCCESS == vmi_set_mem_event(vmi, container->memaccess.gfn, VMI_MEMACCESS_N, drakvuf->altp2m_idx) )
if ( VMI_SUCCESS == vmi_slat_change_gfn(vmi, drakvuf->altp2m_idx, container->memaccess.gfn, ~(addr_t)0))
{
PRINT_DEBUG("Removed memtrap for GFN 0x%lx in altp2m view %u\n",
container->memaccess.gfn, drakvuf->altp2m_idx);
Expand Down

0 comments on commit 0fd85fb

Please sign in to comment.