phantomuserland
phantomuserland copied to clipboard
guarded kernel malloc impl
for wild pointer debugging - allocate each request in a whole page adding guard pages above/below. work in two modes - align up and down. align up mode allocates user memory at the top of memory page so that out of bound access with address > end of allocated chunk will jit guard page and cause page fault.
https://github.com/s0sasaki/MemoryAllocator/blob/master/smalloc.c https://github.com/sebastiencs/malloc/blob/master/realloc.c https://github.com/MaJerle/lwmem/blob/master/lwmem/src/lwmem/lwmem.c https://github.com/embeddedartistry/libmemory/blob/master/src/aligned_malloc.c
Is this issue solved? or is it yet to be solved, because i see some files attached here relating to the topic.