Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2041733imm; Thu, 24 May 2018 05:00:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrZps31OJWoJXyU30mId6fNLpaw28+niWy3l/mBmrT6PR1UoXI1EPzE/laD33G5F3VjoL1v X-Received: by 2002:a63:78c3:: with SMTP id t186-v6mr5530699pgc.93.1527163237944; Thu, 24 May 2018 05:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527163237; cv=none; d=google.com; s=arc-20160816; b=HTIdErAyLC1ppuQXdmgAsiLm9VId6VAjls8Igg9aaDlf16l2CHCMjrk8085jav62Rd d11FAEUn0nr1n2esW4JfKsAYOHX4MPWMBmfs65iV/o/gOqMlV0nJUTYsmALKOlM9iMYK 97ykyWVHtZJ0gQ3CaDUe/iDQifuXycHQ84QDaol9fNRguO1oAmulU5eIgV10Nyt0eR98 CQOfBD2udkNsL8gobKDff2nzItryvWyPxvr5uNqrc3DnsWmQ2icuvyvmtLPhx/XEibuQ ZoqQigqSf8JFUDQoDfVhj0YVBtYQU7SGOflgddn5jjRK2pHIsnyCaj71MJZNld3CIVef +Unw== 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=W9AZ+AW2Fq5PJVQ5H+kCq8tzMudoa+l/MrpZ5I8ADW4=; b=P+jmb6AWaWD7pARQzLBj4uXdkpRM77d19I437wQcNmSw4wh+dJWRT0ijUvVBZzVmbQ Gix8PLiZMxUFxjDAeWvRGtZpOZgAozwgvFUJPUScnYmsZtDKxlWeS0E6AK4Wv7IlDmwK 37P3Kmux2IpZbGATrX05fFXxllioM7W3dnzyrG9dOehgFWUKn8GC/ut52q2YngAP54GB 5JierOPfQjCJX5XttISjEEIAHg4Nk2iG6kQb58Si6zBysdBLMBBtFSTnZ2kSDgVlO2uW fyzT04x1FeWb5m7jFj+rWp22dGzMoW8rjjk8GApy+1LbzNyFjT/FZ4QmpTrQe4rCVD7E jbtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1gJzKkZn; 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 m37-v6si4618014plg.491.2018.05.24.05.00.22; Thu, 24 May 2018 05:00:37 -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=1gJzKkZn; 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 S966757AbeEXL72 (ORCPT + 99 others); Thu, 24 May 2018 07:59:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:56452 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965783AbeEXJpQ (ORCPT ); Thu, 24 May 2018 05:45:16 -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 D00A6208D6; Thu, 24 May 2018 09:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155115; bh=xOERSipec6BZqQB/svCHWWwRnItjRwsu7itAH77zEJU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1gJzKkZnuV5tcnoPMKfV3sQBfmZzs0HGpshjmJoPLOzvsIpDLSWL+6Vemny0h90hl GMFp8EnVKeDrHlrcQS5rpp66e4kXR5F3rwS1zFp+JOPWIIuZBCXAQ4im5J6m1eZfGN THnC0vQm+WbMTvXcncUGbzjPvg4pGs/sj2Pt2BZk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hendrik Brueckner , Martin Schwidefsky Subject: [PATCH 4.4 61/92] s390: remove indirect branch from do_softirq_own_stack Date: Thu, 24 May 2018 11:38:38 +0200 Message-Id: <20180524093205.137407442@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 commit 9f18fff63cfd6f559daa1eaae60640372c65f84b upstream. The inline assembly to call __do_softirq on the irq stack uses an indirect branch. This can be replaced with a normal relative branch. 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/kernel/irq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/arch/s390/kernel/irq.c +++ b/arch/s390/kernel/irq.c @@ -173,10 +173,9 @@ void do_softirq_own_stack(void) new -= STACK_FRAME_OVERHEAD; ((struct stack_frame *) new)->back_chain = old; asm volatile(" la 15,0(%0)\n" - " basr 14,%2\n" + " brasl 14,__do_softirq\n" " la 15,0(%1)\n" - : : "a" (new), "a" (old), - "a" (__do_softirq) + : : "a" (new), "a" (old) : "0", "1", "2", "3", "4", "5", "14", "cc", "memory" ); } else {