Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752951AbeAIVjY (ORCPT + 1 other); Tue, 9 Jan 2018 16:39:24 -0500 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:39213 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751842AbeAIVjT (ORCPT ); Tue, 9 Jan 2018 16:39:19 -0500 Date: Tue, 9 Jan 2018 22:32:27 +0100 From: Willy Tarreau To: Borislav Petkov Cc: Andy Lutomirski , LKML , X86 ML , Brian Gerst , Dave Hansen , Ingo Molnar , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf , "H. Peter Anvin" , Kees Cook Subject: Re: [RFC PATCH v2 2/6] x86/arch_prctl: add ARCH_GET_NOPTI and ARCH_SET_NOPTI to enable/disable PTI Message-ID: <20180109213227.GA13282@1wt.eu> References: <1515502580-12261-1-git-send-email-w@1wt.eu> <1515502580-12261-3-git-send-email-w@1wt.eu> <20180109141713.ngqrf6weyiy2q3in@pd.tnic> <20180109143653.GA12976@1wt.eu> <20180109145157.5ltqbz4o5sqkcggb@pd.tnic> <20180109145422.GD12976@1wt.eu> <20180109212940.ffvqb6wmehmxre4i@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180109212940.ffvqb6wmehmxre4i@pd.tnic> 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 Tue, Jan 09, 2018 at 10:29:40PM +0100, Borislav Petkov wrote: > On Tue, Jan 09, 2018 at 01:26:57PM -0800, Andy Lutomirski wrote: > > 2.Turning off PTI is, in general, a terrible idea. It totally breaks > > any semblance of a security model on a Meltdown-affected CPU. So I > > think we should require CAP_SYS_RAWIO *and* that the system is booted > > with pti=allow_optout or something like that. > > Uhh, I like that. > > Maybe also taint the kernel ... Requiring a reboot just to fix a performance problem you've discovered the hard way is not the most friendly way to help users I'm afraid. However, definitely +1 on tainting! Willy