Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp941559pxb; Thu, 15 Apr 2021 09:59:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyo0hghDTTqnneieYDJAp4A4KV9PNVbfZcPpKYHJf67jfZVZY6X39oQ/O6cHXmLoVVCMbKo X-Received: by 2002:a17:906:af13:: with SMTP id lx19mr4284869ejb.508.1618505952025; Thu, 15 Apr 2021 09:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618505952; cv=none; d=google.com; s=arc-20160816; b=xxju5dvzVEP+RWt+sPvz4/Ena4aJ1FQVp3usrI1pYBvhA189jJ40f2n7LM9TD9XboS vklOaI/gBS58qpyzanq4YGMCPbo8V4ZuvM19R3/xE66eOBCGohlDr+vL0HBz55uV0uJu 0Nk+3CLRiTjyejrTGYNA3uoV36OA6OcSn/y/TW07XQ9gO0MYoatgHTw2QfAZOtvarEyQ wC1VE6cvnkfaFqtq2Ok8F0CHE8GdDKUv3bzK3fkL5/jx1I7ukraA5eUfvvgdlxLM1Wty YuxaIII8zRWG6DG+Lv7LrO4gPr+WmCYfb2xZbLMoosDQhMzJqWm1w5LjG+BmEmTJmLTy N72w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=EYZ/asRs9kTlHp7uhexKg/hEhi9BOCGqTWBLHm8Av3E=; b=kYG59oDQVYFXU6DrL9+maYK6eUQF7mVwo9ilN0ylibI4MG25tMfG9c+dxpCFmZFkfw 2yX7n6LuA/Y0abZVz+lWO0UMCN2pnBMdtJns2biPPkn240+WVJjY7FXZg17jZXubsqKS vbjBgeCHnMcpFkTKrLSKt9Hgc8TkDj7dHQLReE+70zSEuUdGLI1kENv9vC1f3PvUMpLo hOd9oFwepsXuvSRqFOJa7cE+8PBDAVWglsDK8VXCk1JXyieKTwIm85d9XNHOsM4c0CHH RLRy+Z1zfW/8UaE/j8Mbf7fzNEFzJA4Y7uUao823jYoi2gauW7yOyv3kCnQh7DVOMDx+ BKMA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o26si2444153ejb.113.2021.04.15.09.58.48; Thu, 15 Apr 2021 09:59:12 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234184AbhDOQ6Q (ORCPT + 99 others); Thu, 15 Apr 2021 12:58:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:48086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231549AbhDOQ6P (ORCPT ); Thu, 15 Apr 2021 12:58:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2EB1B60231; Thu, 15 Apr 2021 16:57:51 +0000 (UTC) Date: Thu, 15 Apr 2021 17:57:48 +0100 From: Catalin Marinas To: Sami Tolvanen Cc: Nathan Chancellor , Will Deacon , Nick Desaulniers , Jian Cai , linux-arm-kernel , LKML , clang-built-linux , "# 3.4.x" Subject: Re: [PATCH] arm64: alternatives: Move length validation in alternative_{insn,endif} Message-ID: <20210415165748.GG1015@arm.com> References: <20210414000803.662534-1-nathan@kernel.org> <20210415091743.GB1015@arm.com> <20210415140224.GE1015@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 15, 2021 at 08:50:25AM -0700, Sami Tolvanen wrote: > On Thu, Apr 15, 2021 at 7:02 AM Catalin Marinas wrote: > > > > On Thu, Apr 15, 2021 at 06:25:57AM -0700, Nathan Chancellor wrote: > > > On Thu, Apr 15, 2021 at 10:17:43AM +0100, Catalin Marinas wrote: > > > > On Tue, Apr 13, 2021 at 05:08:04PM -0700, Nathan Chancellor wrote: > > > > > After commit 2decad92f473 ("arm64: mte: Ensure TIF_MTE_ASYNC_FAULT is > > > > > set atomically"), LLVM's integrated assembler fails to build entry.S: > > > > > > > > > > :5:7: error: expected assembly-time absolute expression > > > > > .org . - (664b-663b) + (662b-661b) > > > > > ^ > > > > > :6:7: error: expected assembly-time absolute expression > > > > > .org . - (662b-661b) + (664b-663b) > > > > > ^ > > > > > > > > I tried the latest Linus' tree and linux-next (defconfig) with this > > > > commit in and I can't get your build error. I used both clang-10 from > > > > Debian stable and clang-11 from Debian sid. So, which clang version did > > > > you use or which kernel config options? > > > > > > Interesting, this reproduces for me with LLVM 12 or newer with just > > > defconfig. > > > > It fails for me as well with clang-12. Do you happen to know why it > > works fine with previous clang versions? > > It looks like CONFIG_ARM64_AS_HAS_MTE is not set when we use the > integrated assembler with LLVM 11, and the code that breaks later > versions is gated behind CONFIG_ARM64_MTE. That explains it, thanks. -- Catalin