Re: [PATCH] lkdtm: hide stack overflow warning for corrupt-stack test

2017-01-16 Thread Kees Cook
On Mon, Jan 16, 2017 at 2:23 AM, Michael Ellerman wrote: > Arnd Bergmann writes: > >> After the latest change to make sure the compiler actually does a memset, >> it is now smart enough to flag the stack overflow at compile time, >> at least with gcc-7.0: >> >> drivers/misc/lkdtm_bugs.c: In funct

Re: [PATCH] lkdtm: hide stack overflow warning for corrupt-stack test

2017-01-16 Thread Michael Ellerman
Arnd Bergmann writes: > After the latest change to make sure the compiler actually does a memset, > it is now smart enough to flag the stack overflow at compile time, > at least with gcc-7.0: > > drivers/misc/lkdtm_bugs.c: In function 'lkdtm_CORRUPT_STACK': > drivers/misc/lkdtm_bugs.c:88:144: war

Re: [PATCH] lkdtm: hide stack overflow warning for corrupt-stack test

2017-01-11 Thread Kees Cook
On Wed, Jan 11, 2017 at 6:56 AM, Arnd Bergmann wrote: > After the latest change to make sure the compiler actually does a memset, > it is now smart enough to flag the stack overflow at compile time, > at least with gcc-7.0: > > drivers/misc/lkdtm_bugs.c: In function 'lkdtm_CORRUPT_STACK': > driver

[PATCH] lkdtm: hide stack overflow warning for corrupt-stack test

2017-01-11 Thread Arnd Bergmann
After the latest change to make sure the compiler actually does a memset, it is now smart enough to flag the stack overflow at compile time, at least with gcc-7.0: drivers/misc/lkdtm_bugs.c: In function 'lkdtm_CORRUPT_STACK': drivers/misc/lkdtm_bugs.c:88:144: warning: 'memset' writing 64 bytes int