From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35858C433ED for ; Thu, 15 Apr 2021 17:00:02 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EF921611AC for ; Thu, 15 Apr 2021 17:00:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF921611AC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8muB/Uxhy662LuQF6wKv83YMB5yeYmkz2EL8XJAF8lY=; b=QDk7nWZMwULpszYlP/W0NSGqo Ow/3XD+PmYmYxEtphilwRq9oSUPbM7jmi4m8hQKSqEUYYuXAs2HJ/GK1EzDlrj749ipnlZRq+L7JA RGzF1ct4AAjInXlAddFz0GiY8BhlavrCmAlLlYVsLUeVdcMfIjYb9MlkHw4PYh2/93xklXTKic1EG xTw+94YJ3TzT26m0GwO75vWJ5ocY67bmyWZYVvgeh2qOIZ7hRz7XNPD6JjTbA+pIgENbzMI//1f6a +QK+87+IT0ZIzp9pS7viO+6fq+kgHEtKoR/a9aWsJR0YbD5kDOXaeP+UP6SsIDFMr8K+TJ4quJ0dS NgZ40dNAw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lX5JZ-00GnJJ-2u; Thu, 15 Apr 2021 16:58:01 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lX5JT-00GnIc-MM for linux-arm-kernel@desiato.infradead.org; Thu, 15 Apr 2021 16:57:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EYZ/asRs9kTlHp7uhexKg/hEhi9BOCGqTWBLHm8Av3E=; b=C5CHPW8caujmCUtEcLSCNOfEQS ClJzXVTwRJxg77zYenMQDOfgSKLpNFit+JN9QeeAYpcqGAhf+2SCmdeW67HAYwTrIT1j3Jfd7z7Lg keW8kCP/zZRYgJ8J3PPaoVWVsYnJ4eJfkbisvHIK7KNSqflEsg0PvfJqk6GO+2xsnoCsq4XoRlEhy UZL/ryNsDmZ4zvmGDlDVV0BoNXXPZI0csANA4TUUjpGNjtFu/8GdZrt08iO0cpI87c6FZEInjmRe+ Z1PJInOiiCLO4+KHww+KOj8iRPZeVL6Xd1YnsfLintRTG1uYEajOcecuV/lfAaMmi/GMEXoZOz8dO AmJQxuqQ==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lX5JR-008l7i-0M for linux-arm-kernel@lists.infradead.org; Thu, 15 Apr 2021 16:57:54 +0000 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-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210415_095753_085793_541AEC13 X-CRM114-Status: GOOD ( 19.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel