]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
x86: fix early panic on amd64 due to typo in supported CPU section
authorPetr Vandrovec <petr@vandrovec.name>
Sun, 12 Oct 2008 08:51:03 +0000 (10:51 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 12 Oct 2008 09:19:27 +0000 (11:19 +0200)
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>
Cc: thomas.petazzoni@free-electrons.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/vmlinux_64.lds.S

index 201e81a91a95371deeb0dc50269febc0a2714133..46e05447405b43855f46602f493847b75efa252a 100644 (file)
@@ -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) {