Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965681AbeAKTTl (ORCPT + 1 other); Thu, 11 Jan 2018 14:19:41 -0500 Received: from pb-sasl2.pobox.com ([64.147.108.67]:50316 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965490AbeAKTTj (ORCPT ); Thu, 11 Jan 2018 14:19:39 -0500 X-Google-Smtp-Source: ACJfBovX6XJJhG1E9XTMGBpMn8ibU1SsI/6d9fNvyvb/s884GJcQcYZIfcFeZNmLXoy2kAZpCkDOIl+KyUrnCYYbsEc= MIME-Version: 1.0 In-Reply-To: <6144aefc-767f-ff36-b424-f63f4bd4c579@linux.intel.com> References: <20180111064259.GC14920@1wt.eu> <0f08d89e-61e1-20e3-5c59-0b2f7b32bf0c@linux.intel.com> <20180111154412.GA15296@1wt.eu> <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> From: Olivier Galibert Date: Thu, 11 Jan 2018 20:19:35 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v2 6/6] x86/entry/pti: don't switch PGD on when pti_disable is set To: Dave Hansen Cc: Borislav Petkov , Linus Torvalds , Josh Poimboeuf , 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 Content-Type: text/plain; charset="UTF-8" X-Pobox-Relay-ID: 5DC11DAC-F704-11E7-BBA2-EA54894C8D7C-92059326!pb-sasl2.pobox.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Wouldn't the time taken by an easy syscall like getuid be a clear indicator? OG. On Thu, Jan 11, 2018 at 8:17 PM, Dave Hansen wrote: > On 01/11/2018 11:07 AM, Borislav Petkov wrote: >> On Thu, Jan 11, 2018 at 10:57:51AM -0800, Dave Hansen wrote: >>> I'd love to have a tool that tells you for sure "KPTI enabled or not", >>> but I'd also love to have it be something I can easily distribute >>> without it being handled like a WMD. >> You mean this: >> >> https://git.kernel.org/tip/87590ce6e373d1a5401f6539f0c59ef92dd924a9 > > I meant that works across all the kpti implementations. Those with gunk > in /sys, /proc/cpuinfo, or with nothing at all like the original KAISER > patches I posted. > > And, yes, I want a pony. I just though someone had such a pony handy > and it was trivial.