Re: Stack protection via GCC's `-fstack-protector'

2006-11-13 Thread Samuel Thibault
Hi, Thomas Schwinge, le Mon 13 Nov 2006 19:29:53 +0100, a écrit : > +unsigned int __stack_chk_guard = 12345; I'd say this should be something like a value with higher bits set, so that it wouldn't be a valid pointer, even for reading. Samuel ___ Bug-

Re: Stack protection via GCC's `-fstack-protector'

2006-11-13 Thread Thomas Schwinge
Hello! On Wed, Nov 08, 2006 at 11:36:20PM +0100, I wrote: > On Wed, Nov 08, 2006 at 11:14:19PM +0100, Samuel Thibault wrote: > > Thomas Schwinge, le Wed 08 Nov 2006 22:40:54 +0100, a ?crit : > > > Is it feasible to have the `-fstack-protector' functionality in GNU Mach > > > and GRUB2 (and how to

Re: Stack protection via GCC's `-fstack-protector'

2006-11-08 Thread Thomas Bushnell BSG
On Wed, 2006-11-08 at 22:40 +0100, Thomas Schwinge wrote: > [Please keep both and in the > recipients list.] > > Is it feasible to have the `-fstack-protector' functionality in GNU Mach > and GRUB2 (and how to do that, then) or shall we unconditionally pass > `-fno-stack-protector' if available

Re: Stack protection via GCC's `-fstack-protector'

2006-11-08 Thread Samuel Thibault
Hi, Stefan Reinauer, le Wed 08 Nov 2006 23:36:44 +0100, a écrit : > * Samuel Thibault <[EMAIL PROTECTED]> [061108 23:14]: > > Thomas Schwinge, le Wed 08 Nov 2006 22:40:54 +0100, a écrit : > > > then cat gnumach-undef-bad; exit 2; else true; fi > > > stack_chk_fail > > > > > > Is it feasib

Re: Stack protection via GCC's `-fstack-protector'

2006-11-08 Thread Stefan Reinauer
Hi, * Samuel Thibault <[EMAIL PROTECTED]> [061108 23:14]: > Thomas Schwinge, le Wed 08 Nov 2006 22:40:54 +0100, a écrit : > > then cat gnumach-undef-bad; exit 2; else true; fi > > stack_chk_fail > > > > Is it feasible to have the `-fstack-protector' functionality in GNU Mach > > and GRUB2

Re: Stack protection via GCC's `-fstack-protector'

2006-11-08 Thread Thomas Schwinge
Hello! On Wed, Nov 08, 2006 at 11:14:19PM +0100, Samuel Thibault wrote: > Thomas Schwinge, le Wed 08 Nov 2006 22:40:54 +0100, a ?crit : > > Is it feasible to have the `-fstack-protector' functionality in GNU Mach > > and GRUB2 (and how to do that, then) or shall we unconditionally pass > > `-fno-s

Re: Stack protection via GCC's `-fstack-protector'

2006-11-08 Thread Samuel Thibault
Hi, Thomas Schwinge, le Wed 08 Nov 2006 22:40:54 +0100, a écrit : > then cat gnumach-undef-bad; exit 2; else true; fi > stack_chk_fail > > Is it feasible to have the `-fstack-protector' functionality in GNU Mach > and GRUB2 (and how to do that, then) or shall we unconditionally pass > `-f

Stack protection via GCC's `-fstack-protector'

2006-11-08 Thread Thomas Schwinge
[Please keep both and in the recipients list.] Hello! For some time, GCC now offers the following feature: info Gcc #v+ `-fstack-protector' Emit extra code to check for buffer overflows, such as stack smashing attacks. This is done by adding a guard variable to functions with