From: Junichi Nomura <j-nomura@ce.jp.nec.com>
To: Kairui Song <kasong@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: "x86@kernel.org" <x86@kernel.org>, Baoquan He <bhe@redhat.com>,
Chao Fan <fanc.fnst@cn.fujitsu.com>,
"kexec@lists.infradead.org" <kexec@lists.infradead.org>,
Borislav Petkov <bp@alien8.de>,
Thomas Gleixner <tglx@linutronix.de>,
Dave Young <dyoung@redhat.com>
Subject: Re: [PATCH] x86/kexec: always ensure EFI systab region is mapped
Date: Tue, 23 Apr 2019 06:20:09 +0000 [thread overview]
Message-ID: <965f770a-b103-72fb-eaef-cb337ebe8290@ce.jp.nec.com> (raw)
In-Reply-To: <20190422092804.15534-1-kasong@redhat.com>
On 4/22/19 6:28 PM, Kairui Song wrote:
> The reason is the systab region is not mapped by the identity mapping
> provided by kexec. Currently kexec only create identity mapping for
> mem regions, wihch won't cover the systab. So second kernel will be
> accessing a not mapped memory region and cause fault.
> But as kexec tend to pad the map region up to PUD size, the
> systab could be included in the map by accident, so it worked on
> some machines, but that will be broken easily and unstable.
Is the mapping of ACPI tables just by luck, too?
--
Jun'ichi Nomura, NEC Corporation / NEC Solution Innovators, Ltd.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
WARNING: multiple messages have this Message-ID (diff)
From: Junichi Nomura <j-nomura@ce.jp.nec.com>
To: Kairui Song <kasong@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Borislav Petkov <bp@alien8.de>,
Thomas Gleixner <tglx@linutronix.de>,
"Chao Fan" <fanc.fnst@cn.fujitsu.com>,
Baoquan He <bhe@redhat.com>, Dave Young <dyoung@redhat.com>,
"x86@kernel.org" <x86@kernel.org>,
"kexec@lists.infradead.org" <kexec@lists.infradead.org>
Subject: Re: [PATCH] x86/kexec: always ensure EFI systab region is mapped
Date: Tue, 23 Apr 2019 06:20:09 +0000 [thread overview]
Message-ID: <965f770a-b103-72fb-eaef-cb337ebe8290@ce.jp.nec.com> (raw)
In-Reply-To: <20190422092804.15534-1-kasong@redhat.com>
On 4/22/19 6:28 PM, Kairui Song wrote:
> The reason is the systab region is not mapped by the identity mapping
> provided by kexec. Currently kexec only create identity mapping for
> mem regions, wihch won't cover the systab. So second kernel will be
> accessing a not mapped memory region and cause fault.
> But as kexec tend to pad the map region up to PUD size, the
> systab could be included in the map by accident, so it worked on
> some machines, but that will be broken easily and unstable.
Is the mapping of ACPI tables just by luck, too?
--
Jun'ichi Nomura, NEC Corporation / NEC Solution Innovators, Ltd.
next prev parent reply other threads:[~2019-04-23 6:21 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-22 9:28 [PATCH] x86/kexec: always ensure EFI systab region is mapped Kairui Song
2019-04-22 9:28 ` Kairui Song
2019-04-23 6:20 ` Junichi Nomura [this message]
2019-04-23 6:20 ` Junichi Nomura
2019-04-23 10:49 ` Dave Young
2019-04-23 10:49 ` Dave Young
2019-04-23 17:15 ` Kairui Song
2019-04-23 17:15 ` Kairui Song
2019-04-24 2:47 ` Junichi Nomura
2019-04-24 2:47 ` Junichi Nomura
2019-04-24 5:41 ` Baoquan He
2019-04-24 5:41 ` Baoquan He
2019-04-24 6:18 ` Dave Young
2019-04-24 6:18 ` Dave Young
2019-04-24 7:45 ` Baoquan He
2019-04-24 7:45 ` Baoquan He
2019-04-24 11:36 ` Kairui Song
2019-04-24 11:36 ` Kairui Song
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=965f770a-b103-72fb-eaef-cb337ebe8290@ce.jp.nec.com \
--to=j-nomura@ce.jp.nec.com \
--cc=bhe@redhat.com \
--cc=bp@alien8.de \
--cc=dyoung@redhat.com \
--cc=fanc.fnst@cn.fujitsu.com \
--cc=kasong@redhat.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.