lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080813212206.GB7071@cs181140183.pp.htv.fi>
Date:	Thu, 14 Aug 2008 00:22:06 +0300
From:	Adrian Bunk <bunk@...nel.org>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	linux-kernel@...r.kernel.org,
	Vegard Nossum <vegard.nossum@...il.com>
Subject: Re: [2.6.27 patch] #error for gcc 4.1.{0,1}

On Wed, Aug 13, 2008 at 01:57:49PM -0700, Andrew Morton wrote:
> On Wed, 13 Aug 2008 23:44:45 +0300
> Adrian Bunk <bunk@...nel.org> wrote:
> 
> > gcc 4.1.0 and 4.1.1 are known to miscompile the kernel:
> >   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27781
> > 
> > Usage of weak functions has become a common pattern in the kernel, and 
> > usages get added in each kernel version increasing the probability of 
> > bugs with each kernel release.
> > 
> > This miscompilation of weak functions can result in subtle runtime 
> > errors.
> > 
> > #error for gcc 4.1.0 and 4.1.1 to prevent users from running into
> > this bug.
> > 
> > Note:
> > We already printed a #warning for gcc 4.1.0 due to a different bug.
> 
> I've been hiding from this because it would wreck a lot of my
> cross-compilers, which quite a few other people are using as well.

We are talking about runtime breakages, with new breakages added in each 
kernel release.

Which is not nice for users.

And my patch is the result of developers spending time on debugging and 
working around a real-life bug caused by this compiler bug.

If you insist on keeping your 4.1.0 compilers I can prepare a patch that 
removes the fatal __weak usages.

> Vegard, save us!

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ