From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751907AbdJPIzp (ORCPT ); Mon, 16 Oct 2017 04:55:45 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:55077 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751410AbdJPIzn (ORCPT ); Mon, 16 Oct 2017 04:55:43 -0400 X-Google-Smtp-Source: AOwi7QBioyIROtJ629M6028veJCWd7vzbmwMrIYkiSkU5KwBhrAjzhrpoCxGaHf0RtzxqMwvUwn+tA== Date: Mon, 16 Oct 2017 11:55:40 +0300 From: "Kirill A. Shutemov" To: Brian Gerst Cc: "Kirill A. Shutemov" , Ingo Molnar , Linus Torvalds , the arch/x86 maintainers , Thomas Gleixner , "H. Peter Anvin" , Andy Lutomirski , Cyrill Gorcunov , Borislav Petkov , Andi Kleen , Linux-MM , Linux Kernel Mailing List Subject: Re: [PATCHv2, RFC] x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G Message-ID: <20171016085540.tn2tf4hgpeotvvon@node.shutemov.name> References: <20171013122345.86304-1-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 14, 2017 at 01:19:08PM -0400, Brian Gerst wrote: > From what we've seen with the TLB flush rework, having potential > garbage in the page tables that speculative reads can see can cause > bad things like machine checks. It would be best to have a second > temporary page just for the page table (and properly cleared). Hm. Interesting. Is there a place where I can read more about this? > The trampoline also needs its own stack, in case the stack pointer was > above 4G. You are right, we need new stack. I've missed that. > That could be at the end of the code page, since you only need 8 bytes. When I wrote about 8 bytes, I referred the usage of page table, not code. We use more than 8 bytes of code, but this should enough in the page. -- Kirill A. Shutemov