Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757630AbeAIXyD (ORCPT + 1 other); Tue, 9 Jan 2018 18:54:03 -0500 Received: from mail-pg0-f42.google.com ([74.125.83.42]:39341 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754777AbeAIXx5 (ORCPT ); Tue, 9 Jan 2018 18:53:57 -0500 X-Google-Smtp-Source: ACJfBotbWVo27CQ7UlHiw9vNqEUyIy5YWzGdqo4FlyO5SqFupJutxfaHIRRikx4Z4AfPIA6mIYJstA== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: [RFC PATCH v2 2/6] x86/arch_prctl: add ARCH_GET_NOPTI and ARCH_SET_NOPTI to enable/disable PTI From: Andy Lutomirski X-Mailer: iPhone Mail (15C153) In-Reply-To: <20180109220605.GE13282@1wt.eu> Date: Tue, 9 Jan 2018 15:53:54 -0800 Cc: Borislav Petkov , Andy Lutomirski , LKML , X86 ML , Brian Gerst , Dave Hansen , Ingo Molnar , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf , "H. Peter Anvin" , Kees Cook Content-Transfer-Encoding: 7bit Message-Id: <6072C006-4B57-4657-ABDA-AEE26847A1DA@amacapital.net> 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> <20180109213227.GA13282@1wt.eu> <20180109214602.k7cuxwikg6xshztu@pd.tnic> <20180109220605.GE13282@1wt.eu> To: Willy Tarreau Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: > On Jan 9, 2018, at 2:06 PM, Willy Tarreau wrote: > >> On Tue, Jan 09, 2018 at 10:46:02PM +0100, Borislav Petkov wrote: >>> On Tue, Jan 09, 2018 at 10:32:27PM +0100, Willy Tarreau wrote: >>> 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. >> >> That's a very strange argument: if you know you'd need max perf, you >> boot with pti=allow_optout. >> >> Color me confused. > > That's very simple : you first know you need more perf when you see the > name of your boss on your phone asking what's happening with the site > suddenly crawling at the worst possible moment, when everyone is there > to see it dead. Performance is something that's tuned at runtime, always, > not via random reboots. When you have 10 servers running at 100% CPU, > the last thing you're thinking about is to remove one of them so that > the 9 remaining ones are at 110% while you reboot :-/ Here's another idea: make it a module To enable it, you do modprobe pti_control allow_privileged_prctl=1.