From patchwork Mon Oct 24 11:29:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9187 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp458453wru; Mon, 24 Oct 2022 06:37:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ljj3XQsMOV4Kflkn52zyD2gqJwTjJTrbtkCOzOyUlP9wi7d/TRiiYFxVPe7R2cSGGwfdD X-Received: by 2002:a05:6402:11ce:b0:45c:a364:2c3d with SMTP id j14-20020a05640211ce00b0045ca3642c3dmr31308586edw.204.1666618657028; Mon, 24 Oct 2022 06:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618657; cv=none; d=google.com; s=arc-20160816; b=yTrWuWsyUm7VBBs0hoMX4UrPypCGJ8vKhs2nmRDnHgey+3g/LLDFzl1TIjAI6WMHRS IKkVdyFf+Nt4JzWeAn0L1ZpRRDzaE2ZDJIvwhHkMzYYNalWlZ6Hk5sgHQ+Pesyt9+Q8y T0DU8kIwJ5YDqVeM0XYIdi2HP2pxJT/s8Vv6zmigj71ox0YWpuyy/UkwHW38M0p1oyvV yd6YP2cWuNeFiFzG6IefgMFmJSAcYcc5xh/+CroVtcuGJRYj0vF43uwXjusxfSZqxJY3 fYJCS9veEjnssVhrzVAcxtJvukOrAdOcaMJxhBaK4DKPAkczgH00o28j05K2oC+xs9oL bgvA== 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=zWXlqrHenZT/PLrWU+oLzFaDDLF+3TixjUwjpz9utVxfVUeTr7/NhXpXMbh7DDK3Q8 jGeFD7zwr/YW3yTvaixtr31Cn6dB7iGNqE6ORxxCDqbkD85fplcnfrscBrxeRnfZ/5tb D2e95Fkqer3D2mYHQ0CppLd7EB7+wyBwYnmt3+TvfLDxgBebzf5sQuQoBJcm4+z47V6p De8bkVlE9L9M5yhDFkdbUqb53x8vIjVA2M0IJhdPevf96Pz78FOfaakXT0OSrk9gwOjQ vojh0StE6FeqvQfx1RH+HBwDrV9moiFi/MV4Z5Ci4HWxdpEhIrtYbkIwuHzUUfe3fR41 9UfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kRvgPMz0; 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 ga13-20020a1709070c0d00b0078d2197d670si27233930ejc.661.2022.10.24.06.37.04; Mon, 24 Oct 2022 06:37:37 -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=kRvgPMz0; 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 S232579AbiJXNQK (ORCPT + 99 others); Mon, 24 Oct 2022 09:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236017AbiJXNOa (ORCPT ); Mon, 24 Oct 2022 09:14:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEB62474C3; Mon, 24 Oct 2022 05:25:13 -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 ams.source.kernel.org (Postfix) with ESMTPS id 51BD3B811C4; Mon, 24 Oct 2022 12:06:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E3C4C433C1; Mon, 24 Oct 2022 12:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613164; bh=9YSJ36wjFxsTEnFDQT7Naqs+miqmLf7RXIRtV46M3DY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kRvgPMz0keH7QNk1KwCSXxFhQGYo4+fg1ZsDbXR8YPK6bZURBPwICCX52+zQgeZgv WmJeccYpNFI8wy2PaXf4XLU3OM2oKRsbnDDdkKkIqwNoDVienzFhHi9osXmKgPhyc7 OXZCjoHqVpC5SXe5GGFKPcAZY/3CU1cM5GK9cfdw= 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.4 033/255] powerpc/boot: Explicitly disable usage of SPE instructions Date: Mon, 24 Oct 2022 13:29:03 +0200 Message-Id: <20221024113003.549793289@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113002.471093005@linuxfoundation.org> References: <20221024113002.471093005@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?1747576325137658697?= X-GMAIL-MSGID: =?utf-8?q?1747576325137658697?= 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)