Re: Switch on compiler hardening defaults

2009-12-26 Thread Bastian Blank
On Sat, Dec 26, 2009 at 01:29:48AM +0100, Kurt Roeckx wrote: > On Tue, Oct 27, 2009 at 11:51:35PM +0100, Bastian Blank wrote: > > What would be a step forward: > > - Make any code PIC, including binaries (PIE) and static libs. > static libs would need to be PIE, not PIC. The differences between PI

Re: Switch on compiler hardening defaults

2009-12-25 Thread Kurt Roeckx
On Tue, Oct 27, 2009 at 11:51:35PM +0100, Bastian Blank wrote: > What would be a step forward: [...] > - Make any code PIC, including binaries (PIE) and static libs. static libs would need to be PIE, not PIC. This is something that's not properly supported on all our arches. Some people will also

Re: Switch on compiler hardening defaults

2009-12-20 Thread Petter Reinholdtsen
[Kees Cook] > As an example, I have a debdiff against openssh to use it: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561887 > > With the new package, the arch-specific logic for hardening defaults > is in one place, and a maintainer can selectively disable anything they > don't want on by d

Re: Switch on compiler hardening defaults

2009-12-20 Thread Kees Cook
Hi, On Tue, Nov 24, 2009 at 09:38:41PM +0100, Moritz Muehlenhoff wrote: > On 2009-11-05, Kees Cook wrote: > > This would certainly be better than nothing, and better than the > > hardening-wrapper package, but it would require that every package in > > Debian be modified to respect external envir

Re: Switch on compiler hardening defaults

2009-11-24 Thread Moritz Muehlenhoff
["Followup-To:" header set to gmane.linux.debian.devel.general.] On 2009-11-05, Kees Cook wrote: >> The majority of distributions does turn on these options during >> package build time, which IMO is the right thing to do. Debian >> should do the same. There's now Raphael's new framework in place

Re: Switch on compiler hardening defaults

2009-11-01 Thread Matthias Klose
On 25.10.2009 19:55, Kees Cook wrote: Hello, I would like to propose enabling[1] the GCC hardening patches that Ubuntu uses[2]. Ubuntu has used it successfully for 1.5 years now (3 releases), and many of the issues have already been fixed in packages that needed adjustment[3]. After all this t

Re: Switch on compiler hardening defaults

2009-10-30 Thread Henrique de Moraes Holschuh
On Thu, 29 Oct 2009, Kees Cook wrote: > On Thu, Oct 29, 2009 at 10:01:08PM -0200, Henrique de Moraes Holschuh wrote: > > On Tue, 27 Oct 2009, Kees Cook wrote: > > > On Mon, Oct 26, 2009 at 11:14:25AM +0100, Bastian Blank wrote: > > > > On Sun, Oct 25, 2009 at 11:55:25AM -0700, Kees Cook wrote: > >

Re: Switch on compiler hardening defaults

2009-10-29 Thread Kees Cook
On Thu, Oct 29, 2009 at 10:01:08PM -0200, Henrique de Moraes Holschuh wrote: > On Tue, 27 Oct 2009, Kees Cook wrote: > > On Mon, Oct 26, 2009 at 11:14:25AM +0100, Bastian Blank wrote: > > > On Sun, Oct 25, 2009 at 11:55:25AM -0700, Kees Cook wrote: > > > > I would like to propose enabling[1] the GC

Re: Switch on compiler hardening defaults

2009-10-29 Thread Henrique de Moraes Holschuh
On Tue, 27 Oct 2009, Kees Cook wrote: > On Mon, Oct 26, 2009 at 11:14:25AM +0100, Bastian Blank wrote: > > On Sun, Oct 25, 2009 at 11:55:25AM -0700, Kees Cook wrote: > > > I would like to propose enabling[1] the GCC hardening patches that Ubuntu > > > uses[2]. > > > > How do they work? Do they als

Re: Switch on compiler hardening defaults

2009-10-29 Thread Henrique de Moraes Holschuh
On Thu, 29 Oct 2009, Christoph Anton Mitterer wrote: > On Tue, 2009-10-27 at 22:19 -0200, Henrique de Moraes Holschuh wrote: > > Well, the issue raised in LKML is that you absolutely should *not* enable > > -fstack-protector-all unless you _really_ know what you're doing, and most > > certainly not

Re: Switch on compiler hardening defaults

2009-10-28 Thread Christoph Anton Mitterer
On Tue, 2009-10-27 at 22:19 -0200, Henrique de Moraes Holschuh wrote: > Well, the issue raised in LKML is that you absolutely should *not* enable > -fstack-protector-all unless you _really_ know what you're doing, and most > certainly not by default. It has nothing to do with -fstack-protector, ju

Re: Switch on compiler hardening defaults

2009-10-27 Thread Kees Cook
Hi, On Tue, Oct 27, 2009 at 10:19:22PM -0200, Henrique de Moraes Holschuh wrote: > On Tue, 27 Oct 2009, Kees Cook wrote: > > > > It seems the kernel will not be happy if the stack protector is switched > > > > on unconditionally: > > > > > > > > http://osdir.com/ml/linux-kernel/2009-10/msg07064.h

Re: Switch on compiler hardening defaults

2009-10-27 Thread Henrique de Moraes Holschuh
On Tue, 27 Oct 2009, Kees Cook wrote: > > > It seems the kernel will not be happy if the stack protector is switched > > > on unconditionally: > > > > > > http://osdir.com/ml/linux-kernel/2009-10/msg07064.html > > > > Indeed. The kernel build system needs to be able to command whether > > stackp

Re: Switch on compiler hardening defaults

2009-10-27 Thread Bastian Blank
On Mon, Oct 26, 2009 at 09:41:59PM +0100, Christoph Anton Mitterer wrote: > Ever thought about integrating PaX [0] per default in Debian? What features does the grsecurity patch provide currently? I know that several of the mentioned PaX features are supported in vanilla kernel in the meantime: -

Re: Switch on compiler hardening defaults

2009-10-27 Thread Christoph Anton Mitterer
On Tue, 2009-10-27 at 09:32 +0800, Paul Wise wrote: > Any idea if these patches will be merged upstream? It's probably quite unlikely,... although I never understood why,.. Even though it's available for some architectures,.. it would improve security at least on them. Cheers, -- To UNSUBSCRIB

Re: Switch on compiler hardening defaults

2009-10-27 Thread Kees Cook
Hi, On Tue, Oct 27, 2009 at 01:30:12PM -0200, Henrique de Moraes Holschuh wrote: > On Mon, 26 Oct 2009, Gabor Gombas wrote: > > On Mon, Oct 26, 2009 at 11:14:25AM +0100, Bastian Blank wrote: > > > On Sun, Oct 25, 2009 at 11:55:25AM -0700, Kees Cook wrote: > > > > I would like to propose enabling[1

Re: Switch on compiler hardening defaults

2009-10-27 Thread Samuel Thibault
Kees Cook, le Tue 27 Oct 2009 14:11:43 -0700, a écrit : > On Mon, Oct 26, 2009 at 11:14:25AM +0100, Bastian Blank wrote: > > On Sun, Oct 25, 2009 at 11:55:25AM -0700, Kees Cook wrote: > > > I would like to propose enabling[1] the GCC hardening patches that Ubuntu > > > uses[2]. > > > > How do they

Re: Switch on compiler hardening defaults

2009-10-27 Thread Kees Cook
On Mon, Oct 26, 2009 at 11:14:25AM +0100, Bastian Blank wrote: > On Sun, Oct 25, 2009 at 11:55:25AM -0700, Kees Cook wrote: > > I would like to propose enabling[1] the GCC hardening patches that Ubuntu > > uses[2]. > > How do they work? Do they also change the free-standing compiler or only > the

Re: Switch on compiler hardening defaults

2009-10-27 Thread Henrique de Moraes Holschuh
On Mon, 26 Oct 2009, Gabor Gombas wrote: > On Mon, Oct 26, 2009 at 11:14:25AM +0100, Bastian Blank wrote: > > On Sun, Oct 25, 2009 at 11:55:25AM -0700, Kees Cook wrote: > > > I would like to propose enabling[1] the GCC hardening patches that Ubuntu > > > uses[2]. > > > > How do they work? Do they

Re: Switch on compiler hardening defaults

2009-10-26 Thread Paul Wise
On Tue, Oct 27, 2009 at 4:41 AM, Christoph Anton Mitterer wrote: > Ever thought about integrating PaX [0] per default in Debian? > I'm however not sure how much this actually breaks ;) Any idea if these patches will be merged upstream? -- bye, pabs http://wiki.debian.org/PaulWise -- To UNS

Re: Switch on compiler hardening defaults

2009-10-26 Thread Christoph Anton Mitterer
Hi. Ever thought about integrating PaX [0] per default in Debian? I'm however not sure how much this actually breaks ;) Cheers, Chris. [0] http://pax.grsecurity.net/ -- To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@

Re: Switch on compiler hardening defaults

2009-10-26 Thread Kees Cook
Hi, On Mon, Oct 26, 2009 at 01:36:28PM +0100, Florian Weimer wrote: > * Kees Cook: > > I would like to propose enabling[1] the GCC hardening patches that Ubuntu > > uses[2]. > > Seems a good idea to me. But I think we should defer the required > full archive rebuild until we've got the hardening

Re: Switch on compiler hardening defaults

2009-10-26 Thread Florian Weimer
* Kees Cook: > I would like to propose enabling[1] the GCC hardening patches that Ubuntu > uses[2]. Seems a good idea to me. But I think we should defer the required full archive rebuild until we've got the hardening patch for operator new[] (which currently can return a heap block which is smal

Re: Switch on compiler hardening defaults

2009-10-26 Thread Gabor Gombas
On Mon, Oct 26, 2009 at 11:14:25AM +0100, Bastian Blank wrote: > On Sun, Oct 25, 2009 at 11:55:25AM -0700, Kees Cook wrote: > > I would like to propose enabling[1] the GCC hardening patches that Ubuntu > > uses[2]. > > How do they work? Do they also change the free-standing compiler or only > the

Re: Switch on compiler hardening defaults

2009-10-26 Thread Bastian Blank
On Sun, Oct 25, 2009 at 11:55:25AM -0700, Kees Cook wrote: > I would like to propose enabling[1] the GCC hardening patches that Ubuntu > uses[2]. How do they work? Do they also change the free-standing compiler or only the hosted one? There is a lot of software, which (I would say) missuse the hos

Re: Switch on compiler hardening defaults

2009-10-26 Thread Michael Tautschnig
> On Monday 26 October 2009 09:22:26 Marco d'Itri wrote: > > > I would like to propose enabling[1] the GCC hardening patches that Ubuntu > > > uses[2]. > > > > Seconded. > > Thirded. > +1. Thanks for bringing this up, Michael pgpcMDHNXCorM.pgp Description: PGP signature

Re: Switch on compiler hardening defaults

2009-10-25 Thread Russell Coker
On Monday 26 October 2009 09:22:26 Marco d'Itri wrote: > > I would like to propose enabling[1] the GCC hardening patches that Ubuntu > > uses[2]. > > Seconded. Thirded. -- To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@

Re: Switch on compiler hardening defaults

2009-10-25 Thread Marco d'Itri
On Oct 25, Kees Cook wrote: > I would like to propose enabling[1] the GCC hardening patches that Ubuntu > uses[2]. Seconded. hardening-wrapper does not looks like a solution to me since it execs perl for each call to gcc and ld when installed (even when inactive). And as you noticed, nobody uses

Switch on compiler hardening defaults

2009-10-25 Thread Kees Cook
Hello, I would like to propose enabling[1] the GCC hardening patches that Ubuntu uses[2]. Ubuntu has used it successfully for 1.5 years now (3 releases), and many of the issues have already been fixed in packages that needed adjustment[3]. After all this time, use of the hardening-wrapper[4] pac