Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp2044543ybj; Wed, 6 May 2020 09:36:39 -0700 (PDT) X-Google-Smtp-Source: APiQypIvb9vTsfgdVwkNggFnquyb4HZTZWb7azzJ5Ed2H1DaqhDhdArHBkMo5anUlii4Cl1r/VDC X-Received: by 2002:a05:6402:1adc:: with SMTP id ba28mr8003279edb.336.1588782999065; Wed, 06 May 2020 09:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588782999; cv=none; d=google.com; s=arc-20160816; b=z7SvFB9XU5tkdthdzMwAou7Sj3iwoDVQoM5nVURxIqAmFmscZ2t7/+ZQBU36msBmBU LhUHnNZqrdu3YrMXtAMxnSLQW5Y8C5AzDA8wD95x0Vb66D9jxr+on36wmsthfIE2v0jD 6J0sf9ryuofRVKSWKPIkPZ4qnqnFIunlCN/5gkTFcTToVRz0Ha2v86ogAFFNXqMd8FOB oWLM+GaLLVrp3L7DxD3k1t67vL75Q/wsEAqbC0wCyHUqu3NNRgEZqrkczPOOvp+bOp49 eh3S0khdw0CAUkOnZT9P2DVQiJ5SZYfuAsvWW1CCpVQSF6Gu85qr3M70r5h/H5kpMjuw DNhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ZSjnrz5Vzljlo+S0Gi3AV1DTWDDAqSfmJlTYocyrdsk=; b=LFRXw98CpsQcblID6AgrgbHuKym0DyGLGdJbyWMFqD3pmWtuoDcKY8GyUDWhD4nq12 q+DTL2x2bj9ct9hF+1VrHDA/MeF5ZvVoMo6LF+9TAhNV22yd1fZpHTk0TwPNPHl/cLgU o8mzBARCc/zAWsrSP430Blp0IFJQyxp29rcetjActzJk8xWuAJvV6Edrb8vwSSKrDen+ WGdqV4CL/BPMRlLzhlXiRMAx8cGenuYB3UyjlGcvcwkK3/AI3QIeY7tTSsHPbpB/VS28 9NFLVPP8oWibVgpYJZbuWbN/eIQ/MxgxmPjs34C1HHmRNe+5Y6Yz4HhxV+A/hwePQC5L MVGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZkeFAxUb; 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 f16si1429127eds.152.2020.05.06.09.36.15; Wed, 06 May 2020 09:36:39 -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=ZkeFAxUb; 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 S1729972AbgEFQaj (ORCPT + 99 others); Wed, 6 May 2020 12:30:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727984AbgEFQah (ORCPT ); Wed, 6 May 2020 12:30:37 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 987CBC061A0F for ; Wed, 6 May 2020 09:30:37 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id m7so700318plt.5 for ; Wed, 06 May 2020 09:30: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=ZSjnrz5Vzljlo+S0Gi3AV1DTWDDAqSfmJlTYocyrdsk=; b=ZkeFAxUbekfJwC2o06fNIeey9P7PB2Qx6C1+Qrildh1CFbeFrtdTEjhXY/ZMNwFvna d0XF81yNlhn2n0F+SH2RxmoN+HIQfXvvtqRabHX/97UW5SVsZJKDKDRq94BMEiLZWr1i 53fMZxke9i6N6mBIPdYWM8w6BMDgXW+0Ft/SVgX2NDmLxAKDhFN51BzwbETYTfbe76mm HHUicr0w8Mi3f8bA3EvYUeUrw16iFKZXr04RHyqjzvL+M3bhGWk/TIXEbZef71tthlA2 gIMh/ZFnZ0RoNxAnLLwtK9CiwPIH1s1Gub5YxtHC6ydbaldo2QESOisz2MAuBBg8+Bav VMsQ== 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=ZSjnrz5Vzljlo+S0Gi3AV1DTWDDAqSfmJlTYocyrdsk=; b=Wm/yrDV8cmtFk26zpI+D3mTG4p1OHmp1pjvg/uOg4JFREExAseKCiRCEJdiolJpttR lwJIzpPQN8Yls8CfInbHWznws8EJATHsD0G1kLbUzuQRw6H7ncZtmZNMwhfPXt6l9Ev7 4/U/yprbYYrlNv/oYX3IpVHw8B3ZssYcOVMP8f2y4FcZpkiKEzNcD5nBbZJJ+gad+7vi kXSYmYNzrBfbiBAbTg7Cw1e0aO3VIy37+BDtnnCDqyTes84r0OjhRhnHjt9JSS++aBoE B54ou0eNLBE7Diha7IrgopZywAvgXp4k4c+mtO5fBNsIPEg5/sRgHCHHekiojQ+ED9Jt 2HLA== X-Gm-Message-State: AGi0PuaawiHmkL8fkC5tmYtwJ1U8E8idRtAZwxF/lFV9LtgwymzktT9P xMjwyhm7qKOYe9+vwT6+cLiyijrLqBBj7IYAX1vShQ== X-Received: by 2002:a17:90a:6488:: with SMTP id h8mr10301547pjj.51.1588782636724; Wed, 06 May 2020 09:30:36 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20200506154556.5fsxzs3vbfwixggd@google.com> From: Nick Desaulniers Date: Wed, 6 May 2020 09:30:25 -0700 Message-ID: Subject: Re: [PATCH] arm64: disable patchable function entry on big-endian clang builds To: Fangrui Song 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Thanks, ~Nick Desaulniers