views:

21

answers:

1

We occasionally come into this error when running a EXE on windows.

How does OS know if a specific memory can be read or not?

A: 

The CPU walks the page table entries pointed to via the CR3 register - if a matching, valid PTE is not found, this hardware exception will be raised and the NT kernel will turn it into a SEH exception.

Paul Betts