From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937956AbdAETCH (ORCPT ); Thu, 5 Jan 2017 14:02:07 -0500 Received: from mail-io0-f175.google.com ([209.85.223.175]:34362 "EHLO mail-io0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763436AbdAETAx (ORCPT ); Thu, 5 Jan 2017 14:00:53 -0500 MIME-Version: 1.0 In-Reply-To: <563d8e71-b119-f76d-3784-20f24e43f44d@linux.intel.com> References: <20170104221630.831-1-thgarnie@google.com> <20170105081114.GD2098@gmail.com> <4dffd167-9cfd-dfcc-6556-05d7ca8f4595@linux.intel.com> <563d8e71-b119-f76d-3784-20f24e43f44d@linux.intel.com> From: Thomas Garnier Date: Thu, 5 Jan 2017 11:00:20 -0800 Message-ID: Subject: Re: [RFC] x86/mm/KASLR: Remap GDTs at fixed location To: Arjan van de Ven 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 5, 2017 at 10:56 AM, Arjan van de Ven wrote: > 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 > That's correct. When UMIP is enabled, we should disable fixed location for both GDT and IDT. Glad to do that when UMIP support is added. -- Thomas