Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1811723imm; Mon, 3 Sep 2018 10:03:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbFc118NsgtRBxDwyo2hik4rwjIEfIjBiewMEWtDtWgf30zk90NVq0eW2x1xNua3uWN/xT/ X-Received: by 2002:a63:1c1b:: with SMTP id c27-v6mr27962902pgc.48.1535994230594; Mon, 03 Sep 2018 10:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535994230; cv=none; d=google.com; s=arc-20160816; b=YZV1KhYXePnIs9jITmOnaitNVRB8lJabhVuMtrPWBMdoLHVS6ttpxxZ12rHCCVZFty HLU0WBgskvzH+puknuWA7C9GYvi0kMkTe8qr3rwkVrK5LWSWdYDIaN1SHIYvPlqitd61 LdX/hJpygZDS3iNcnMzUtY5l0fYb0JKtNWG4Ie9VjzCCIIH2gP41f8NkjaUzIXyglRoy 2P0NUPUGlEEruhArNGu7wtxTYEWnn195v0K9qA0FGsT+CyPB8qEyrC06hunVIkHbbYR9 NSY/m5tXz0ryxwwkAK6F/NlhhZ6M1P+UWRYJ78elIIYKxDjQ/KbA8B7ZwEHvjZwT6rmA aI3Q== 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 :arc-authentication-results; bh=RahX9qGGfVlOhd9AsV1nCGEARSaPil7tRM6q0sbGyT0=; b=rVwHWcXojzAVqbDI9Ya4tj0Y0SdVNbpWCf970nD4lo/l+3i9qcpn5dcnvL7/GWy1os sG13t5kIhmbvjIn7br8Mt6gkgiFueGPXpvCJLyzvKNZXCYazTSEmd+rLTNFeoYlQYlO+ yDEg3wNKgH87oe7PcOGLILFGIeJPU9X2We8ESQjnwjhDQhkmKLvqSnRB8+3qTIlcor0B /qcoD4xT7Ymb0kZg6dXz/YAVDIJUe4Q/No+PagjeQXtmMdRN12UGz57IYzhGPJJG4dSt oMRHTv0E6j/TgTbheklbp+uXCv2DE40kPtTqt15EyCSRQrjEbh7cds6vIv7Kq0U9HeCr KFeg== ARC-Authentication-Results: i=1; mx.google.com; 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 h13-v6si5058128pgj.173.2018.09.03.10.03.35; Mon, 03 Sep 2018 10:03:50 -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; 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 S1728866AbeICVXI (ORCPT + 99 others); Mon, 3 Sep 2018 17:23:08 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38818 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727820AbeICVXH (ORCPT ); Mon, 3 Sep 2018 17:23:07 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7EBABCFC; Mon, 3 Sep 2018 17:02:07 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Schwidefsky Subject: [PATCH 4.4 71/80] s390: fix br_r1_trampoline for machines without exrl Date: Mon, 3 Sep 2018 18:49:49 +0200 Message-Id: <20180903164936.982385679@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903164934.171677301@linuxfoundation.org> References: <20180903164934.171677301@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 commit 26f843848bae973817b3587780ce6b7b0200d3e4 upstream. For machines without the exrl instruction the BFP jit generates code that uses an "br %r1" instruction located in the lowcore page. Unfortunately there is a cut & paste error that puts an additional "larl %r1,.+14" instruction in the code that clobbers the branch target address in %r1. Remove the larl instruction. Cc: # v4.17+ Fixes: de5cb6eb51 ("s390: use expoline thunks in the BPF JIT") Signed-off-by: Martin Schwidefsky Signed-off-by: Greg Kroah-Hartman --- arch/s390/net/bpf_jit_comp.c | 2 -- 1 file changed, 2 deletions(-) --- a/arch/s390/net/bpf_jit_comp.c +++ b/arch/s390/net/bpf_jit_comp.c @@ -522,8 +522,6 @@ static void bpf_jit_epilogue(struct bpf_ /* br %r1 */ _EMIT2(0x07f1); } else { - /* larl %r1,.+14 */ - EMIT6_PCREL_RILB(0xc0000000, REG_1, jit->prg + 14); /* ex 0,S390_lowcore.br_r1_tampoline */ EMIT4_DISP(0x44000000, REG_0, REG_0, offsetof(struct _lowcore, br_r1_trampoline));