The invention provides a system and method for tracking memory information
associated with dynamically loaded kernel modules with the help of a
tracking system. The tracking system defines its own kernel memory
allocation functions. Whenever, a dynamic kernel module is
loaded/unloaded into/from the kernel space, these newly defined functions
are called in response to kernel memory allocation/de-allocation requests
from the kernel module. The newly defined functions are responsible for
allocating and de-allocating kernel memory, as well as, keeping track of
information relating to the kernel memory allocations/de-allocations. The
tracked information may be used to identify the source of kernel memory
leaks.