This is one of the mechanisms that OGI's StackGuard version of GCC uses
to prevent stack-smashing attacks.
http://www.cse.ogi.edu/DISC/projects/immunix/StackGuard/
All the StackGuard modifications to GCC are GPL'd and available at the
above URL.
> However, the proper fix is still to get rid of the buffer overflow. The
> above has the advantage that you can actually debug it fairly easily.
Right, and if the cost is low enough, then you can compile _all_ your
programs with this extra degree of protection to protect yourself
from stack smash attacks which haven't even been discovered yet.
The Immunix project at OGI is actually in the process of building a fully-
StackGuarded RedHat 5.1 distribution.
StackGuard is a user-level solution to the stack-smashing buffer overflow
problem.
----
Aaron J. Grier | agrier@cse.ogi.edu
"I generally find that a goat isn't really necessary, but bloodying
one's fingers while installing the system and SCSI chain does seem to
correlate with more reliable operation." -- Leonard N. Zubkoff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html