Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1954066imm; Thu, 24 May 2018 03:32:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoT3lwGzVlf11aOtrEpq4Bn9TuXVJY4NIJjp4GVoJRm/rklqucRfUs4RQBx6HSzWuIIeEC5 X-Received: by 2002:a17:902:8541:: with SMTP id d1-v6mr6985263plo.106.1527157948025; Thu, 24 May 2018 03:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527157948; cv=none; d=google.com; s=arc-20160816; b=i5lXvRk+rHrhDSZ/1Zd2E/44pZ9i5jEpC5NEltrtkrigmyE7u+aJfQ4zN/pfumwk1g g09/HUbpTTKcu3QY0RoCroZoFdrV9SEbz7Y7EmNPpdSVqESG1jNwBqOeCBMUHNZS5xCc cqeSYLnCIAXBPb7hRynW0R8QSE0aDMgUYGNhj+/WzrxgAV8YqI38q7unF1wSS0mmUbGh gsFNnQ11e6AWNWnAfOPvJXO+aTzfmSzUN4zN/jXHx3aH2/TnHZnwjDRBxn8QAgOs3iRw mtkRylhf30MVRz7+rTEj+FHeXw9ISoszzSVGA8s6moNLZqsUZZPSSv7SJbh6k3TA5Fxc j4xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=lRPzuruBtHIG74HH5PbqRrU3h6xSioYday6O6A7XQ3o=; b=R2uFBnJdb4RLeQp97Z+GEf+aGbdavsBwPsSVpwXy0+lXcqpqg/3lwhvQ/upmM43Uea 9ofD6/OdTAJobxB3ccVgADhz1+gwuwO42miGmG/SvVkHNY79UTAg1XmtEnMJ3ib9rof6 KXl6wmPnR0cmw9JcseNYEKRhpn+qjmlEBIYLZ4eXG2n9HfhxUbVwCbo79GtIrf7MTjsk KLrKy3ASSbGa2WnEShd7CTsw7neTMRsSuds8DwY5jhSfpKzcFBj4IL3NJWiIIGQQXGsD VihFXPrKQwuZV6/HHHcT3gCIilYdwqxBYGkykElRdVc8APBJHOxtjtKO4ap96s4gOe9s EgrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YnyVLPLP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12-v6si21215637pfd.253.2018.05.24.03.32.13; Thu, 24 May 2018 03:32:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YnyVLPLP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032042AbeEXKaS (ORCPT + 99 others); Thu, 24 May 2018 06:30:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:46960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030932AbeEXKB0 (ORCPT ); Thu, 24 May 2018 06:01:26 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 29E6F2088E; Thu, 24 May 2018 10:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527156085; bh=Y3EJPsS9jkP3D9jpOgcB9IWsG7snB1Dssaz4UqCxMIQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YnyVLPLP9lixPlGkMORNbqXj/Tf04sm+IsdYcIn26mARE3KjS6jSJmJ9IsaROpnOE 0mWo/eBhQTs+lIhcGR73YbniO2H0LGqWVEq8qztEKWMBShyG6cVaFKpeFPeohdGIDd xBS2kZ2nZq6yVsO3F+qdL6n4dqjrQlcS60sfHjeA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Martin Schwidefsky , Hendrik Brueckner Subject: [PATCH 4.16 057/161] s390/crc32-vx: use expoline for indirect branches Date: Thu, 24 May 2018 11:38:02 +0200 Message-Id: <20180524093025.325713440@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093018.331893860@linuxfoundation.org> References: <20180524093018.331893860@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Martin Schwidefsky [ Upstream commit 467a3bf219cee12259182c5cb4821f88fd518a51 ] The return from the crc32_le_vgfm_16/crc32c_le_vgfm_16 and the crc32_be_vgfm_16 functions are done with "br %r14". These are indirect branches as well and need to use execute trampolines for CONFIG_EXPOLINE=y. Cc: stable@vger.kernel.org # 4.16 Fixes: f19fbd5ed6 ("s390: introduce execute-trampolines for branches") Reviewed-by: Hendrik Brueckner Signed-off-by: Martin Schwidefsky Signed-off-by: Greg Kroah-Hartman --- arch/s390/crypto/crc32be-vx.S | 5 ++++- arch/s390/crypto/crc32le-vx.S | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) --- a/arch/s390/crypto/crc32be-vx.S +++ b/arch/s390/crypto/crc32be-vx.S @@ -13,6 +13,7 @@ */ #include +#include #include /* Vector register range containing CRC-32 constants */ @@ -67,6 +68,8 @@ .previous + GEN_BR_THUNK %r14 + .text /* * The CRC-32 function(s) use these calling conventions: @@ -203,6 +206,6 @@ ENTRY(crc32_be_vgfm_16) .Ldone: VLGVF %r2,%v2,3 - br %r14 + BR_EX %r14 .previous --- a/arch/s390/crypto/crc32le-vx.S +++ b/arch/s390/crypto/crc32le-vx.S @@ -14,6 +14,7 @@ */ #include +#include #include /* Vector register range containing CRC-32 constants */ @@ -76,6 +77,7 @@ .previous + GEN_BR_THUNK %r14 .text @@ -264,6 +266,6 @@ crc32_le_vgfm_generic: .Ldone: VLGVF %r2,%v2,2 - br %r14 + BR_EX %r14 .previous