From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f72.google.com (mail-pl0-f72.google.com [209.85.160.72]) by kanga.kvack.org (Postfix) with ESMTP id 8D6676B0010 for ; Tue, 17 Jul 2018 03:07:30 -0400 (EDT) Received: by mail-pl0-f72.google.com with SMTP id az8-v6so44129plb.15 for ; Tue, 17 Jul 2018 00:07:30 -0700 (PDT) Received: from mx1.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id h11-v6si222560pgf.558.2018.07.17.00.07.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 00:07:29 -0700 (PDT) Date: Tue, 17 Jul 2018 09:07:25 +0200 From: Joerg Roedel Subject: Re: [PATCH 07/39] x86/entry/32: Enter the kernel via trampoline stack Message-ID: <20180717070725.paxlewuu4z4qd3cu@suse.de> References: <1531308586-29340-1-git-send-email-joro@8bytes.org> <1531308586-29340-8-git-send-email-joro@8bytes.org> <20180713105620.z6bjhqzfez2hll6r@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Andy Lutomirski Cc: Joerg Roedel , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , X86 ML , LKML , Linux-MM , Linus Torvalds , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , "Liguori, Anthony" , Daniel Gruss , Hugh Dickins , Kees Cook , Andrea Arcangeli , Waiman Long , Pavel Machek , "David H . Gutteridge" On Fri, Jul 13, 2018 at 10:21:39AM -0700, Andy Lutomirski wrote: > On Fri, Jul 13, 2018 at 3:56 AM, Joerg Roedel wrote: > > Right, I implement a more restrictive check. > > But the check needs to be correct or we'll mess up, right? I think > the code will be much more robust and easier to review if you check > "on the entry stack" instead of ">= the entry stack". (Or <= -- I can > never remember how this works in AT&T syntax.) Yeah, I re-used the check implemented on the NMI entry path, it checks exactly for the entry-stack range. Regards, Joerg