GCC Compiler 4.3.0 exposes a Linux / BSD kernel bug

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 ./)

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 3 comments so far... add one

CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
3 comments… add one
  • tirumala rao Apr 21, 2008 @ 18:02

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

    Thanking you

  • Nilesh Mar 20, 2008 @ 11:45

    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

    This is quite late after the kernel 2.6.24 was released.

  • marc Mar 19, 2008 @ 20:15

    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.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Problem posting comment? Email me @ webmaster@cyberciti.biz