Received: by 10.213.65.68 with SMTP id h4csp519024imn; Tue, 13 Mar 2018 11:36:41 -0700 (PDT) X-Google-Smtp-Source: AG47ELvLHkRWXA3gCioDjjQ6JffuHtwvzQK/pmub6Cd6mBoGxZF93UClbn8ROhnNeHNpWbsE+id2 X-Received: by 2002:a17:902:aa43:: with SMTP id c3-v6mr1404521plr.357.1520966201373; Tue, 13 Mar 2018 11:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520966201; cv=none; d=google.com; s=arc-20160816; b=OJ2xzpDPzK7uAP/cc3OMvCtMe/ulRWNqN3R5DuVHdgnWJx0FrNlnqvsRjrgTDx+hdt ZlNC9JeOi89GtMZTV8PZCIenbEO4Q6NTYPQcM7YQzCYp32QRzbYP3Ufb5eiYKLlPUllt uHCd4iH2ZxouXzcjQ73RrfBUMM4ULIgMfyqX3HXhZMXyaFUSam7nQGVwLgWvSA0y4xDu Br4ACsjA6iFUBfPQxbQ4uj5+NFG7qfRIix+CjTrFJlf4Au5txzBhIQ/Z2qt6s9pcRYXA 9nD6P7lyZ8QU6iwm55FDkb56tcoONO98+JPXIBFvvGjUKKVhLNdEXEizI97VIx4f+JO3 3/BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=P3r7K1oneOgRUQO5dPxWxOWV/S+Mk6wT9HTRx0CiJdo=; b=fb5a+d1v/R6cAcZgMP67wyK9eFs+6bN8uMCBnU67OKT28cBeuR+bM06Nm0p3BBRiTY n79IuZHKZFPOJYX6fxisSs2ToJ8CN1mPExyvLXGXxnx8IiebeR3H7a1NGtgm/MYQu1VM qIi+Amceh79ZAdrOTgtMtbu5//+1NFWqNyW5NbWts+VSjqMgPBHJMWFM4IsZQ8ZTUKZL VwhtfrP5ltkzBA76BbTyA7JDYO4pTOp20oFbnl+Qv4t4CFuBWhrbZICd3yfk1B7JIVrM ngqmfX8dDtpkfTveYcrquGJXK9s+LrILeDg7oBeFHb+DQMUe3CM17jtGON7QNXCwGqII GIGA== ARC-Authentication-Results: i=1; mx.google.com; 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 f12si456246pgo.625.2018.03.13.11.36.26; Tue, 13 Mar 2018 11:36:41 -0700 (PDT) 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; 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 S932456AbeCMSd5 (ORCPT + 99 others); Tue, 13 Mar 2018 14:33:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:53527 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752196AbeCMSd4 (ORCPT ); Tue, 13 Mar 2018 14:33:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 39DB7AF5D; Tue, 13 Mar 2018 18:33:55 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Peter Zijlstra , Michal Suchanek , Kate Stewart , Greg Kroah-Hartman , Philippe Ombredanne , Nicholas Piggin , "Tobin C. Harding" , Mahesh Salgaonkar , David Gibson , Al Viro , Michael Neuling , "Oliver O'Halloran" , "Naveen N. Rao" , Madhavan Srinivasan , Masami Hiramatsu , Andrew Morton , Balbir Singh , Sergey Senozhatsky , Christophe Leroy , Andrew Donnellan , Daniel Axtens , Russell Currey , Joe Perches , "Bryant G. Ly" , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , linux-kernel@vger.kernel.org Subject: [PATCH RFC 8/8] powerpc/64: barrier_nospec: Add commandline trigger Date: Tue, 13 Mar 2018 19:33:06 +0100 Message-Id: <8639fc8cb02548d478b041c3a00ad9053fdd8bc4.1520965380.git.msuchanek@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Copypasta from rfi implementation Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/setup_64.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 4b67b7b877d9..257f0e6be107 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c @@ -840,6 +840,14 @@ static int __init handle_no_pti(char *p) } early_param("nopti", handle_no_pti); +static int __init handle_no_nospec(char *p) +{ + pr_info("barrier_nospec: disabled on command line."); + no_nospec = true; + return 0; +} +early_param("no_nospec", handle_no_nospec); + static void do_nothing(void *unused) { /* -- 2.13.6