21.01.2014 Views

Lab 3 - IDA

Lab 3 - IDA

Lab 3 - IDA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Lab</strong> 3 : Part C<br />

• Part C: Making the kernel robust.<br />

– Nothing a user-program does should cause the kernel to crash,<br />

panic or fail an assertion!<br />

– Example evil user program passes NULL for filename:<br />

create( (char *) 0, 1);<br />

– Or worse, writing to kernel space:<br />

read( STDIN_FILENO, 0xc0000000, 666 );<br />

– Be paranoid<br />

• All pointers from user programs into the kernel must be<br />

checked.<br />

– stack pointer, string, buffer<br />

27

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

Saved successfully!

Ooh no, something went wrong!