Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4859918imu; Sun, 25 Nov 2018 11:36:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wdvq2TBL9jJ5F/F5V2XpkqsYdWQSWceSIHV3rnLHJ8oWjpJWGltlSB7lsCZPvpPSaWUG9T X-Received: by 2002:a17:902:6688:: with SMTP id e8mr9975323plk.173.1543174603733; Sun, 25 Nov 2018 11:36:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543174603; cv=none; d=google.com; s=arc-20160816; b=z4profmNcpOLBHjk9kzJHSSBsSbV1zGfZT1+aqfr8yHxkRjyb3UGnNpJdGuKeTOr37 WJW23zqFFP6Z9nXEOk5vji0U4FbNhOr/PI2VOd4L8q/3MvxXJujnAdn3M9nThHr0qPwP dn5+vVUxxbu18qf4LyQZgpp9Z9u3YkFL0G6pPQqMV5ICRLruGLzMbbRgG5XJA8FPo/q4 nEma5XOfEFG97Sbw9IKiaXTt4MEDpL2tcXxJKnLvdGVv1OulU1jNgWHaUF2ri4hd9Eau ysvzrsjkaVQGjjOy9fKcYmQSGovWQqw1IDz8/1ufasjtj61BrSCy2csUmV7exi3wDUPQ sPGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Y2dX7+DhhKUJKK7NUbF5UpFejnzCwSyU7lyRUT0Qu4w=; b=G/4Jm5zPwBUufkUBI4MAZbfjGSHgu+EtfX2pTUh3Y++kIS5xYPgR5CO11ePRD7//yO 8/rivjleK721v3esQxnr2PDjRE2CchnVwM5UE7Nlqe7m9sjDEo//n2ujP2TcKuy4QvoL IjOX/XZDlJcDeAKUOYfnI+zJ+PMjSfsz1sRo914e5THnLZW5+3zJalMcLhSblAsHV/Uy xAhq4FMU3l/S7XoLcGSwOitfkhULFAy6IuZSj5jvo/bMzLnFNip7VdGMgbxBKf5Y2Lt3 yYCVqZWU5tX8nzGwTSk5xjyutMmRbmOvU2OLVVIkIcZZI3yRWfB6ODxqa3q85hqYqqmG 69Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=kpk+Yw0K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 76si1048519pfw.66.2018.11.25.11.36.27; Sun, 25 Nov 2018 11:36:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=kpk+Yw0K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726541AbeKZG1i (ORCPT + 99 others); Mon, 26 Nov 2018 01:27:38 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:36652 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbeKZG1i (ORCPT ); Mon, 26 Nov 2018 01:27:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Y2dX7+DhhKUJKK7NUbF5UpFejnzCwSyU7lyRUT0Qu4w=; b=kpk+Yw0KZYvUCBAOkMNRaOw8C houC1B/vCer87cvvWMVa8NViNJ0LO4VBnmg+01Xf0avrcMx8ykKocKuQVSvrF42o25glz9MiL5Zt3 z0wqoC5/cYv5549bMLbNgyx0u7Yc+0cpsqckZd3taMRj4XY2Q83t1xYPL5vJ4IoaiN5VmAgSx7CkZ xepGezfV4YQR7583nFGVAqF8M8YdoNYLKXKBlR01UU0uVsWDYjsOKoIQKfPoXUlusAodE1okB9ayr Cyql1HA+P6vCfcr82BOjskxAyO0p+IWEiqjeGZwyIX01X4Lp19ElqVhpl8np72zDuifHayLABHpZQ 4U8Ju98GA==; Received: from [66.118.103.209] (helo=dragon.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gR0Bv-0000OW-IJ; Sun, 25 Nov 2018 19:35:39 +0000 Subject: Re: [patch V2 27/28] x86/speculation: Add seccomp Spectre v2 user space protection mode To: Thomas Gleixner , LKML Cc: x86@kernel.org, Peter Zijlstra , Andy Lutomirski , Linus Torvalds , Jiri Kosina , Tom Lendacky , Josh Poimboeuf , Andrea Arcangeli , David Woodhouse , Tim Chen , Andi Kleen , Dave Hansen , Casey Schaufler , Asit Mallick , Arjan van de Ven , Jon Masters , Waiman Long , Greg KH , Dave Stewart , Kees Cook References: <20181125183328.318175777@linutronix.de> <20181125185006.051663132@linutronix.de> From: Randy Dunlap Message-ID: <6b6f1cdc-6751-a286-3c52-740efc90192f@infradead.org> Date: Sun, 25 Nov 2018 11:35:35 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181125185006.051663132@linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Can you alter this without publishing a v3? (see below) On 11/25/18 10:33 AM, Thomas Gleixner wrote: > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -4241,9 +4241,16 @@ > per thread. The mitigation control state > is inherited on fork. > > + seccomp > + - Same as "prctl" above, but all seccomp > + threads will enable the mitigation unless > + they explicitly opt out. > + > auto - Kernel selects the mitigation depending on > the available CPU features and vulnerability. > - Default is prctl. > + > + Default mitigation: > + If CONFIG_SECCOMP=y "seccomp", otherwise "prctl" If CONFIG_SECCOMP=y then "seccomp", otherwise "prctl". > > Not specifying this option is equivalent to > spectre_v2_user=auto. g'day. -- ~Randy