Validation of memory allocated through kmalloc

Date: Sun Jun 10 2001 - 04:15:01 EST

Is there some kernel api to validate memory allocated using kmalloc.
Suppose, I allocate some memory using kmalloc and at a later point of execution
I would like to validate if the memory allocated is not possibly freed by some other thread.

Pls suggest a patch/pointers if any.
I also noticed a commented 'CONFIG_DEBUG_MALLOC' config option (2.4.3 source),
It doesn't seem to be functional. Any pointers towards the history behind
it would also be helpful.

Thanks in advance,

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 21:00:11 EST