From: Petr Vandrovec <petr@vandrovec.name>
To: linux-kernel@vger.kernel.org
Cc: thomas.petazzoni@free-electrons.com
Subject: [PATCH] Fix early panic on amd64 due to typo in supported CPU section
Date: Sun, 12 Oct 2008 10:51:03 +0200 [thread overview]
Message-ID: <20081012085103.GA30082@vana.vc.cvut.cz> (raw)
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 -----
next reply other threads:[~2008-10-12 8:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-12 8:51 Petr Vandrovec [this message]
[not found] <20081012080126.GA29649@vana.vc.cvut.cz>
2008-10-12 9:22 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081012085103.GA30082@vana.vc.cvut.cz \
--to=petr@vandrovec.name \
--cc=linux-kernel@vger.kernel.org \
--cc=thomas.petazzoni@free-electrons.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®