From patchwork Mon Oct 24 11:27:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9031 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp441801wru; Mon, 24 Oct 2022 06:06:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7vFvugIkzlFnTJHXukOnA5Kngfd969A8LzGxa7e847wqrX/9UQvtFivd6GmY5kLv19TuR5 X-Received: by 2002:a63:ea4a:0:b0:439:4695:c0f8 with SMTP id l10-20020a63ea4a000000b004394695c0f8mr27762125pgk.440.1666616785767; Mon, 24 Oct 2022 06:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666616785; cv=none; d=google.com; s=arc-20160816; b=SsFgMVb4885WVI0Bh9nff7pSTSLgkhF+Jof3C9RR1Xc2xiYIX0cFJQmeAWtvjWaPOH pBnF0B7jU2UeUOKdAzojCB3A4RLbs5y3yakuvaRzbEtrQEKo4zOHw5hEhZrOetxV3ZCN 7bGeXPjsae1QMUpoxPCJCYG7o4jH1kV/N4V0eUZUaQpdZA/t5gANTndTXENLu2yHPGaa sv7wtyAZDfsvfXA2lISqG/o4Xsq2okgLs1Gm0urOuFY8rQsNKjHKM3DC5NfT8l/jeMvj 3dgJ0OEvcjdT3ojwKTwirIokzLfcxDIccYvHWwG3tdNU9Lnn1uInNlla4j9LBiVySO2S J7HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cpZPBBKh7ogf0ehMjOS82luusCHlf9RCv/16mSeJx5U=; b=xr/znSwFcgk+vbJqWA5tm/XFViNwmLz1Znzt2RT/PXwAIjQU4OqkfHB9rAyRs7aIC6 9TUzT9+3Ea1YsJO3J5jo5TrmRV1xFrXiUz6uSjvyF7aM61KTAd54KeKNQaq8jnJPzJyN XQtjI/CmrX4okRfkCLyp6c2Kf4GgIXAp17VzcoMWdLj7cSNv4OxeFjTdjYgNDGmi8Enp 31PshLAWaav5YK62/wCIiFrwyxiXh+QxYprx/kV4w8r4SpxvR5LIArkc/jN/keck5X9e bcc2FvymVc+mo3xMM4Hjk5Nap+BgnMeqJiAgVnU67elWQxjNYv3MUnv5cbXUtmta2K37 T7OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sPgmWXWz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jf17-20020a170903269100b00174c5fdc8d2si2201949plb.307.2022.10.24.06.06.03; Mon, 24 Oct 2022 06:06:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sPgmWXWz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235350AbiJXNEf (ORCPT + 99 others); Mon, 24 Oct 2022 09:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234956AbiJXNAq (ORCPT ); Mon, 24 Oct 2022 09:00:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31EBF1D67E; Mon, 24 Oct 2022 05:19:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 49CD6612CD; Mon, 24 Oct 2022 12:17:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ADC7C433D6; Mon, 24 Oct 2022 12:17:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613876; bh=9YSJ36wjFxsTEnFDQT7Naqs+miqmLf7RXIRtV46M3DY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sPgmWXWzm2yDu50biT2E7yZdLRDIgwoTL2ipUS9LZvt59uKcm8hWq/NTFbg8Eg9GW JERCc2hIw2UydorsWH7qHuHv1L1GJu3G3jNkbBalzzjzesFDq91KdOW3oSfE29H1Gs Z4AzNFkrruJ910pjPHKkocXv3QnRXW/A2uhRw4Rc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?utf-8?q?Pali_Roh=C3=A1r?= , Michael Ellerman Subject: [PATCH 5.10 046/390] powerpc/boot: Explicitly disable usage of SPE instructions Date: Mon, 24 Oct 2022 13:27:23 +0200 Message-Id: <20221024113024.590390052@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747574362439249749?= X-GMAIL-MSGID: =?utf-8?q?1747574362439249749?= From: Pali Rohár commit 110a58b9f91c66f743c01a2c217243d94c899c23 upstream. uImage boot wrapper should not use SPE instructions, like kernel itself. Boot wrapper has already disabled Altivec and VSX instructions but not SPE. Options -mno-spe and -mspe=no already set when compilation of kernel, but not when compiling uImage wrapper yet. Fix it. Cc: stable@vger.kernel.org Signed-off-by: Pali Rohár Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220827134454.17365-1-pali@kernel.org Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/boot/Makefile | 1 + 1 file changed, 1 insertion(+) --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -30,6 +30,7 @@ endif BOOTCFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -O2 -msoft-float -mno-altivec -mno-vsx \ + $(call cc-option,-mno-spe) $(call cc-option,-mspe=no) \ -pipe -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \ $(LINUXINCLUDE)