From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from userp2120.oracle.com ([156.151.31.85]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fCyic-00074F-GQ for speck@linutronix.de; Mon, 30 Apr 2018 04:39:11 +0200 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3U2WAUd002960 for ; Mon, 30 Apr 2018 02:39:04 GMT Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2hmhmfabc8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 30 Apr 2018 02:39:03 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w3U2d3Xc010020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 30 Apr 2018 02:39:03 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3U2d318006264 for ; Mon, 30 Apr 2018 02:39:03 GMT Date: Sun, 29 Apr 2018 22:39:02 -0400 From: Konrad Rzeszutek Wilk Subject: [MODERATED] Re: [patch V7 13/15] SBB 13 Message-ID: <20180430023902.GA32734@char.us.oracle.com> References: <20180429193045.711908246@linutronix.de> <20180429193938.557096663@linutronix.de> <20180430014856.GB29389@char.us.oracle.com> MIME-Version: 1.0 In-Reply-To: <20180430014856.GB29389@char.us.oracle.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Sun, Apr 29, 2018 at 09:48:56PM -0400, speck for Konrad Rzeszutek Wilk wrote: > On Sun, Apr 29, 2018 at 09:30:58PM +0200, speck for Thomas Gleixner wrote: > > Subject: [patch V7 13/15] prctl: Add speculation control prctls > > From: Thomas Gleixner > > > > Add two new prctls to control aspects of speculation related vulnerabilites > > and their 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: > > > > PR_SPEC_PRCTL: PRCTL per task control of the mitigation is enabled > > This reads to me as "mitigation is engaged right now". > > But in reality it means: "Hey, you can fiddle with the PR_SET_SPECULATION_CTRL if you > would like" > > Perhaps change this to say: > "PRCTL per task control of the mitigation can be controlled by PR_SET_SPECULATION_CTRL" > > but that is not true either (see the next patch, perhaps that is a bug?) ..it was a bug in my testing program. So that statement in quotes above is correct.