Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3677537pxv; Mon, 26 Jul 2021 09:13:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeLdzknuDJocmH4mGXEHs6Yfaq+JXNoFbTpvGMRBas+crlnhr+inUWJOVuw4XWzN2uoEFp X-Received: by 2002:a17:906:4f01:: with SMTP id t1mr9430185eju.388.1627315980343; Mon, 26 Jul 2021 09:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627315980; cv=none; d=google.com; s=arc-20160816; b=oGDiAAaApqc3nZ/1EptrLaL2ABuGtU8g6DHK/4IcttQoPRl5vGhrfwx4ZOA0SWa3rx n9A5U60ZLgm67iXEQ35K2LQtjqPLKUOUVEAfJHQdtEDvuisIWqwzZU7ud1Jsg3byFduZ ZAJffbMNqNwW8p9PTMGr7d46Kk7GGw/7tJAiVrjtdGlVNkK+ToJnR0jTXqDq34wIDKWR qmTprZbrURleS76x5cvEVQZFz+p5FNFe0ap8tuZnVIe/EmYn3XEWluK+o3xTj5pA0JP9 jytAXRrJLAINKxD2THR/zodcf5c+vSfB6wL0L0acFiIvVPE29fcZ6Q1fkA1ie09GgD8d JYug== 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=FflmuF4rmjMn66cCxO0ivSx/kz+u8Ifl0xPtoANoEIgNCVDD74vDmmV2BABe4+3JWe T5+EuWLM66rVDahtg3NCFPrZLMHip3+7atptdJxWdqxNFMJQW2MrxVhbKlmiM2/BIG+j tCe9SqbekxLnZXl3dJo7UJSIelA1YBsx4/ZBld6i0OEWBqFWf0iG5dQ5kzj4o4pO+w6m dL8MN86olp83l5KK6dH7+jh+p+UC7JTUU+jAovh93IH5Q65x7CiHCFe+D9xG4LoUMi8h eZQNTd2aAlCKSWhFSHlD00zhEgeUGme02q3XgHd0G7zUM/Lz5w6Gmh/VU7FHu7LI5soU 92jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GTup+f6n; 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 lu2si291551ejb.166.2021.07.26.09.12.36; Mon, 26 Jul 2021 09:13:00 -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=GTup+f6n; 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 S232509AbhGZPa1 (ORCPT + 99 others); Mon, 26 Jul 2021 11:30:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:57480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236468AbhGZPRY (ORCPT ); Mon, 26 Jul 2021 11:17:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E8E3160F57; Mon, 26 Jul 2021 15:57:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627315072; bh=UUSnv+YBR56PLXtQOE914sFblrvfbpijYigJ4zwetgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GTup+f6nQ3893uIojFkfzmiaGKdTU6vbaSAYzfF171YgL7nIrgPkoVA/DZcfj/tGr +iVMvKHQbd7amfY/8vz6QTuZ1WRG4M1SpN9A1+P5ge1lUfU17Xn+JPXaj7DJsO7TEK 2gXdi0lvHJu+D0pF+LO01i5jD1g9ke7PNwD+e9ug= 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.4 071/108] s390/boot: fix use of expolines in the DMA code Date: Mon, 26 Jul 2021 17:39:12 +0200 Message-Id: <20210726153833.963804851@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153831.696295003@linuxfoundation.org> References: <20210726153831.696295003@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 /*