Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965414AbeAKTJS (ORCPT + 1 other); Thu, 11 Jan 2018 14:09:18 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:45940 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935234AbeAKTJP (ORCPT ); Thu, 11 Jan 2018 14:09:15 -0500 X-Google-Smtp-Source: ACJfBotYeckYIGuX2m2ClT4sWvLFQX8LCLUv8AMxFB4nM8gnBuFXWzzw/DCX7vn0eL/IB3yQV4MkZYxj/RJfOmVOMec= MIME-Version: 1.0 In-Reply-To: References: <20180105175229.GA29834@kroah.com> <20180105204557.GA8839@kroah.com> <20180107104540.GB14783@kroah.com> <20180108074645.GA24062@kroah.com> From: Linus Torvalds Date: Thu, 11 Jan 2018 11:09:13 -0800 X-Google-Sender-Auth: BSizhtaW0s1NN7dIfgDP5VLXXeM Message-ID: Subject: Re: [PATCH 4.4 00/37] 4.4.110-stable review To: Pavel Tatashin , Thomas Gleixner Cc: 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 , Steve Sistare Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: [ Patch to make sure the EFI trampoline_pgd is properly aligned and has the double pgd that KPTI requires ] On Thu, Jan 11, 2018 at 10:40 AM, Pavel Tatashin wrote: > If it is better to resubmit this patch via git send-email, please let me know. It would be better, because that way the patch can be more easily quoted and discussed. That said, I do not see why this isn't an issue upstream too. As far as I can tell, it's not just 4.4.110. Our current entry code does that ADJUST_KERNEL_CR3 dance too, which clears the PTI_SWITCH_MASK bit from cr3. And that realmode trampoline pgd seems all to be just aligned to PAGE_SIZE. Now, in the modern world, we generate new page tables for EFI, but we still have that EFI_OLD_MEMMAP code that disables that. And afaik, EFI_OLD_MEMMAP has the exact same problem that your patch fixes in 4.4 (where it's always on). So I think this patch should go into the development kernel too. Or maybe it already is, and I just haven't gotten it yet. Or - even more likely - I'm missing something entirely, and even EFI_OLD_MEMMAP solved this some other way upstream. Adding Thomas Gleixner explicitly to the participants so that he can tell me I'm a moron and point me to the right thing. Linus