From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763423AbdAES62 (ORCPT ); Thu, 5 Jan 2017 13:58:28 -0500 Received: from mga09.intel.com ([134.134.136.24]:7791 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932315AbdAES4r (ORCPT ); Thu, 5 Jan 2017 13:56:47 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,322,1477983600"; d="scan'208";a="1079623923" Subject: Re: [RFC] x86/mm/KASLR: Remap GDTs at fixed location To: Thomas Garnier References: <20170104221630.831-1-thgarnie@google.com> <20170105081114.GD2098@gmail.com> <4dffd167-9cfd-dfcc-6556-05d7ca8f4595@linux.intel.com> Cc: Ingo Molnar , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Kees Cook , Borislav Petkov , Andy Lutomirski , Dave Hansen , Chen Yucong , Paul Gortmaker , Andrew Morton , Masahiro Yamada , Sebastian Andrzej Siewior , Anna-Maria Gleixner , Boris Ostrovsky , Rasmus Villemoes , Michael Ellerman , Juergen Gross , Richard Weinberger , the arch/x86 maintainers , LKML , Kernel Hardening , Linus Torvalds , Peter Zijlstra From: Arjan van de Ven Message-ID: <563d8e71-b119-f76d-3784-20f24e43f44d@linux.intel.com> Date: Thu, 5 Jan 2017 10:56:45 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/5/2017 8:40 AM, Thomas Garnier wrote: > Well, it happens only when KASLR memory randomization is enabled. Do > you think it should have a separate config option? no I would want it a runtime option.... "sgdt from ring 3" is going away with UMIP (and is already possibly gone in virtual machines, see https://lwn.net/Articles/694385/) and for those cases it would be a shame to lose the randomization