Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp889578pxb; Thu, 15 Apr 2021 08:51:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUQjExR2HEOemMkxIQARKUuNME+VQ/X9Cb66W9m/6eu+BgphDWqtqqBLhSY1sIJGCZs/v1 X-Received: by 2002:aa7:8dd2:0:b029:247:c334:5e6f with SMTP id j18-20020aa78dd20000b0290247c3345e6fmr3542927pfr.57.1618501889874; Thu, 15 Apr 2021 08:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618501889; cv=none; d=google.com; s=arc-20160816; b=yqrqSjc/vAsmu5/K+gd0dFxd81yc5RzD4fAdsiV7QZy4dmtexlJURWaUvdT5WRwVz0 IIx6YAy4iVfuscQ1hx4agR+gIc24oZA7GeKnoCLP6ML/IFOzM+WnisTOeolki+RXpkmP T9u2ZMFWebyWK5Tmt14mFviW5B8nNSK4bK7/5wgw50xW19ypFHPSSNVMFhahPiByWLOF m7XAG/IDVr2tlQlfUF+mOzmyDzPsgWgvZVZT7GP6IVIthcauq/Krh2NIJLEvFI0X3Czz HGdeUSCtPVm67W76YsqjEvLuzICCKEbBdvAtSLIXiMh+R9bhRDHJ1o4TPWYKSstkSFmp T9dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fYilzRCKDkKUdgOhlVcbbYfdjO7wy5E8rO0x4orHhLA=; b=mlmHv+563RfJoEGC6H3hZelPEKTwm2l7Wr109L3fE5FXHTWtI5+wLVYNikBFjzU+u3 EFT/zEl+CLR4MY1iLxZH2gRJ5sA7zWIrz/MVeeLVHGUJbVisdoHm+8bsEvBze+tUSXKw Y4pA8HLfVvxLkupVVnn1hmzRSbnTQ04xfRvlFcAKynBlLP/Hnl4BxOILhA7pqy3FStqE VfnB6Cc89iN80YqLRbJHxx7Ao8/wo3uOFVFb9OiYUkvwAPR8WukZULTDoChzkk29qA6B AWcjUmrAc1QvkveSnI6qQn+YZtRWyGm2wVNl176wN31Bq3/5afZrpHZFSK1/18Vo/mnK +6fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=bEB5pWOw; 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 f5si3618974plo.201.2021.04.15.08.51.16; Thu, 15 Apr 2021 08:51:29 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=bEB5pWOw; 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 S233493AbhDOPvD (ORCPT + 99 others); Thu, 15 Apr 2021 11:51:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232879AbhDOPvC (ORCPT ); Thu, 15 Apr 2021 11:51:02 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB20DC061574 for ; Thu, 15 Apr 2021 08:50:37 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id y2so24562002ybq.13 for ; Thu, 15 Apr 2021 08:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fYilzRCKDkKUdgOhlVcbbYfdjO7wy5E8rO0x4orHhLA=; b=bEB5pWOw1ZAIEUWzcKl3t4shqwnwqh/rbFNGxWSeVrpats5bWqew/AS8LFT3tNurTV 6jHs1OBTFCnbQptuEUluJxyy6jAFZreNCZ796HPkZZYWF6zjuAyNvU2xP5WXSfIi1imN G+PtFPreT1JLKhpb7n6HpLTFMLjYeOPmAMWVO1Pv97TF2Moj4YGx33apF8aDGkiKCoD+ lXHJ7DSWzFfkexGt3fEy8QmKmedF0GDdt2t+0ny6YZd63u90gt9NRSp4x5XC+6s4e1ZI LWELvd2kjcDBuqEzGn/Ch5dq7WFZ4+Zi5qQV3D0vmU9Dj2Kly+zHrBoVkTZwmo67/CFU Zrvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fYilzRCKDkKUdgOhlVcbbYfdjO7wy5E8rO0x4orHhLA=; b=F5uZYj1QduY8MUaVufheoa7DuKNlYU9o5z6hBZJBI58j5QZWy8IbxOdWzT0jBYbEGv 0bGXlJ1Nr9DTsnuR9RnFqVV2aLxaBIeEpSAXZnqGztgG6nDdqqSZhJ6TkWkZ2YuL4s9T 4TQVl+3LUQHbFO36fOQ8VwHxlrK4bkI+3VrdKoKrizpgbh/niUg82r0C3aVdh5NI0Kqn 6UQgd+Qz4zWgPzjBalTuq6uD/pwwwZJjwb6xvm8qlqnihi87aws4DPUUhd6S2Prv1pjE Al+thBo4aQk+OySEPI9d+64zYtfIYzhLc733Rebq/BkqvMnuqk78jVXiBbeEc+L3eo0i HVcg== X-Gm-Message-State: AOAM531Kbjng4qt2g/QI/fscyYNo8EzXi7O3qfQlTkHSIG7+J22cOPsx 6adEo+lNyuSlSTSQAkTzQXHb/2KJsKCoA6eLi1IWTA== X-Received: by 2002:a5b:54a:: with SMTP id r10mr5087018ybp.476.1618501836920; Thu, 15 Apr 2021 08:50:36 -0700 (PDT) MIME-Version: 1.0 References: <20210414000803.662534-1-nathan@kernel.org> <20210415091743.GB1015@arm.com> <20210415140224.GE1015@arm.com> In-Reply-To: <20210415140224.GE1015@arm.com> From: Sami Tolvanen Date: Thu, 15 Apr 2021 08:50:25 -0700 Message-ID: Subject: Re: [PATCH] arm64: alternatives: Move length validation in alternative_{insn,endif} To: Catalin Marinas Cc: Nathan Chancellor , Will Deacon , Nick Desaulniers , Jian Cai , linux-arm-kernel , LKML , clang-built-linux , "# 3.4.x" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Sami