Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3922603imm; Mon, 8 Oct 2018 11:44:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV62b2x7d4Tv3gqikLdP+968QATb4cP4dagouRDQkfvYhO6rKiHJCPNZthTkuX5EquoF+oBBV X-Received: by 2002:a63:ef0b:: with SMTP id u11-v6mr22328713pgh.283.1539024276981; Mon, 08 Oct 2018 11:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024276; cv=none; d=google.com; s=arc-20160816; b=UC0Ago0JvNBak2HGk+1KxNlw3LWnTBjWwhX/Q/wi16a7pxVg91eVTecqZe0xALPvOI oTKXxTTsxv5YAWoBNjHBfgYx7v086cBxrTT2+GCHKtH3MEjxnopLlLHLXIRlIgrjyWxL zjAAaBndXgBwrpVbsxbdMwdZBgvEXTSj9zlh2ApNXjeOa2WKm0D5802Dm7XYTPKBoQl9 408vBs2/xjXRM+8ULJoX1HE1Ck4NdvndwaubScl7zSRc6KLq2PT74WM7Ase0l+IMIY1W hsfGkhKqv09XU7Nk4QImwGy1FT7IxACIauocHfJe2hRj/0/bmUtV+kg+BVovHL5Lo31P CFjg== 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=dz8gRL9ecOMQwfY2T1a9hGux9wpF/PDyMKJ7XOtIkUc=; b=c01CBB7fVmPM2HyP0xuAhBFdvleDnMp6+NjMFvUQBkyBOWkFXGLewGPZtdcXJfXTCF +JqqFGh43bAOgknEzk9x/BO3PxCAT0wWVamEjTtTTtVetRHePPQmwz4n805/lWLwNKd5 GPl1k4+aAyRUz8kTsXJoFFPALCEzsk74jkoEE6PYA7XaTAFjvFeSXEIltbYlQrbGF+d1 MoeAJe9OJT7vb+8C++6giWMMB6QmzIy6oADnfUdLiPG4uUVy+BGWbLExvlmb4ybRsceG fiC1qVybJtjykJ8VBWQV2VVdF+18AMkh7tHvANm5GfU1OAbVP6Tmyn2yyHvxhb25FWXX tsiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nFn9P4Hg; 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 r28-v6si17608176pgb.444.2018.10.08.11.44.22; Mon, 08 Oct 2018 11:44: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; dkim=pass header.i=@kernel.org header.s=default header.b=nFn9P4Hg; 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 S1730654AbeJIB5J (ORCPT + 99 others); Mon, 8 Oct 2018 21:57:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:45032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729988AbeJIB5J (ORCPT ); Mon, 8 Oct 2018 21:57:09 -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 A637821479; Mon, 8 Oct 2018 18:44:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024244; bh=BXz1OM5xGyshPADsKpZv1bdLQYw6xsDZJ/LxsFrkqDY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nFn9P4HgFjdGwSdfKD/WSoXy+7sXmguu9cI8HnxjotHNyLun5TDjJc+QetTmpuDHG iADE3ayDzswAcMBnzZcawnlpmkGAXat7FDs9X/ip2DqsdDPewlIu1miXXvaJCdJaC3 F5AYc/kTnbIxVoMu8nrl7YOyr620K9AWlanF2tuc= 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.14 70/94] arm64: jump_label.h: use asm_volatile_goto macro instead of "asm goto" Date: Mon, 8 Oct 2018 20:31:51 +0200 Message-Id: <20181008175609.878854378@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175605.067676667@linuxfoundation.org> References: <20181008175605.067676667@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.14-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"