From patchwork Sat Oct 22 07:19:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7238 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1090929wrr; Sat, 22 Oct 2022 00:49:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66XxDHLqxE5LIE1ydxRYjf1mHvXPUoOHAYCZKrfITE8Z7X4vAujEF6WoQi6JJC+v6BS8gq X-Received: by 2002:a62:4c6:0:b0:55f:c739:51e0 with SMTP id 189-20020a6204c6000000b0055fc73951e0mr22986140pfe.49.1666424940553; Sat, 22 Oct 2022 00:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666424940; cv=none; d=google.com; s=arc-20160816; b=owM9B0t7x9/M8v21ut029T4Xmg0+XepQ7EaHRfgQMHzbQG1OSLo5CSA2XtfdpVHhMH 4+YSaYevxz5pzOOVLgmQsFrI+7a82wsDAugg9/1Bj1R+HzzROe17lFANa0ZmTqaL1tSz QMtoqGOlTeee1EJpYqZXJxMkLGR4djgubqH/r8G3hCGQNHxk1IozynVfYfsz9TZzLyta ro6KT/Z52v8+PL+XdC2p+x5IM0N3rsKWAvUj0uAJ2o9KZrbvS4d2LTbQg+g6zb3fiTKY wAsaIJfrnJklZvkAiH5MIsphzJEDM22+pMNPk9XWz0JIh7OxMTMb20vUOBeDosRMIMTO jNXw== 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=svGbQ5nvGjXtnYwSos/ltjSZIK6OfgVTg2PsKZTYwhb+UMsanMiSSlDrdKvF4RQfdb E92ns+3pJRG1mfutnL8SY8lusjxa72/BFM77YOlZiFRg8vaYGwXZx59cyOqsG49cnMVZ fk4nMXrllchlPaSfKcBTjr9pQQ7u5OhuxyZVHbRpLk9ir4TOd20+VwQ93kWcN6+QNxQP 3JDpoxIhLPqAZqIfX620fIb63/dafDFxFBwBKdjnsCmjwQcBBrsY/8/Fjy0Q6xux4Zej wqJyXpgnDSwGNS0IOHVRCBIHR39j67yRewYqExsJoLM+TYXhVF8qOpWCtKdM7yHnd05B nS7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C3KvlSgu; 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 q12-20020a170902eb8c00b00186748fe8e8si4949614plg.188.2022.10.22.00.48.47; Sat, 22 Oct 2022 00:49:00 -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=C3KvlSgu; 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 S231421AbiJVHsQ (ORCPT + 99 others); Sat, 22 Oct 2022 03:48:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231582AbiJVHrr (ORCPT ); Sat, 22 Oct 2022 03:47:47 -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 7661048E9F; Sat, 22 Oct 2022 00:44:54 -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 1AF8D60B1B; Sat, 22 Oct 2022 07:38:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8FAFC433D6; Sat, 22 Oct 2022 07:38:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666424297; bh=tdIxaMXshIpDgKMPQUIn1JKQxwzuc+FAbzhb3VjbmOg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C3KvlSgueoNP/NOWS334O3KEveDhKXz0uf+29Zr/brkNg79WrBzJzUBnW719VP0c1 qrsGITHA5fWK7J38U54Y5o1rXE2+VuZSItUQG14Sy6HG5Gdaig6gMzcaM71g0ltka/ E8F3DW3aolSmniKM6NnwBe7sKoSzk2POTyUi3tR4= 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.19 092/717] powerpc/boot: Explicitly disable usage of SPE instructions Date: Sat, 22 Oct 2022 09:19:31 +0200 Message-Id: <20221022072431.642839091@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747373198176329547?= X-GMAIL-MSGID: =?utf-8?q?1747373198176329547?= 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)