Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2446503yba; Mon, 15 Apr 2019 11:48:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSyu4Fk86o0i6oVaFQfwwRzMK5B3O7GWWW3vz0luhHGSGRoCo3Kzn8+QOILX4nIc1HHNAn X-Received: by 2002:a63:2b4c:: with SMTP id r73mr73079968pgr.181.1555354135598; Mon, 15 Apr 2019 11:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555354135; cv=none; d=google.com; s=arc-20160816; b=SL8AB/uUptY8IO8mN3d8rvLWnIBLRoorgcOci3wLuiYPk6Ldf51aO7ZXYnJQCDR5u+ cAfLV+MTPswjmk+P4gQ7yRRx1IIJ0TmPgL7R4lexiyOGooWBFXd4Fv8+pj+vGoEZjqa5 YqZQiy5kp/q4KwAlAoKDiyP/lY/c4oC6o9vwYGSRSF3ThrX5B89PbysL173m29et8yKB 5AM39VsqeiLtF4qmCF13ajPFRI12dod8EwhwDT6CebQVnGf21oSAZ9SQ4dsE3pLcGlzM ESRSCMGMAoXcBl4n6FC41epIHdyFRzOeeWBtX4n7GHvQU/eg6FdndgFtlgn3yXlOanl4 HcWg== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UeJqlnP9jG+4oxiqr4Bw9pbAKScqMzH0qJWwjT1kmGI=; b=KKzCI7NlwkiyhR1bJ/oD48pFUsWAuEiXQQVgVnQk/YqWCbFmZ9NG7XESwfDsl9SJDY fo5walgKCIbjmbjLtE1wcMLb10D0UA1LV9MFnQ3uM2/fUI8TnyxOgmX5aqKMq27GB1Er wxkoNBObENj1ZGsI5M47PX6Z0AY0y4A29hEzETx6FKvVrVd8cMZMTOGQHMAnGIg6vOB/ ufyNmG0Fcqwlh4eyGX1eCeCIeTIYhbY5Qq1Cr1tAsHgG/9OJvFtv1T403LUlWawOPXCY 31ed7AHB42rsYgPbBTYUNq0w5EoPMSKdmtqBNUn1W+AMso+mXNwxR+l28qKXUW5Z+Q2D lxuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X7cu3VAz; 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 140si44519526pga.460.2019.04.15.11.48.39; Mon, 15 Apr 2019 11:48:55 -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; dkim=pass header.i=@kernel.org header.s=default header.b=X7cu3VAz; 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 S1728572AbfDOSqU (ORCPT + 99 others); Mon, 15 Apr 2019 14:46:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:49006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728532AbfDOSqR (ORCPT ); Mon, 15 Apr 2019 14:46:17 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6B8922087C; Mon, 15 Apr 2019 18:46:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555353976; bh=GqacdbbgpNQ4mS1hYtHfnHKJiMJqbmFVFFLz56Fi1mM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X7cu3VAzuDvGyFjqrVek3MB58a4/+Sz8vazseSSge/RHPY0nDacqt1que6yew/L2W 5xb3fKZqfWyVjOkWHzAK441OsLs3kyON8yUVrPG9/cXXP3a88pAvE5fS5ZSElEn2OQ w8DmMXgIJllBxBnUW39pr9Dr0ODUI4s8xL0MtnJM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Diana Craciun , Michael Ellerman , Sasha Levin Subject: [PATCH 4.9 40/76] powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used Date: Mon, 15 Apr 2019 20:44:04 +0200 Message-Id: <20190415183717.917308685@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183707.712011689@linuxfoundation.org> References: <20190415183707.712011689@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit 3bc8ea8603ae4c1e09aca8de229ad38b8091fcb3 upstream. If the user choses not to use the mitigations, replace the code sequence with nops. Signed-off-by: Diana Craciun Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/kernel/setup-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index d5a128f54537..5e7d70c5d065 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -919,6 +919,7 @@ void __init setup_arch(char **cmdline_p) ppc_md.setup_arch(); setup_barrier_nospec(); + setup_spectre_v2(); paging_init(); -- 2.19.1