Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1828024imm; Mon, 3 Sep 2018 10:28:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY66bXDXnIrEw7apUN8caYLk5vHhWPGBeY3dDKrKlpXL4Wti/8VyqLR3JhxMFWC4fVrLtPu X-Received: by 2002:a63:291:: with SMTP id 139-v6mr26584539pgc.365.1535995716211; Mon, 03 Sep 2018 10:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995716; cv=none; d=google.com; s=arc-20160816; b=sEHXSPKvnMXNvtJ88NUJ3s748iP+sm1tycH6ocApxohM8p8f/cefWVMHqSnr6mqQke ycNDvm6WcJH3BOIZMmflPC56ATKIoYo6YBoW1JTru+Pq9ObJZ+PQilyfOIx9s75HMbjx vWg52w8oEc/nfP9cuQ/aUyjhGR7AbRw3Lpmi2A4797UG1ByhG0w7xMXqlOJWjvresXYi Z4irmYQrkl1hJB7FtqV48IFhChMC9tt5jXtqgfAjBhzLvkQoDn4I2YH4oAB7IrS2wHrD BJi/eIS4111rX1ngaFybG192ah8x+2PY49cAOlvEIWdsxtcjVKP+VP7yq8+m1LstqfMz lEFQ== 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=ow50N1nEZXq9VUUK35eerbI17dLMopYfE+AAoyhNqpU=; b=poW1s/vizMiauOzq+yVsL7+3g3tajoNNNe8A7PxwMDOuYblRSyQYL7v8pNokVWEBwQ K5+u4UU0gV6zBI37+ctAec54shyBbbgGp93cq36JNl/4Z5FPNdEqK/OQNP2hgHo8mkH+ fQpH0XanASTs9hT5WyHaSV8ZGum79Ld295HAfLwWOxWFX7RLRId9nVDWAqQIlxOBKcoU 8rmnbhabds5gmLSka+NCaY6D2pA9pjhZfC8DSU9b0Epmp/FCW05e5D4u7UTMoQtAopcm Qs7K/mMdGlB6cvwvQ7FUZ4Udq612Gd/uuZaZiUOApVb2oxhsANAc06PtFO7J6JYYWCnS gyBQ== 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 n13-v6si14658891pgd.280.2018.09.03.10.28.21; Mon, 03 Sep 2018 10:28:36 -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 S1730894AbeICVsD (ORCPT + 99 others); Mon, 3 Sep 2018 17:48:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45966 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728587AbeICVsC (ORCPT ); Mon, 3 Sep 2018 17:48:02 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id ECE03D24; Mon, 3 Sep 2018 17:26:54 +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.14 143/165] s390: fix br_r1_trampoline for machines without exrl Date: Mon, 3 Sep 2018 18:57:09 +0200 Message-Id: <20180903165702.724765517@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@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.14-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 @@ -518,8 +518,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));