Re: [PATCH v2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled
From: Baoquan He
Date: Tue May 09 2017 - 22:30:23 EST
On 05/08/17 at 05:25pm, Borislav Petkov wrote:
> On Mon, May 08, 2017 at 09:36:49AM +0800, Baoquan He wrote:
> > Thanks for explaining, Bhupesh.
> >
> > BIOS issue of SGI uv1 is still not fixed. There's a quirk for uv1 to
> > use efi old map:
> >
> > void __init efi_apply_memmap_quirks(void)
> > {
> > ...
> > ...
> > /* UV2+ BIOS has a fix for this issue. UV1 still needs the quirk. */
> > if (dmi_check_system(sgi_uv1_dmi))
> > set_bit(EFI_OLD_MEMMAP, &efi.flags);
> > }
> >
> > And because of some reasons, redhat also need efi old_map now.
> >
> > Hi Matt,
> >
> > This v2 patch works on my kvm guest, however there's still problem on
> > SGI system. I will post v3 later after it's handled. So nack this v2
> > patch.
>
I have rewrote patch with p4d considered. Now with the patch applied,
nokaslr works, means the pud copying is right. While another crash
occured, from back trace it's different reason. Will arrange patch and
paste it with boot log.
Thanks
Baoquan