Hi everyone,
I was wondering what the safest way (no bugcheck) for accessing arbitrary kernel mode addresses from a ring0 driver is?
MmIsAddressValid is not a safe routine to use since memory can be paged out even after it returns TRUE.
Likewise MmProbeAndLockPages using AccessMode KernelMode does not cause exception on invalid kernel memory accesses (like it does for UserMode).
My question is similar to https://www.osronline.com/ShowThread.cfm?link=196332 , however, I found no answer.
What is a safe way of reading kernel mode virtual memory from ring0? And if the VM is valid, but paged out, how can I force it to be paged in?
I was wondering what the safest way (no bugcheck) for accessing arbitrary kernel mode addresses from a ring0 driver is?
MmIsAddressValid is not a safe routine to use since memory can be paged out even after it returns TRUE.
Likewise MmProbeAndLockPages using AccessMode KernelMode does not cause exception on invalid kernel memory accesses (like it does for UserMode).
My question is similar to https://www.osronline.com/ShowThread.cfm?link=196332 , however, I found no answer.
What is a safe way of reading kernel mode virtual memory from ring0? And if the VM is valid, but paged out, how can I force it to be paged in?