Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2460525pxb; Mon, 18 Jan 2021 19:56:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMc/YDudrwKo3Sby0A6lLtzkY2ivaYds44f38Nc2iSk/7lH9ude9bqntBQCov8ATe4cMQM X-Received: by 2002:a17:906:f988:: with SMTP id li8mr1788473ejb.84.1611028604018; Mon, 18 Jan 2021 19:56:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611028604; cv=none; d=google.com; s=arc-20160816; b=ZkkcrBlIt5t3Kq+g/rTZqEXYBwFE8usEZqYktMCGMwa0tjLmmANLs7Nti/TsC5SucP IqL4NUnsoXPpPPxfi/1+5THFg0XK2bh9ia2zL1Q2ElXiykSzFlQC9mWpT1aEcfSYO8s7 jsEMwZ+wS4t1kx1AiDtECiVzBNguQMIjcyhf1pKoo2iDHFmSL0LZgcc2QaPv1F/oeu5G irA4KzQcS0BCvBF3rdpbjVWiiOoJIDrZ1Tts/cWQva1viLZKOKQy4vdZiqmlh3+oQM2X j8QzaTTCHi4SkQsGywjFYbY0KqYF2nDFNw9IuegpS6TGQauVePI0otkqcEskzqoMZ0mo Ercw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fLMG4vsTzbqzDa7NYZTtEssmDNdJhpiTjSVtjAKlEtA=; b=wfp7wB+pF3j0TZCSVRvGm/UuD2CtfrLDyry3g4vhhMBzDXkWk+FpOL7M3EWmOEFUGL ekUSN9Wqzjv6Pgvaf6aiVf2EvIidICS2CfAgOF3qr0YhMBEDPOgol2tlepHWCOGPr380 UY+ls8oJe82EcaVlIKr3HR+EZQZ0VCu9szz34AGggSMK457oumJRyc3Q1le3fGxSmLl9 eUpRreesHZc3qvcSPzHtBD42TY5pzrg4hFmukqsXOTVJgw9Uyjdsaw2JB/8pSFQYCMlk stKEp2DoES5rf94VE713uFKsicS2Q8TnNIgoU4AGiZJMEaSPWsEvGEG0CdUIDD2pXEZM u0ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=bYq5xCIx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si8241518edi.25.2021.01.18.19.56.21; Mon, 18 Jan 2021 19:56:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=bYq5xCIx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390077AbhARLUi (ORCPT + 99 others); Mon, 18 Jan 2021 06:20:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389983AbhARLOa (ORCPT ); Mon, 18 Jan 2021 06:14:30 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84D70C061574 for ; Mon, 18 Jan 2021 03:13:44 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id u14so9226189wmq.4 for ; Mon, 18 Jan 2021 03:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fLMG4vsTzbqzDa7NYZTtEssmDNdJhpiTjSVtjAKlEtA=; b=bYq5xCIxzjmV299kxFOaCiB/AS3jxa624Jqc6YIZmywPF0VJLTMwG3jbAp3Rl307/k hbfiB4H9mXbxETPI4v+GT1gwFHDX70mGRsQar2IpJ2FKIAKHJvFWzRMFchybki6gBfPB 6p7Z5e/42vPSZqedt7jpJtu9+gZwqSj8cfxt/JH2KRt19eCGYArh3kvHtA9a7qRIRLL8 b+nazIab6dctS0iZyKhVbpkE8mb0EMfLHaKpgyBxCulmhIYnf5VVvq5LCDBvM/gkb6AL 2M3nAOmJjcBr9iah49+H/XndkzN8NpGh9ij+ij8wEH6swOnsfecHixfdPAc94g17XTIC z6bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fLMG4vsTzbqzDa7NYZTtEssmDNdJhpiTjSVtjAKlEtA=; b=RV3MV2p5EA8wZ+rNI2X5qmerSKKlUUB3w5gUyhCH20ijic44oLXJn127wNP/LIRYw5 LYOpgA/EfbwXLyM/P/k6t6k02P7gduMcg5+VP5Md/7O6dJQhAxcx4ER06kkOseZnTxGJ grXXF5XVSKLjPJG86bMzODet6VwrAYMS0IHxrs9fGbrgTmZ2IFlEsV5wvkxga11WZDmJ yr5JywjXjLTv14UzshAhirvkdy++OEmWJJ0d/xSV+sIQWGczLpU6T7vA30Ojbf0x6Jzb XOx8Lpzx0xNQ1Uw/Qi+oEAcMXgOmYu6YiNUr6KkCiD9pCuxeRdaRek9V8OnHuSZWv7s5 rZIQ== X-Gm-Message-State: AOAM531MFh2xf5/Y87xQRV7/52bA76mQfG2JgyZo02GIokakrasurP/o R7mRYC0grxZZSOXY6JtibTvZSQ== X-Received: by 2002:a1c:e055:: with SMTP id x82mr19724434wmg.185.1610968423194; Mon, 18 Jan 2021 03:13:43 -0800 (PST) Received: from google.com ([2a01:4b00:8523:2d03:3d4d:985d:87b7:4d55]) by smtp.gmail.com with ESMTPSA id b7sm28398175wrv.47.2021.01.18.03.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 03:13:42 -0800 (PST) Date: Mon, 18 Jan 2021 11:13:41 +0000 From: David Brazdil To: Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Mark Rutland , Alexandru Elisei , Ard Biesheuvel , Jing Zhang , Ajay Patil , Prasad Sodagudi , Srinivas Ramana , James Morse , Julien Thierry , Suzuki K Poulose , kernel-team@android.com Subject: Re: [PATCH v4 01/21] arm64: Fix labels in el2_setup macros Message-ID: <20210118111341.porgvi56bzqlt36v@google.com> References: <20210118094533.2874082-1-maz@kernel.org> <20210118094533.2874082-2-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210118094533.2874082-2-maz@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 18, 2021 at 09:45:13AM +0000, Marc Zyngier wrote: > If someone happens to write the following code: > > b 1f > init_el2_state vhe > 1: > [...] > > they will be in for a long debugging session, as the label "1f" > will be resolved *inside* the init_el2_state macro instead of > after it. Not really what one expects. > > Instead, rewite the EL2 setup macros to use unambiguous labels, > thanks to the usual macro counter trick. > > Acked-by: Catalin Marinas > Signed-off-by: Marc Zyngier > --- > arch/arm64/include/asm/el2_setup.h | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) Acked-by: David Brazdil