Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965508AbeAKTMW (ORCPT + 1 other); Thu, 11 Jan 2018 14:12:22 -0500 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:39639 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964978AbeAKTMV (ORCPT ); Thu, 11 Jan 2018 14:12:21 -0500 Date: Thu, 11 Jan 2018 20:11:30 +0100 From: Willy Tarreau To: Dave Hansen Cc: Josh Poimboeuf , Alexei Starovoitov , Andy Lutomirski , Linus Torvalds , Peter Zijlstra , LKML , X86 ML , Borislav Petkov , 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: <20180111191130.GH15344@1wt.eu> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) 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 10:38:07AM -0800, Dave Hansen wrote: > On 01/11/2018 10:32 AM, Josh Poimboeuf wrote: > >> hmm. Exposing cr3 to user space will make it trivial for user process > >> to know whether kpti is active. Not sure how exploitable such > >> information leak. > > It's already trivial to detect PTI from user space. > > Do tell. Probably because meltdown doesn't work anymore ? :-) Willy