Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933002AbeAKVoy (ORCPT + 1 other); Thu, 11 Jan 2018 16:44:54 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:59990 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932472AbeAKVox (ORCPT ); Thu, 11 Jan 2018 16:44:53 -0500 Date: Thu, 11 Jan 2018 22:44:39 +0100 (CET) From: Thomas Gleixner To: Steven Sistare cc: Linus Torvalds , Pavel Tatashin , Greg Kroah-Hartman , Andy Lutomirski , Hugh Dickins , Thomas Voegtle , Linux Kernel Mailing List , Andrew Morton , Guenter Roeck , Shuah Khan , patches@kernelci.org, Ben Hutchings , lkft-triage@lists.linaro.org, stable , Matt Fleming , Borislav Petkov Subject: Re: [PATCH 4.4 00/37] 4.4.110-stable review In-Reply-To: <627a5a80-b759-e90e-ae65-193a4213f643@oracle.com> Message-ID: References: <20180105175229.GA29834@kroah.com> <20180105204557.GA8839@kroah.com> <20180107104540.GB14783@kroah.com> <20180108074645.GA24062@kroah.com> <627a5a80-b759-e90e-ae65-193a4213f643@oracle.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, 11 Jan 2018, Steven Sistare wrote: > On 1/11/2018 3:46 PM, Linus Torvalds wrote: > > On Thu, Jan 11, 2018 at 12:37 PM, Thomas Gleixner wrote: > >> > >> 67a9108ed431 ("x86/efi: Build our own page table structures") > >> > >> got rid of EFI depending on real_mode_header->trampoline_pgd > > > > So I think it only got rid of by default - the codepath is still > > there, the allocation is still there, it's just that it's not actually > > used unless somebody does that "efi=old_mmap" thing. > > > > Looking around, there's at least one quirk for the SGI UV1 system that > > enables EFI_OLD_MMAP automatically. There might be others that I > > missed, but I think that's it. > > > > So it *can* trigger without "efi=old_mmap", but not on any normal machines. > > > > And as Pavel points out, even when the bug is active, it's pretty hard > > to actually trigger. > > > > But yeah, there may be other EFI patches that I didn't notice that > > changed things in other ways too. > > > > Linus > > The bug is not present in the latest upstream kernel because the efi_pgd is > correctly aligned: > > arch/x86/platform/efi/efi_64.c > int __init efi_alloc_page_tables(void) > efi_pgd = (pgd_t *)__get_free_pages(gfp_mask, PGD_ALLOCATION_ORDER); Yes, I came exactly to the same conclusion, but I didn't want to call Linus a moron before I triple checked that trampoline_pgd is still there, but only every used to get out of the realmode swamp at bpot. Thanks, tglx