From: Yinghai Lu <yinghai@kernel.org>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: "mingo@elte.hu" <mingo@elte.hu>,
linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Subject: Re: mmotm 2008-10-02-16-17 uploaded
Date: Tue, 07 Oct 2008 09:18:03 -0700 [thread overview]
Message-ID: <48EB8BBB.8000907@kernel.org> (raw)
In-Reply-To: <20081007163331.711a938c.kamezawa.hiroyu@jp.fujitsu.com>
KAMEZAWA Hiroyuki wrote:
> I'm sorry if alread fixed.
>
> Folloing function in git-x86.patch touches invalid address.
> ==
> +void __init early_cpu_init(void)
> +{
> + struct cpu_dev **cdev;
> + int count = 0;
> +
> + printk("KERNEL supported cpus:\n");
> + for (cdev = __x86_cpu_dev_start; cdev < __x86_cpu_dev_end; cdev++) {
> + struct cpu_dev *cpudev = *cdev;
> + unsigned int j;
> +
> + if (count >= X86_VENDOR_NUM)
> + break;
> + cpu_devs[count] = cpudev;
> + count++;
> +
> + for (j = 0; j < 2; j++) {
> + if (!cpudev->c_ident[j])
> + continue;
> + printk(" %s %s\n", cpudev->c_vendor,
> + cpudev->c_ident[j]);
> + }
> + }
> +
> + early_identify_cpu(&boot_cpu_data);
> }
> ==
> printk(" %s %s\n", cpudev->c_vendor, cpudev->c_ident[j]);
> touches invalid address. (following is printk() result by
> replacing %s with %p.
> ==
> ffffffff8066e38a ffffffff8066e383
> ffffffff8066e3ab ffffffff8066e3a2
> ffffffff8066e3af ffffffff8066e3b7
> 807064c0c7c74855 08ec834853e58948
> 807064c0c7c74855 74c085fffffe9fe8
> ==
> and the kernel never boots on my box.
could be merging problem again.
please check in arch/x86/kernel/vmliux_64.lds.S
it should be like
__con_initcall_end = .;
__x86_cpu_dev_start = .;
.x86_cpu_dev.init : AT(ADDR(.x86_cpu_dev.init) - LOAD_OFFSET) {
*(.x86_cpu_dev.init)
}
__x86_cpu_dev_end = .;
DYN_ARRAY_INIT(8)
SECURITY_INIT
YH
next prev parent reply other threads:[~2008-10-07 16:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200810022318.m92NI14X031834@imap1.linux-foundation.org>
2008-10-03 0:17 ` Randy.Dunlap
2008-10-03 0:45 ` Andrew Morton
2008-10-03 3:32 ` Randy Dunlap
2008-10-03 3:37 ` Andrew Morton
2008-10-03 3:43 ` Randy Dunlap
2008-10-07 7:33 ` KAMEZAWA Hiroyuki
2008-10-07 16:18 ` Yinghai Lu [this message]
2008-10-07 23:47 ` KAMEZAWA Hiroyuki
2008-10-08 0:01 ` Andrew Morton
2008-10-08 0:34 ` KAMEZAWA Hiroyuki
2008-10-08 9:50 ` 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=48EB8BBB.8000907@kernel.org \
--to=yinghai@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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
Powered by JetHome