how to detect kernel memory overflow ?

RS tinyshrimp at 163.com
Thu May 29 00:04:24 EDT 2014


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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140529/8829ac26/attachment.html 


More information about the Kernelnewbies mailing list