[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE9FiQV7DouV+76mzH0jFjFJOFBm-ZmgKpYVjTGAmKao0y3HbA@mail.gmail.com>
Date: Sun, 1 Mar 2015 11:27:48 -0800
From: Yinghai Lu <yinghai@...nel.org>
To: Ingo Molnar <mingo@...nel.org>
Cc: Borislav Petkov <bp@...e.de>, Jiri Kosina <jkosina@...e.cz>,
Kees Cook <keescook@...omium.org>,
Matt Fleming <matt.fleming@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>, Ingo Molnar <mingo@...hat.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"linux-efi@...r.kernel.org" <linux-efi@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>
Subject: Re: [PATCH 1/8] x86, kaslr: get kaslr_enabled back correctly
On Sun, Mar 1, 2015 at 7:23 AM, Ingo Molnar <mingo@...nel.org> wrote:
>
> I think that's a different bug.
>
> parse_kaslr_setup() is simply bogus, it does:
>
> kaslr_enabled = (bool)(pa_data + sizeof(struct setup_data));
>
> which makes no sense whatsoever: it randomly enables (or disables,
> depending on the physical address of the setup page) KASLR when it
> meets a SETUP_KASLR record.
>
Yes, you are right.
there are 8 patches in this series.
x86, kaslr: get kaslr_enabled back correctly
x86: Kill E820_RESERVED_KERN
x86, efi: copy SETUP_EFI data and access directly
x86, of: let add_dtb reserve by itself
x86, boot: Add add_pci handler for SETUP_PCI
x86: kill not used setup_data handling code
x86, pci: convert SETUP_PCI data to list
x86, pci: export SETUP_PCI data via sysfs
other 7 should also address the problem in
http://lkml.kernel.org/r/1424929021.10337.24.camel@intel.com
the root cause is E820_RESERVED_KERN and setup_data handling
will make E820 are not page aligned anymore.
We should change setup_data handling.
Please check updated version at
git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git
for-x86-4.0
(with a fix for config without CONFIG_PCI).
Thanks
Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists