Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965824AbeAJQJi (ORCPT + 1 other); Wed, 10 Jan 2018 11:09:38 -0500 Received: from mail.skyhub.de ([5.9.137.197]:40074 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756469AbeAJQJf (ORCPT ); Wed, 10 Jan 2018 11:09:35 -0500 Date: Wed, 10 Jan 2018 17:09:22 +0100 From: Borislav Petkov To: Willy Tarreau 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: <20180110160922.c26iaeley5nh3xk6@pd.tnic> References: <20180109145422.GD12976@1wt.eu> <20180109212940.ffvqb6wmehmxre4i@pd.tnic> <20180109213227.GA13282@1wt.eu> <20180109214602.k7cuxwikg6xshztu@pd.tnic> <20180109220605.GE13282@1wt.eu> <20180109222036.6h7jjyaayusn4yb5@pd.tnic> <20180109224009.GA13326@1wt.eu> <20180110144239.cm5t7j6s7akkpked@pd.tnic> <20180110153946.GB14178@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180110153946.GB14178@1wt.eu> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, Jan 10, 2018 at 04:39:46PM +0100, Willy Tarreau wrote: > For production, disabling PTI system-wide when I'm supposed to know what > performance critical processes should be exempted doesn't appeal me very > much, especially if it can happen by accident. So in the end I think that > "pti=off" on the cmdline should be the only way to disable it system-wide > as it doesn't represent a reasonable production case. Disabling it per > process should be allowed via a sysctl, which would also be locked disabled > for safety purposes. It still might make sense to be able to disable it system-wide without having to reboot. Imagine a bunch of processes showing performance regressions and you want to disable PTI completely to rule it out causing that regression. Then you toggle the master switch. With the appropriate loud warnings, of course. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.