From patchwork Mon Oct 24 11:26:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 10116 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp632979wru; Mon, 24 Oct 2022 13:13:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5mEN6KjP31gSlT6uOgcZj7VDvaeiJTy2nqXbbzdGESKqF0P9/0kF36QMzTpHax3tOgzn01 X-Received: by 2002:a17:907:3f27:b0:78d:ad42:f733 with SMTP id hq39-20020a1709073f2700b0078dad42f733mr29906337ejc.320.1666642381308; Mon, 24 Oct 2022 13:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666642381; cv=none; d=google.com; s=arc-20160816; b=vJrwdczwZyj29ro2MBg3mYVWeT8uvbFb6NYUWhigTFWwMbvtWUDKnxt8c7hLT3QEgO fFrCxCd2xKGWxKA+msfPsH6r/tcjpi07D+yGSao/Wpwcu6w0YVcS44C9kpnhKBQ8bss6 amdyY5hhXhZen5g1l49Kp7SeveCpMHR9XQD0hBbN3NTJ64TxS0axhKiuTG8wJ0qOXkRd iOFCtvZTIFszYInKJ6OwszqBt+2JSHHMe0h2C4i22SloS8hS8eXq62Gb8+h12AyDNpQZ pd3/t4NfwzbperJccc1pQGIq99QLw64OJgSTl1SVSESEzS6sRBa2xpdemJuoghly+j7V ojCA== 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=VaGarA/5wiDgikH+/MreEaXzPeuN5CShMe7OAPNA7l6dd6EuY1TgKDNCYB31WcADst B7Vg2oixiJAPL0FLJo4LBRna9MuUi6v2G5UzCvUfoNVjh1GHZP+2vs7yUqzxH9191FUN 73DHlkUJa2tPF7RFTctj/p08wwJxCxw8JbMUHoRQnAe5OZ1ceEjIqX2j01QnVaVCJVGy y3SSLYcaxaSkT3deAtJ9Bil5L0e441r6SIfvbouOQ8CZ4yBVA4XBu6rOAwCnE3TI2AF4 qFJb0xwNh0nHdrv5WWRlZWelHcboyhSidGurmIt9357uQXp1k88RnpNtbxDg0XMjnr5K 3YVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OVrI5GV0; 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 f10-20020a0564021e8a00b004612505ece4si823884edf.483.2022.10.24.13.12.37; Mon, 24 Oct 2022 13:13:01 -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=OVrI5GV0; 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 S232088AbiJXUAi (ORCPT + 99 others); Mon, 24 Oct 2022 16:00:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234216AbiJXT72 (ORCPT ); Mon, 24 Oct 2022 15:59:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BFF73DBE3; Mon, 24 Oct 2022 11:22:04 -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 8D1CEB818D6; Mon, 24 Oct 2022 12:37:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2BFCC433D6; Mon, 24 Oct 2022 12:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666615036; bh=tdIxaMXshIpDgKMPQUIn1JKQxwzuc+FAbzhb3VjbmOg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OVrI5GV0aGIJNEUwDpu2oJNgjJMwylIdjpEkgKyVB/EPDfOrIy7dfacPZDThlyrJI 5cr80jklFV8CKpSqAcTHk3hfOmxJh/tFNL2spSNmSi004KF/89emxu0iwvRomscBy+ umlbr0GCVnb7YibLznIvPaEpTy1UCKwT5MS+t9UQ= 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.15 068/530] powerpc/boot: Explicitly disable usage of SPE instructions Date: Mon, 24 Oct 2022 13:26:52 +0200 Message-Id: <20221024113048.105505528@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113044.976326639@linuxfoundation.org> References: <20221024113044.976326639@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?1747601201257802640?= X-GMAIL-MSGID: =?utf-8?q?1747601201257802640?= 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)