phantomuserland icon indicating copy to clipboard operation
phantomuserland copied to clipboard

guarded kernel malloc impl

Open dzavalishin opened this issue 7 years ago • 2 comments

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.

dzavalishin avatar Oct 16 '17 14:10 dzavalishin

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

dzavalishin avatar Oct 09 '19 21:10 dzavalishin

Is this issue solved? or is it yet to be solved, because i see some files attached here relating to the topic.

HarinKhakhi avatar Oct 15 '20 12:10 HarinKhakhi