Lab 3 - IDA
Lab 3 - IDA
Lab 3 - IDA
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Lab</strong> 3 : Pointer paranoia<br />
Memory validation (simple method)<br />
Kernel VM<br />
Physical Memory<br />
PHYS_BASE<br />
0<br />
Kernel<br />
User<br />
Page directory<br />
• A valid pointer into a syscall:<br />
– is below PHYS_BASE in VM<br />
– is associated with a page of physical memory: use pagedir_get_page()<br />
• Kill the user program if there is an error!<br />
– exit code -1<br />
31