From patchwork Wed Oct 19 08:23:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 4657 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp212602wrs; Wed, 19 Oct 2022 02:07:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6KcMCmQJD9o9HRrq5fcRPMMORsRDSoa35NG9G05x+PyJRAtZ6kLwhB5xBwxtHqmNbbSUIw X-Received: by 2002:a05:6402:90c:b0:457:b5ce:5f18 with SMTP id g12-20020a056402090c00b00457b5ce5f18mr6539870edz.309.1666170473107; Wed, 19 Oct 2022 02:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666170473; cv=none; d=google.com; s=arc-20160816; b=TFIeJ7HoJDjteIafytktuJT5N9jhD9DYKSUUPnkaNwwkyZmz8y0im6qIysA+cqLRGT kd7CyJn5cyA+IA98WgpBc5Y6gsefTkkgp/57Ev/eUyXefXLGnYQiz2pG3p2lTGMDGQUN uxIs7z4QcckfD5X/C9DMwGeN9vlarjYzJaICBplgmj+n2Wx1saRruev7nbMzjJGXjHzp w1MpkgG3q2Bi33jUwNl7uVC4/A5v0kD3gk3CZrH72zTJb8rLtuE7z/18H49Inhyk9QTB HeNvECNrGODQtGceyNnA0YIOW+yQVL0m0jseN7n2lLn6AOK39XrmOF+RAboNnWkquMpJ V4Aw== 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=4GLxZbz3PZ4hR5ukritfiOK4AXC4/UWZG8QprTeCQz8=; b=VDw7vMSRCB/KGCSZQis4JpyUp+RgpP40Okn1rhcYlgvkPdUNPM7Ysx/3CLHU+RmG9/ DgB6iKKq59qYoRQnbfEunkNuZx92Asab1ZPT/NiIe/st/TWB+zx0AkwAGf1OtibflVgz ZrDkAJoiIqRv7mEwUO55rALLAa9A8pQ/CTAekM8MNI3kF0mXAZkfPrMLh06RMOT7L00g CkdIRtxP9IYQAG7HtbEvSOT7C/WumvbWTYzCIc1ghqCWmkQ+8wiczZEp8PZVSIphDQtN Zc9MUBvJUynqMygQji7gYSS4mIcpPDVGqAmA0wxcNm6HaEItarEfjAw1g78ljKxjuAsE HZ3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YUbnmWUY; 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 b12-20020a056402278c00b0045b68639617si14429429ede.608.2022.10.19.02.07.22; Wed, 19 Oct 2022 02:07:53 -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=YUbnmWUY; 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 S232011AbiJSJAR (ORCPT + 99 others); Wed, 19 Oct 2022 05:00:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231959AbiJSI6c (ORCPT ); Wed, 19 Oct 2022 04:58:32 -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 C8D049DFA7; Wed, 19 Oct 2022 01:53:19 -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 2599D61811; Wed, 19 Oct 2022 08:42:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27485C433D7; Wed, 19 Oct 2022 08:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666168938; bh=tdIxaMXshIpDgKMPQUIn1JKQxwzuc+FAbzhb3VjbmOg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YUbnmWUYMZVkBdaAoYaMZQZZ5db8CTSd+G9Hzk9v8d0Tdxt49j2/rzibeN6BlhjsD iO9zd6EzDW63eGz2wGzTSvATVWhS254uwQ2kDNaSck/FHtUJRKh8ewgO60cTmxZ16m AlAbGp5wbk4BMULCwIsfIQfUIp9ldHOOzLq7gyxQ= 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 6.0 103/862] powerpc/boot: Explicitly disable usage of SPE instructions Date: Wed, 19 Oct 2022 10:23:10 +0200 Message-Id: <20221019083254.465544185@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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?1747106370287113990?= X-GMAIL-MSGID: =?utf-8?q?1747106370287113990?= 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 @@ -34,6 +34,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)