add memory debug (kmalloc/kfree)

* support "memdebug" mckernel option
* check buffer overrun when memory free and next mcexec run
* check double free
* check memory leak when next mcexec run
This commit is contained in:
Tomoki Shirasawa
2014-10-07 15:45:16 +09:00
parent f3ea226d91
commit 658aa18ade
5 changed files with 348 additions and 8 deletions

View File

@@ -20,8 +20,9 @@
*/
struct malloc_header {
struct malloc_header *next;
unsigned int check;
unsigned int cpu_id;
struct malloc_header *next;
unsigned long size;
};