lkml.org 
[lkml]   [2010]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 8/8] jump label: Disable due to compiler bug
    From: Jason Baron <jbaron@redhat.com>

    Unfortunately, we found a compiler bug in the implementation of
    'asm goto'. The bug can cause the kernel to crash.

    For now, we are disabling jump labels with a big hammer. When the
    gcc fix is committed, we will update the kernel with a better check
    for either the version number it's fix in, or some detection of
    whether gcc has the fix in place.

    Signed-off-by: Jason Baron <jbaron@redhat.com>
    LKML-Reference: <2d1b1d5d2b3930e1acb063cefffbcb2faf049854.1288212486.git.jbaron@redhat.com>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
    ---
    include/linux/jump_label.h | 9 +++++++++
    1 files changed, 9 insertions(+), 0 deletions(-)

    diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h
    index b3835f6..d9d367c 100644
    --- a/include/linux/jump_label.h
    +++ b/include/linux/jump_label.h
    @@ -1,11 +1,20 @@
    #ifndef _LINUX_JUMP_LABEL_H
    #define _LINUX_JUMP_LABEL_H

    +/*
    + * A compiler bug was found in the implementation of 'asm goto'. Thus,
    + * we are disabling it for now pending a better check for compiler version
    + * that fixes it.
    + */
    +#if 0
    +
    #if defined(CC_HAVE_ASM_GOTO) && defined(CONFIG_HAVE_ARCH_JUMP_LABEL)
    # include <asm/jump_label.h>
    # define HAVE_JUMP_LABEL
    #endif

    +#endif
    +
    enum jump_label_type {
    JUMP_LABEL_ENABLE,
    JUMP_LABEL_DISABLE
    --
    1.7.1



    \
     
     \ /
      Last update: 2010-10-28 16:01    [W:3.735 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site