mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix early panic on amd64 due to typo in supported CPU section
@ 2008-10-12  8:51 Petr Vandrovec
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Vandrovec @ 2008-10-12  8:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: thomas.petazzoni

It seems that I forgot to CC LKML on that one...
						Petr

----- Forwarded message from Petr Vandrovec <petr@vandrovec.name> -----

Date: Sun, 12 Oct 2008 10:01:26 +0200
From: Petr Vandrovec <petr@vandrovec.name>
To: thomas.petazzoni@free-electrons.com
Cc: mingo@elte.hu, tglx@linutronix.de, torvalds@linux-foundation.org
Subject: [PATCH] Fix early panic on amd64 due to typo in supported CPU section

Do not crash when enumerating supported CPU architectures

SECURITY_INIT somehow ended up in x86_cpu_dev.init section.  That caused printk
in code which prints supported architectures to hit #GP due to non-canonical
address being used.

Signed-off-by: Petr Vandrovec <petr@vandrovec.name>

diff --git a/arch/x86/kernel/vmlinux_64.lds.S b/arch/x86/kernel/vmlinux_64.lds.S
index 201e81a..46e0544 100644
--- a/arch/x86/kernel/vmlinux_64.lds.S
+++ b/arch/x86/kernel/vmlinux_64.lds.S
@@ -172,8 +172,8 @@ SECTIONS
   .x86_cpu_dev.init : AT(ADDR(.x86_cpu_dev.init) - LOAD_OFFSET) {
 	*(.x86_cpu_dev.init)
   }
-  SECURITY_INIT
   __x86_cpu_dev_end = .;
+  SECURITY_INIT
 
   . = ALIGN(8);
   .parainstructions : AT(ADDR(.parainstructions) - LOAD_OFFSET) {

----- End forwarded message -----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-12  9:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20081012080126.GA29649@vana.vc.cvut.cz>
2008-10-12  9:22 ` [PATCH] Fix early panic on amd64 due to typo in supported CPU section Ingo Molnar
2008-10-12  8:51 Petr Vandrovec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®