21.01.2014 Views

Lab 3 - IDA

Lab 3 - IDA

Lab 3 - IDA

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!