Detecting kernel memory leaks
Detecting kernel memory leaks
Posted Jun 25, 2009 12:18 UTC (Thu) by epa (subscriber, #39769)In reply to: Detecting kernel memory leaks by cmarinas
Parent article: Detecting kernel memory leaks
The trouble with garbage collection in languages such as C, which allow casting pointers into other data types, is that you can't be sure what is a pointer and what isn't. A block of memory might contain values which appear to be pointers and stop the garbage collector freeing some blocks. This is just bad luck, and on a 64-bit system would have to be very bad luck, except for the fact that the kernel accepts data from untrusted user space. There would be all sorts of interesting DoS attacks based on getting the kernel to store some binary data which looks like pointers and exhausting the system memory.
