Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp804308imm; Mon, 21 May 2018 14:48:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZryJ7juHbYFD7fvm8Dbim7JRRk18C6oOGFAcp3R46wiVz/CWUJwqI5ZAYUUdrDqoBHfqGDy X-Received: by 2002:a65:4bca:: with SMTP id p10-v6mr13068124pgr.114.1526939324208; Mon, 21 May 2018 14:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526939324; cv=none; d=google.com; s=arc-20160816; b=siKAcDsYm0Mqq+pC1A7nLh+9RfsxNL0Fo48wFdPn+U/uoQEki6IPJmdxZbRH9fRRsY kA6jSdBhlrftxlXi87nPFvW4Cnsky8UnoQXnsUP+ac/Dl7KorvOJomFD/A/nc5jRvwvB LLWAKPitZ8oxFjXVzeQAtTGh13zmhL7X9Wn4uh4S2eqXqbsKp5Ek5zRidEXX/T5hJ9gU 0c934b6Mw6f6Yq1XZzh25bnQGlgKCquEUpG7xBISiHfBhX75B21qixhR7AXyINA/b3U0 zb3//+6om2KuR656Va9HUZFX1arRy8/JTkV6hU86TESldIkh9XzGBEdja4RaJllIDC/P GruQ== 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=6vbqNpEKQ0yPVXtrVySXiBDtLSqMrbLzCr/l31vE3HU=; b=pJECIlqUFmfA56oH2jL3n7xth7M720VHq15h+qmuWvnl4Yzy2H7xCfQtRJQmiFS8Yr U0K4wd7xGwwFBXYePkjRCLBBIkz7xBQgH67IB6YDlSoPkDTzK7sD6S9TjeUPyhQQTbXY NAHiFIvPlODvwWSsxHJR5ZieiGdugJ6lo7cOhed3EzPo1hvcRpWNuqolp8nhcY4Ff3G0 PkZx9l9zHUAIL85aFjVzqO2iVt1/3HSOVMbbDnMKGHh1tQjP8uviOlmS6PJpGQtwR+eP aAxEANLzd/lzuBAEdaBUUg08e70zeFwHhsDggaUxCnuyXcP1m5imWdbyMnTJNRJsK4ae uCmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QsMmMUBO; 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 v16-v6si14302165pfm.151.2018.05.21.14.48.29; Mon, 21 May 2018 14:48:44 -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=QsMmMUBO; 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 S932236AbeEUVrc (ORCPT + 99 others); Mon, 21 May 2018 17:47:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:38746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932194AbeEUVXy (ORCPT ); Mon, 21 May 2018 17:23:54 -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 4DF1720871; Mon, 21 May 2018 21:23:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526937833; bh=jMuIkU16aaeZDmuHtSe6AryWvnlj6fbZLYcxRyfCJM8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QsMmMUBOjEV1BR+GK6623VXueR68FEhWHdbA8SXfitfrlqgFtSyH2xMFtIcDw+Dy6 cnnqvIGfOoTYAiu0sLibnOhr7o6mTCGGQ5qbYTKKDbPm0LLFbk5s9+D3A1ZdYWn+yz HRLu/9wHE/c2sow9VR8QiaKg3mJ+O2FecVspZg8M= 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.16 043/110] s390: remove indirect branch from do_softirq_own_stack Date: Mon, 21 May 2018 23:11:40 +0200 Message-Id: <20180521210507.918921974@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180521210503.823249477@linuxfoundation.org> References: <20180521210503.823249477@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 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 @@ -176,10 +176,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 {