GCC Compiler 4.3.0 exposes a Linux / BSD kernel bug

by Vivek Gite on March 19, 2008 · 3 comments

Since version 4.3, gcc changed its behavior concerning the x86/x86-64 ABI and the direction flag, that is it now assumes that the direction flag is cleared at the entry of a function and it doesn't clear once more if needed. According to LWN article GCC 4.3.0 exposes a kernel bug:

A change to GCC for a recent release coupled with a kernel bug has created a messy situation, with possible security implications. GCC changed some assumptions about x86 processor flags, in accordance with the ABI standard, that can lead to memory corruption for programs built with GCC 4.3.0. No one has come up with a way to exploit the flaw, at least yet, but it clearly is a problem that needs to be addressed.

=> GCC 4.3.0 exposes a kernel bug (via ./)

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

We're here to help you make the most of sysadmin work. So, subscribe!

{ 3 comments… read them below or add one }

1 marc March 19, 2008

FreeBSD doesn’t use GCC4.3 for kernel and world.

gcc version 4.2.1 20070719 [FreeBSD] this is the version in FreeBSD 7.0R. So it’s *maybe* a problem for the Linux kernel, while using anything bleeding edge.

Reply

2 Nilesh March 20, 2008

At least Fedora developers release application versions after testing and changing them a bit. :)

I have 4.1.2. I updated two days ago but gcc hasn’t changed.

BTW, what happened to the kernel bug ??

When I updated two days ago, kernel was updated to

2.6.24.3-34.fc8

This is quite late after the kernel 2.6.24 was released.

Reply

3 tirumala rao April 21, 2008

hi,
I have fedora 3 , what shall I do to install gcc4.3 , to work with opanMP.

Thanking you

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 3 + 7 ?
Please leave these two fields as-is:
Are you a human being? Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: