28.11.2014 Views

iOS Kernel Heap Armageddon - Hakim

iOS Kernel Heap Armageddon - Hakim

iOS Kernel Heap Armageddon - Hakim

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.

kalloc()<br />

• kalloc() is a wrapper around zalloc() and kmem_alloc()<br />

• it adds no additional heap meta data<br />

• caller needs to keep track of allocated size<br />

• for small requests zalloc() is used<br />

• for bigger requests kmem_alloc() is used<br />

• kalloc() registers several zones with names like kalloc.*<br />

Stefan Esser • <strong>iOS</strong> <strong>Kernel</strong> <strong>Heap</strong> <strong>Armageddon</strong> REVISITED • July 2012 •<br />

19

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

Saved successfully!

Ooh no, something went wrong!