From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by kanga.kvack.org (Postfix) with ESMTP id EE9156B027E for ; Sat, 14 Jul 2018 01:09:13 -0400 (EDT) Received: by mail-ed1-f69.google.com with SMTP id f8-v6so7505320eds.6 for ; Fri, 13 Jul 2018 22:09:13 -0700 (PDT) Received: from mx1.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id s35-v6si5509840edm.70.2018.07.13.22.09.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jul 2018 22:09:12 -0700 (PDT) Date: Sat, 14 Jul 2018 07:09:09 +0200 From: Joerg Roedel Subject: Re: [PATCH 39/39] x86/entry/32: Add debug code to check entry/exit cr3 Message-ID: <20180714050909.z4wohvvlbpaksbd5@suse.de> References: <1531308586-29340-1-git-send-email-joro@8bytes.org> <1531308586-29340-40-git-send-email-joro@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 , 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:28:50AM -0700, Andy Lutomirski wrote: > On Wed, Jul 11, 2018 at 4:29 AM, Joerg Roedel wrote: > > From: Joerg Roedel > > > > Add a config option that enabled code to check that we enter > > and leave the kernel with the correct cr3. This is needed > > because we have no NX protection of user-addresses in the > > kernel-cr3 on x86-32 and wouldn't notice that type of bug > > otherwise. > > > > I like this, but could you make it just use CONFIG_DEBUG_ENTRY? Makes sense, I'll change it. Regards, Joerg