This is a note to let you know that I've just added the patch titled

    x86, relocs: Add jiffies and jiffies_64 to the relative whitelist

to the 3.3-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     x86-relocs-add-jiffies-and-jiffies_64-to-the-relative-whitelist.patch
and it can be found in the queue-3.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From ea17e7414bc62e8d3bde8d08e3df1d921c518c17 Mon Sep 17 00:00:00 2001
From: "H. Peter Anvin" <[email protected]>
Date: Thu, 24 May 2012 07:01:38 -0700
Subject: x86, relocs: Add jiffies and jiffies_64 to the relative whitelist

From: "H. Peter Anvin" <[email protected]>

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.

Link: 
http://lkml.kernel.org/r/[email protected]
Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 arch/x86/tools/relocs.c |    1 +
 1 file changed, 1 insertion(+)

--- a/arch/x86/tools/relocs.c
+++ b/arch/x86/tools/relocs.c
@@ -71,6 +71,7 @@ static const char * const sym_regex_kern
        "__(start|stop)_notes|"
        "__end_rodata|"
        "__initramfs_start|"
+       "(jiffies|jiffies_64)|"
        "_end)$"
 };
 


Patches currently in stable-queue which might be from [email protected] are

queue-3.3/x86-relocs-add-jiffies-and-jiffies_64-to-the-relative-whitelist.patch
queue-3.3/x86-32-relocs-whitelist-more-symbols-for-ld-bug-workaround.patch
queue-3.3/x86-relocs-build-clean-fix.patch
queue-3.3/x86-relocs-when-printing-an-error-say-relative-or-absolute.patch
queue-3.3/x86-relocs-workaround-for-binutils-2.22.52.0.1-section-bug.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to