Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3697561pxv; Mon, 26 Jul 2021 09:38:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8gljABMso/1k9WBJW1sGVMQgcd8yZETQDOS49igw7NzRPcVVvTy3O1R7ZFArT1GV5PSWy X-Received: by 2002:a50:fb95:: with SMTP id e21mr22641266edq.65.1627317507187; Mon, 26 Jul 2021 09:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627317507; cv=none; d=google.com; s=arc-20160816; b=RaHtLcbnVWj2Hfeiv+WK7dt3NIoKawsesqSlIZe1kUdV8Elojq1UpUz53aNZkZRpzG W0IlUFzYmOd6z4Qr8+G8BVGD0hXMy3ZaZ00aELYHzRbWJD0fHT005qTXrjZ8hpCngSkQ xaXV0EVAT536hO2hN7DaxCeumtdp5qIKmJRP0Erd10nvCuohgE/dPr8p7AdT8ZESQosW QSvGWZ4VgsujY+Gn/xfri2u1NOiFVtDhdtOQaqS83CgNwg0gn7xZJLG7AqfsIUPzZvzY 3vP3qr9ntO25i8fabFP98XwJccdEkHJUfoqZpAi4c8CojUH2FDGFtb2mnOAI9pGoYqMZ e41w== 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=WOqbxbS/n7SIwfDux/sJ4J9514W6/VnsYWKd+Dwl0d4=; b=rG45XW+yh85SGB+WKSeHRc3R73wVk2qR3KQ3oTpWxFrvn3O/WuC7a37EfouRbkjYG3 LTzx4yhsvdRiOIV2i6iFq8vUErhoYA4BraygSudwXs6175OdruL3U4YnkRgb5sT/y3rc 6RIJNYSPk3QRWfWIbaV0DmUb2pcxm7cMyeDFdXKSL35P2g70uRg8IW1Vt1aZBqkrdwKe GmGBc/U5mLezWZxEW41Gba87RY7WDoRxPtoZRunri/Pn4CF+ZJU35K/wAK0z3Es1ghN0 nyuZ+mm2t6BiQ1D5xNgXH+4pJFxZrzF5RRK4eHnzWKVVGSpW3GuM/VFbyI4gXK8U5ZGS QIMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N7dx5awO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qq24si360281ejb.538.2021.07.26.09.38.04; Mon, 26 Jul 2021 09:38:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N7dx5awO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S240015AbhGZPys (ORCPT + 99 others); Mon, 26 Jul 2021 11:54:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:51248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235305AbhGZPeI (ORCPT ); Mon, 26 Jul 2021 11:34:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 62CB560240; Mon, 26 Jul 2021 16:14:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627316064; bh=UUSnv+YBR56PLXtQOE914sFblrvfbpijYigJ4zwetgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N7dx5awOttAM/OOcbx/R1Xocz/8knRN2WJ5nlMIg1wgb9+N3PRpoEZAivApyVTADc rXIOmwllco2w0VfxL5Rh5N/b9UN2jXAjT2ScdZ1PVByGKyx6u2Ww7pN7sRCNLDbDfF U81LlkIULlPPKFKaSnom9hGrFcPWnWYwjmY1+MWY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Egorenkov , Heiko Carstens Subject: [PATCH 5.13 147/223] s390/boot: fix use of expolines in the DMA code Date: Mon, 26 Jul 2021 17:38:59 +0200 Message-Id: <20210726153851.040587636@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153846.245305071@linuxfoundation.org> References: <20210726153846.245305071@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Egorenkov commit 463f36c76fa4ec015c640ff63ccf52e7527abee0 upstream. The DMA code section of the decompressor must be compiled with expolines if Spectre V2 mitigation has been enabled for the decompressed kernel. This is required because although the decompressor's image contains the DMA code section, it is handed over to the decompressed kernel for use. Because the DMA code is already slow w/o expolines, use expolines always regardless whether the decompressed kernel is using them or not. This simplifies the DMA code by dropping the conditional compilation of expolines. Fixes: bf72630130c2 ("s390: use proper expoline sections for .dma code") Cc: # 5.2 Signed-off-by: Alexander Egorenkov Reviewed-by: Heiko Carstens Signed-off-by: Heiko Carstens Signed-off-by: Greg Kroah-Hartman --- arch/s390/boot/text_dma.S | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) --- a/arch/s390/boot/text_dma.S +++ b/arch/s390/boot/text_dma.S @@ -9,16 +9,6 @@ #include #include -#ifdef CC_USING_EXPOLINE - .pushsection .dma.text.__s390_indirect_jump_r14,"axG" -__dma__s390_indirect_jump_r14: - larl %r1,0f - ex 0,0(%r1) - j . -0: br %r14 - .popsection -#endif - .section .dma.text,"ax" /* * Simplified version of expoline thunk. The normal thunks can not be used here, @@ -27,11 +17,10 @@ __dma__s390_indirect_jump_r14: * affects a few functions that are not performance-relevant. */ .macro BR_EX_DMA_r14 -#ifdef CC_USING_EXPOLINE - jg __dma__s390_indirect_jump_r14 -#else - br %r14 -#endif + larl %r1,0f + ex 0,0(%r1) + j . +0: br %r14 .endm /*