Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965690AbeAKT0N (ORCPT + 1 other); Thu, 11 Jan 2018 14:26:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53684 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965551AbeAKT0M (ORCPT ); Thu, 11 Jan 2018 14:26:12 -0500 Date: Thu, 11 Jan 2018 13:26:01 -0600 From: Josh Poimboeuf To: Olivier Galibert Cc: Dave Hansen , Borislav Petkov , Linus Torvalds , Alexei Starovoitov , Andy Lutomirski , Willy Tarreau , Peter Zijlstra , LKML , X86 ML , Brian Gerst , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Greg Kroah-Hartman , Kees Cook Subject: Re: [RFC PATCH v2 6/6] x86/entry/pti: don't switch PGD on when pti_disable is set Message-ID: <20180111192601.cck3eq26vorybudk@treble> References: <20180111182147.masunghp5km6igjq@ast-mbp.dhcp.thefacebook.com> <20180111183207.dah7imbuvuhvrrk6@treble> <4e32af93-f632-ae17-eed4-c7023c1b9cc5@linux.intel.com> <20180111190700.y4hultq3awxuw6fj@pd.tnic> <6144aefc-767f-ff36-b424-f63f4bd4c579@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 11 Jan 2018 19:26:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, Jan 11, 2018 at 08:19:35PM +0100, Olivier Galibert wrote: > Wouldn't the time taken by an easy syscall like getuid be a clear indicator? I think only if you had a baseline measurement to compare against. -- Josh