Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1911554imm; Thu, 24 May 2018 02:48:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpbeRg+sF8l0RoccbslWKUnc/x6nnUQ0x8ZMqVO0jj0F5tZUumoWtXKXdseBQngeg+dA7HE X-Received: by 2002:a17:902:264:: with SMTP id 91-v6mr6542725plc.341.1527155287066; Thu, 24 May 2018 02:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527155287; cv=none; d=google.com; s=arc-20160816; b=VLbjP+KJxfjjVrfUJvVuXNZR1NlNmtx7fKqh1y8CarlecZPLXQ2rMNMuoGeDNcD5Py uw+hVln1xoPWlazP88G4REGne/WzE29mnq9YYno/O+Gqka36vcNNQgWypB5hXoz84afH 4hwGUnTYoDMItotZD9EpxT52DfNQBnMRcDaSKEFPXrCMUjGSmUsfYKCJq63Dpaueejq+ eqmwAjgOvB8vlWVX9wlFkrEDdhIPBfI3zxadv1fwF76Jf4ZjjBviNWD7bmnlVvYAassu zc9vS5v4J68HZgh2HtFBy3mZjTRwPAGrk0XMb7G0MmPOXEeE7VL9IeRhG77yxNJNOHiU DSFA== 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=VXYRoc1g+ZZLw6KppkHPq6xlWaa2rbIlHvOsb/yOi6w=; b=c17ITVKcKmVi2Ik88PtA4B2Um7E1lEgMCk+kklpOTaUqszc+6ZwQpirEG8FbntP0eT cfJubfo3ZFN+HEfl+EbWfdoB9N/vO9MGUQKb1uX2OpSI0aG9Us9wECosBxslCOqONebh 2O2P6HgehvnxQ66PymPV/AdGnTUX6GXDe04N60wPZxztXEcIOW+Wm6OrKrnFaLDgunQo DZH9zVvUKRtTHkl0Rovsj8eTZBO1wfITNOE4l3PNR8rIZm01S3y/cFpDfPKVAANxFAjy gmzbbJkLVwv/kq9smI4Hdhv7U6cb38X4lx5Gedb8s329eH94EgSBwlCzWUBoz+DdFln4 tOIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qWRDBE7y; 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 k8-v6si11657229plt.410.2018.05.24.02.47.52; Thu, 24 May 2018 02:48:07 -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=qWRDBE7y; 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 S966137AbeEXJrH (ORCPT + 99 others); Thu, 24 May 2018 05:47:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:59208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967000AbeEXJrE (ORCPT ); Thu, 24 May 2018 05:47:04 -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 36B7D208C4; Thu, 24 May 2018 09:47:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155223; bh=/Nr8HNQvAP4f1FEHt8TGtt5ztKCKB9jlqv7071HB5Gk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qWRDBE7yutJrttxRgV8uCTo2FgeIWBiXbKQn0LJ9EUK7Olbh1dCkRLe+COd9xAgY8 Y8d4wRkmJmGkAGfZNYYTgfHiCuMkz5lh/6NeGReo8Hu0fg19EYweV9mYPwq63882Z8 51WoX2GPs98+2XX6H00GL6tRo3cHxklCUwTFxoG4= 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.4 78/92] s390/lib: use expoline for indirect branches Date: Thu, 24 May 2018 11:38:55 +0200 Message-Id: <20180524093206.724794605@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093159.286472249@linuxfoundation.org> References: <20180524093159.286472249@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.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Martin Schwidefsky [ Upstream commit 97489e0663fa700d6e7febddc43b58df98d7bcda ] The return from the memmove, memset, memcpy, __memset16, __memset32 and __memset64 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/lib/mem.S | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) --- a/arch/s390/lib/mem.S +++ b/arch/s390/lib/mem.S @@ -5,6 +5,9 @@ */ #include +#include + + GEN_BR_THUNK %r14 /* * memset implementation @@ -38,7 +41,7 @@ ENTRY(memset) .Lmemset_clear_rest: larl %r3,.Lmemset_xc ex %r4,0(%r3) - br %r14 + BR_EX %r14 .Lmemset_fill: stc %r3,0(%r2) cghi %r4,1 @@ -55,7 +58,7 @@ ENTRY(memset) .Lmemset_fill_rest: larl %r3,.Lmemset_mvc ex %r4,0(%r3) - br %r14 + BR_EX %r14 .Lmemset_xc: xc 0(1,%r1),0(%r1) .Lmemset_mvc: @@ -77,7 +80,7 @@ ENTRY(memcpy) .Lmemcpy_rest: larl %r5,.Lmemcpy_mvc ex %r4,0(%r5) - br %r14 + BR_EX %r14 .Lmemcpy_loop: mvc 0(256,%r1),0(%r3) la %r1,256(%r1)