Skip to contentSkip to conversation

Fix early panic on amd64 due to typo in supported CPU section

PATCH New Petr Vandrovec 1 participant 1 message Oct 12, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix early panic on amd64 due to typo in supported CPU section

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

----- Forwarded message from Petr Vandrovec <[email protected]> -----

Date: Sun, 12 Oct 2008 10:01:26 +0200
From: Petr Vandrovec <[email protected]>
To: [email protected]
Cc: [email protected], [email protected], [email protected]
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.

arch/x86/kernel/vmlinux_64.lds.S +1 -1
index 201e81a..46e0544 100644
@@ -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 -----