Re: [patch 2/5] Add the Kconfig option for the stackprotector feature

Arjan van de Ven
2006-07-28T17:26:28Z

On Fri, 2006-07-28 at 19:13 +0200, Paweł Sikora wrote:
>
> yes, it could.
>
> gcc supports stack protection at so called tree-level (it means
> it's architecture-independent). i've just tested a simple
> userland-code:

in userland it works, no question about that.
The problem comes when you want to use this userland abi in kernel
space; for x86-64 it could be done by a 20 line gcc patch, on some other
architectures... it's going to be really incredibly hard.

I'd have loved to make this more generic... but the mechanism behind
this technology on the gcc side is very architecture specific.