Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3930312imm; Mon, 8 Oct 2018 11:52:29 -0700 (PDT) X-Google-Smtp-Source: ACcGV63OSNjTG0TMlWLvnVC9FPmHC4/mspYVN0SAvYKVoZ8Icty7gmBjZg6B8deRFDNPZCgD95Sc X-Received: by 2002:a63:4e4e:: with SMTP id o14-v6mr22887545pgl.181.1539024749292; Mon, 08 Oct 2018 11:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024749; cv=none; d=google.com; s=arc-20160816; b=AbHcul6aAPGRod3w4hEyQmnUJe/o/IHqLjPQqgPuGxZNnMEfnN91XNabHFDrmS4iy6 LeuI6icS6cXsuH/B4BQ9/rO2rCGlIN5Uocs5P0oPv7VQCv+9j+aIAqJZfexOeX2t4Hxx KloKLQIjLwC0c2MscF9CtzjwxPMz89E373jjeetE7OI3lJ6Hv2EqWwxgvLKLvKJZ1NeI zMvIGg6ni5SzqCG//5f1WxZzyYTGhKbQDyU3o0NpIYgZu0tbU7y/N27AwZWOL699VPN0 yBwq/J+ailMgi/gcE4Du5jXo1XTMhGStdzlJ8v7la5lIqZ5NOggbjTDPzeYShOZAIWaG 2EyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=K+iVr092OhzdCtshaK6zb2iWvWuw61YZvoKb2b4t8Rk=; b=Xqe9Xb321uVy7F3cpJRWUFDE62rhcftlrZdkZMfo9f6DneZhewFBhs6khUeQxzT5Xt KSbsEvxzXrRffGlFmI2xSFHsztvlK7tb5jeGPX+V3FbWri6g29wkhXf/rvlQIHoi1H9N e5E5dKRRYOTjh9bQKUFq/QyLNHBzRofK8B4VfvJgz2bryljLlQ1B7tyMBSnKumvAdB3T wXn6ELdNbAr9OfUWFSjm1Kyqj6NaR5BF0iCK9jm8dv1GN8BBcQpsdIp0Stf6Vqh4RqWz ZPtWC5Pl1XHpOrkJTrrx7kupvqBppcPzSaUz0kKTkUGA3K/47ymk+xVamTFyhcV8RSgX swhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AJXA5JhP; 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 p13-v6si17668341pgj.399.2018.10.08.11.52.14; Mon, 08 Oct 2018 11:52:29 -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=AJXA5JhP; 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 S1732465AbeJICFO (ORCPT + 99 others); Mon, 8 Oct 2018 22:05:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:55272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730284AbeJICFN (ORCPT ); Mon, 8 Oct 2018 22:05:13 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 460492087D; Mon, 8 Oct 2018 18:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024725; bh=XPRZPEF2xlfQdyHU+bDrm9g5FAW5Tyk98ELUpGagq3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AJXA5JhPbMbNQGbRbz3BfIkR0CALVr+HkAmeMrhj8oepMqZ975xj8cIbcCuFmH8Mk uzvhQRHbHJ9QyLh+z8+bWPE1qv8CpDAs2SQChCoADnkpiNst0yO0xJNcMv7oohdE3Z pfYnE+NOnlSHdItXpCUxYjUEiT6tDWwavg3ISAZ8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Catalin Marinas , Nick Desaulniers , Miguel Ojeda , Will Deacon , Sasha Levin Subject: [PATCH 4.18 133/168] arm64: jump_label.h: use asm_volatile_goto macro instead of "asm goto" Date: Mon, 8 Oct 2018 20:31:53 +0200 Message-Id: <20181008175625.102317570@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Miguel Ojeda [ Upstream commit 13aceef06adfaf93d52e01e28a8bc8a0ad471d83 ] All other uses of "asm goto" go through asm_volatile_goto, which avoids a miscompile when using GCC < 4.8.2. Replace our open-coded "asm goto" statements with the asm_volatile_goto macro to avoid issues with older toolchains. Cc: Catalin Marinas Reviewed-by: Nick Desaulniers Signed-off-by: Miguel Ojeda Signed-off-by: Will Deacon Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arm64/include/asm/jump_label.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/arm64/include/asm/jump_label.h +++ b/arch/arm64/include/asm/jump_label.h @@ -28,7 +28,7 @@ static __always_inline bool arch_static_branch(struct static_key *key, bool branch) { - asm goto("1: nop\n\t" + asm_volatile_goto("1: nop\n\t" ".pushsection __jump_table, \"aw\"\n\t" ".align 3\n\t" ".quad 1b, %l[l_yes], %c0\n\t" @@ -42,7 +42,7 @@ l_yes: static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) { - asm goto("1: b %l[l_yes]\n\t" + asm_volatile_goto("1: b %l[l_yes]\n\t" ".pushsection __jump_table, \"aw\"\n\t" ".align 3\n\t" ".quad 1b, %l[l_yes], %c0\n\t"