[lkml]   [2012]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[ 117/117] x86, relocs: Add jiffies and jiffies_64 to the relative whitelist
    3.2-stable review patch.  If anyone has any objections, please let me know.


    From: "H. Peter Anvin" <>

    commit ea17e7414bc62e8d3bde8d08e3df1d921c518c17 upstream.

    The symbol jiffies is created in the linker script as an alias to
    jiffies_64. Unfortunately this is done outside any section, and
    apparently GNU ld 2.21 doesn't carry the section with it, so we end up
    with an absolute symbol and therefore a broken kernel.

    Add jiffies and jiffies_64 to the whitelist.

    The most disturbing bit with this discovery is that it shows that we
    have had multiple linker bugs in this area crossing multiple
    generations, and have been silently building bad kernels for some time.

    Reported-by: Stephen Rothwell <>
    Signed-off-by: H. Peter Anvin <>
    Signed-off-by: Ben Hutchings <>
    arch/x86/tools/relocs.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/arch/x86/tools/relocs.c b/arch/x86/tools/relocs.c
    index b8f7c65..b685296 100644
    --- a/arch/x86/tools/relocs.c
    +++ b/arch/x86/tools/relocs.c
    @@ -71,6 +71,7 @@ static const char * const sym_regex_kernel[S_NSYMTYPES] = {
    + "(jiffies|jiffies_64)|"

     \ /
      Last update: 2012-05-28 06:01    [W:0.023 / U:3.448 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site