<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>Hello</div><div><br></div><div>em, this can protect the stack, so what about the memory buffer allocated through the kmalloc or vmalloc ?</div><div><br></div><div>Thanks,</div><div>HeChuan</div><div><div><pre><br>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.
</pre></div></div></div>