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=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 58003C433ED for ; Thu, 15 Apr 2021 15:52:30 +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 D512761152 for ; Thu, 15 Apr 2021 15:52:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D512761152 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=T2e8iqb7KJZOccGFo5lhRkaYmocpsgn8Kgrz7iu1TVc=; b=RUBenOeIwSOG2Tqw+HZezXauk pK0m4aEDkL6IJ2LH4A2lhGk1Nkm91JrvI8Uaq0dsf3Isg/Xg0ODVTkTkjoJhl1QX0OsHHzYaqanam nDhFcQ+ZtZtDTdRkA28z+26t4hwU+kAug/+k7ANYstLZvWd39ydeUdqp4TT2Ye77xmnHCBNd2aFla XvWYfidfjtqUlS6jtcNbXg62kjGf8I7i4iJ+4JB4xKyPNha/1Ebvhw9pUnqQbwVZbrciQtBfJOTAN WJaGwMkdf6edKTd9ZxlFGF76piM78zeLWbABNHBmtF+bzjMXXfME3CFkXea7cAd8d/00Xmx9gTqQS wOQmSyHHQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lX4GX-00GfTS-VF; Thu, 15 Apr 2021 15:50:50 +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 1lX4GS-00GfSx-P8 for linux-arm-kernel@desiato.infradead.org; Thu, 15 Apr 2021 15:50:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=fYilzRCKDkKUdgOhlVcbbYfdjO7wy5E8rO0x4orHhLA=; b=EI0PMNj/Ut6xSanMiqZiiTUEB9 IuDQySbE5GkURLIV348iNKaGRoZxIKHdI971iPKVTyZT0dc3Bbl9+KHs/LVeRmswYWMVN3g0pv7zd q1wafL7hQnKa1C0yMU5+k4EHexz35lkmvTiKn92/zpO15EbMgMLJBRYaS3JQxxAd/Fp9XPMp1g+Cu eTPxCfhQYoZxdNmHa5Bm3mW4CwZk+n+iif+GIH52Mv5URmtwMPzubgwJlV9nWK93X382j52oun4C+ U0HVpwSjJHndCQXxwjhVFnNnFosTQB1X2hEni6kFEDMXV3XIHYVd0RcLAGDVviJZ3IYEvru4GOzfO JIdOeCWw==; Received: from mail-yb1-xb32.google.com ([2607:f8b0:4864:20::b32]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lX4GQ-008ik1-0m for linux-arm-kernel@lists.infradead.org; Thu, 15 Apr 2021 15:50:43 +0000 Received: by mail-yb1-xb32.google.com with SMTP id o10so26638752ybb.10 for ; Thu, 15 Apr 2021 08:50:38 -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=XjVfNp1ilj3wUfa+QrCWfAdFN2oEzH0JEiwN9oCTpsif5pZJMV5Rn74rnUHkdlxRpF tmrkzLR0u9ye69TTTOBosYwRn1n4I15qU9UsW8T/EfoQ+Z8EZNBOS4ZQfdHBr5i1EDml /AHh8aGoDt5kdySw6a6AyFEhrkmRt7LngWgi4bAv2MUilJ2y0vIyvUSFxKplv0T9HcLv BiGQkczXEXq89NhGTzCx5nOINrw/RN7LFjoTV6EpvdqgnqVL+1Dk0SfZNDooZr1idZ+c FkDhvSRgZttPPRywHJEIneFFuJENqoMactwG83luvuJN49EsPf0y9ZJr5B0Ug42A9Pnc O2/A== X-Gm-Message-State: AOAM531HL4tISfeyf129ScwsJ0X90kPXXE2DQ5mxBGEL5/xy7TDBA86/ k0VUql+OmUnxIN4WbkvgfzoUOtbUEnW3phNfgOusow== X-Google-Smtp-Source: ABdhPJzIjnUNpPqqfntRP4pP+GuW6qH1+7UUP1qwaDpRmrDTkNySxQxbfSOI1ocgfp4UGS5eD86r8SdSA8roqJ5pIdM= 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" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210415_085042_086557_A55EC578 X-CRM114-Status: GOOD ( 19.19 ) 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel