how to detect kernel memory overflow ?
May 29, 2014
3:13 a.m.
Hello How to detect the kernel memory overflow errors? There are many tools to detect the user mode program memory problems, like the memcheck(Valgrind), is there any tools for the kernel ? The Kmemcheck detects some uses of uninitialized memory, can not detect the overflow errors. Thanks, HeChuan
4:04 a.m.
Hello em, this can protect the stack, so what about the memory buffer allocated through the kmalloc or vmalloc ? Thanks, HeChuan At 2014-05-29 12:01:10,Valdis.Kletnieks@vt.edu wrote:
On Thu, 29 May 2014 11:13:09 +0800, RS said:
How to detect the kernel memory overflow errors?
With a sufficiently recent gcc, you can build the kernel with CONFIG_CC_STACKPROTECTOR=y which will put a canary value on the stack and check it for corruption.
4461
Age (days ago)
4461
Last active (days ago)
2 comments
2 participants
participants (2)
-
RS -
Valdis.Kletnieks@vt.edu