Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp19983ybj; Wed, 6 May 2020 10:37:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKz9wb1A0xxGVcWrurf2aaargsHh0ZbLpdmcIog2KXsOJL5E3jW8PxXGEtYsbUqpHJE6oRZ X-Received: by 2002:a17:907:7210:: with SMTP id dr16mr8171858ejc.197.1588786625559; Wed, 06 May 2020 10:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588786625; cv=none; d=google.com; s=arc-20160816; b=Od27XEoZbMydj8oKxM5wzQ+7JwCE7axd8qedR0ZenhjxaKU3AYLVyK7TiJRkkTPlFG oxdba5xLq+16cNunovZ1FkdXgmk6aHN4bMCXKCE2F4x0rT06ojskAHlkRe7d6QKbrlsu qQSUjn+THwnR3t7mQX8FrTJGSDPFfG5WeKyF+eRUhIYiDXRvoEG8QaggITqnt6eFAEBS BvbDgUSCRbGbN/WwH1sys++yuzTF+hlwqC9ZWBE+5j35ENtHWK0Gxef3tGOwKTJ6h2wh d0Z6z1XR/3Ref0HpuQ3IEqyVXvtNMaEX4p6LA2JCtv1RBY0w/k7y4w4YBWtt6NrvV1G0 oruQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=v5j4S3JEVj0FPIjZ8oxj1MyFeG1ZAskbKGCn2iAsiYc=; b=IOJ65NAgv8OY40cvu6z+dSABHKa1FwoNvS4lDPlUk65t+20P7ndgsK5KFbmI/nnKNj 3659DW3x4//3g1aM0WrKiCVNQjzPgs3dHlXSjpbpof4yTJ4IEuTKkgvrBBqwLsyq9HmZ SrJjRU9V/BIoUzIFDu9vL0v/qE1sTYVMK1IIhewh1i3oKSER2KriDcp+G5q9XXV6/UEW JOk/etRG3esBoRSkCQjTWGHKpKnDLiLAIGN5Y90lBXXpPjzhkuayZqjtXrYrC7IYIDiE CfhN6sHN9iTNhL+T91mu7bC1cbEtdMgJbf/1SgrIDtR+YEGkCnQ0f9fulU8RnTrcKJQb OSjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=f7hnEas2; 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 q20si1437039edb.36.2020.05.06.10.36.42; Wed, 06 May 2020 10:37:05 -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=f7hnEas2; 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 S1729472AbgEFReV (ORCPT + 99 others); Wed, 6 May 2020 13:34:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728047AbgEFReU (ORCPT ); Wed, 6 May 2020 13:34:20 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3E8AC061A0F for ; Wed, 6 May 2020 10:34:20 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id a5so1255208pjh.2 for ; Wed, 06 May 2020 10:34:20 -0700 (PDT) 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=v5j4S3JEVj0FPIjZ8oxj1MyFeG1ZAskbKGCn2iAsiYc=; b=f7hnEas2RuwiW30eTk9Sr6ocUIfaNFrt9EpsP8J9y68iep50a17a2n4POGJTkjLfwC 3g6JC/2fbDod1d56lq0TSLPPbSnmhoGLN/ULurD//t9cNNtQjHEZumIuton8xNfVTydP D61fB9wRz7oGNLtjq6t5N4+GxpnDeL9Li9uqZHo6c5VlABFervrl32YalUuS9BIutyPl mLJs9lV06k3jJ6Vk9/UDOeTClyBrph4sfuG941+oaVxADzsySotpIb0N6W9Mli/DdZ5e UPxtl7qHf6WnWtW+CDuyNzBc49juGSrdZRs58//GQK9rIMwVjsuTlwYPOr6AeBfB69p8 O+Dg== 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=v5j4S3JEVj0FPIjZ8oxj1MyFeG1ZAskbKGCn2iAsiYc=; b=BSW/j2AyTH6phh1nIHFUiCOH8Kfwgc8J8C8xpzffthRn5sn/qxjT91SWYkYu8DR0j0 kXhS5khN9e9Fejn5n3RqjgurEMqM7kKHxW46f0x4z6fsh4B38XMU5iIZYhAIWODxjhuX Vc/peE0n9fcFeUVC5MGIAk753BGoKxPwi0O//y7VbJW/x4c8FbRV7EowDgQjAl70RmcE PA8Wh5KGKCrWiDRjKjazGoTRAaUz+g4HHxdINAXMgP14+nb63nVgzKvC3pQ2csUm7rqO Pcesq9p01PDjBCE8NFa1gl+c0MlQAUYSx90ElBSobkStXYfVs1je7sQq2Aq9vBv/Q88E d+EQ== X-Gm-Message-State: AGi0PubGcRovOY2kPgKW6RwteC47FISDVcV4VanC8Eke3XkKomU73ztb DUEGD/zlN4np0ZY3HgMWHt7SAg== X-Received: by 2002:a17:90a:5289:: with SMTP id w9mr10372222pjh.97.1588786460049; Wed, 06 May 2020 10:34:20 -0700 (PDT) Received: from google.com ([2620:15c:2ce:0:9efe:9f1:9267:2b27]) by smtp.gmail.com with ESMTPSA id k6sm5207655pju.44.2020.05.06.10.34.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 10:34:19 -0700 (PDT) Date: Wed, 6 May 2020 10:34:16 -0700 From: Fangrui Song To: Nick Desaulniers Cc: Nathan Chancellor , Ard Biesheuvel , Arnd Bergmann , Torsten Duwe , Mark Rutland , Catalin Marinas , Will Deacon , Amit Daniel Kachhap , Torsten Duwe , Ard Biesheuvel , AKASHI Takahiro , Josh Poimboeuf , Julien Thierry , Andrew Morton , Marc Zyngier , Kees Cook , Alexandre Ghiti , Kristina Martsenko , Ionela Voinescu , Steve Capper , Linux ARM , "linux-kernel@vger.kernel.org" , clang-built-linux Subject: Re: [PATCH] arm64: disable patchable function entry on big-endian clang builds Message-ID: <20200506173416.hmdp5cgkslunfko7@google.com> References: <20200505141257.707945-1-arnd@arndb.de> <20200505142556.GF82823@C02TD0UTHF1T.local> <20200505194243.5bfc6ec6@blackhole> <20200506034523.GA564255@ubuntu-s3-xlarge-x86> <20200506153156.GA1213645@ubuntu-s3-xlarge-x86> <20200506154556.5fsxzs3vbfwixggd@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-06, Nick Desaulniers wrote: >On Wed, May 6, 2020 at 8:46 AM 'Fangrui Song' via Clang Built Linux > wrote: >> Created https://reviews.llvm.org/D79495 to allow the function attribute >> 'patchable_function_entry' on aarch64_be. >> I think -fpatchable-function-entry= just works. >> >> Note, LLD does not support aarch64_be >> (https://github.com/ClangBuiltLinux/linux/issues/380). > >I've approved the patch. Thanks for the quick fix. Looks like we >backported -fpatchable-function-entry= to the clang-10 release, so we >should cherry pick your fix to the release-10 branch for the clang >10.1 release. > >I'd rather have this fixed on the toolchain side. +1. Cherry picked to release/10.x https://github.com/llvm/llvm-project/commit/98f9f73f6d2367aa8001c4d16de9d3b347febb08 I did not use any endianness-sensitive in the original implementation, so hopefully this will not run into issues. The scheduled rc1 of LLVM 10.0.1 will happen on May 18, 2020 (https://lists.llvm.org/pipermail/llvm-dev/2020-April/141128.html) We should be quick if we want to test it on qemu or real hardware.