Return-path: Received: from mta.outflux.net ([2001:19d0:2:6:c0de:0:736d:7471] helo=smtp.outflux.net) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fDGhe-00069l-JY for speck@linutronix.de; Mon, 30 Apr 2018 23:51:23 +0200 Received: from www.outflux.net (serenity.outflux.net [10.2.0.2]) by vinyl.outflux.net (8.15.2/8.15.2/Debian-3) with ESMTP id w3ULpFCF005567 for ; Mon, 30 Apr 2018 14:51:15 -0700 Date: Mon, 30 Apr 2018 14:51:15 -0700 From: Kees Cook Subject: [MODERATED] Re: [patch V8 13/15] SSB 13 Message-ID: <20180430215115.GG8398@outflux.net> References: <20180430150423.180110059@linutronix.de> <20180430151232.853543083@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180430151232.853543083@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Mon, Apr 30, 2018 at 05:04:36PM +0200, speck for Thomas Gleixner wrote: > Subject: [patch V8 13/15] prctl: Add speculation control prctls > From: Thomas Gleixner > > Add two new prctls to control aspects of speculation related vulnerabilites > and their mitigations to provide finer grained control over performance > impacting mitigations. > > PR_GET_SPECULATION_CTRL returns the state of the speculation misfeature > which is selected with arg2 of prctl(2). The return value uses bit 0-2 with > the following meaning: > > Bit Define Description > 0 PR_SPEC_PRCTL Mitigation can be controlled per task by > PR_SET_SPECULATION_CTRL > 1 PR_SPEC_ENABLE The speculation feature is enabled, mitigation is > disabled > 2 PR_SPEC_DISABLE The speculation feature is disabled, mitigation is > enabled Err, what does it mean to have both bits 1 and 2 set? -Kees -- Kees Cook @outflux.net