Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp765974ybj; Tue, 5 May 2020 07:15:47 -0700 (PDT) X-Google-Smtp-Source: APiQypIRcE7a9fknoAvRdFFsDNPHRtZC7LouDDw5g0cQThf1ss6Ehx+Rfc8vPMpUbpiBXEs/hp+W X-Received: by 2002:a17:906:558a:: with SMTP id y10mr3016256ejp.192.1588688147195; Tue, 05 May 2020 07:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588688147; cv=none; d=google.com; s=arc-20160816; b=NQpoPRu7QzUbIqt1tQ4eVpCNsR+NyLAEy35O1aqAL1Jj/2sSqZg8Iptdc5w2MXJzjr maLP3Vd0cmMbqnVyvW58B+YyrDjFQzwT2Nu1WWMYqsgEV/7aSRi1s2K3KBhIeUvf4jeM /fxHm4hk56bU4PXtDT1VI4q4YwHiJMAmYKU4fcrGRB6PBQ6aYXgY1fQ+CcTsNTuOBb2O gzV1N1RjOV9neIljMcdJTc1ULjYhPezKp9D3aq5XiKCgf62p1IRmGeJt6rYrnUshDu4D CqZI6TSNcw7GBrm6txYFZlcdTy+UQHo31kvKF9mCT6fh2ZvJhEWdMH4L35HdavmiT6nM x8LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=z8T39btxur0VopfoZfJmON1FviS20ZKbR+N8sC3DbVA=; b=BhmnYTcJfGKaEO/p+n25v/uPULIQAaMq0oJotUoFuDDLkPgI0zSJlzNVFVGccDLgVM r8WUurnRsTrC3mN+WLBLSS8ialUWmeQ+IzYYMIdQGSc8DxRAehn2zCckgZGM6YKI4yWk zZIrU6O+W5oihiCcEw8yq5q5+jOujVC2AC7GpoVvwndT2j9fZgm6o1YZdm2seVP3xd+G Y89UEne2lx3kfb1MHHZmf21akS6ZCtXfwIE0MzNRppBR6YmXo+y15sxSQvVn686213IS wfSVTDTiHTWxvLpA0Fi5+5ewVxcPN6Wjx/sU9h5cZRMSkQDydRPlLl6siEpcAhzPCilj iuqQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n24si1213857ejg.142.2020.05.05.07.15.14; Tue, 05 May 2020 07:15:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729283AbgEEONO (ORCPT + 99 others); Tue, 5 May 2020 10:13:14 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:54865 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729219AbgEEONN (ORCPT ); Tue, 5 May 2020 10:13:13 -0400 Received: from localhost.localdomain ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1Mrwnt-1ikU0n0FhF-00nxqr; Tue, 05 May 2020 16:13:00 +0200 From: Arnd Bergmann To: Catalin Marinas , Will Deacon , Torsten Duwe , Mark Rutland , Ard Biesheuvel , Amit Daniel Kachhap Cc: Arnd Bergmann , 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-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH] arm64: disable patchable function entry on big-endian clang builds Date: Tue, 5 May 2020 16:12:36 +0200 Message-Id: <20200505141257.707945-1-arnd@arndb.de> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:rkN2hFA/4F6NEnM1J64C8Aoib8T4jOG+siBiFVT9WROwOdH7x9t 4WH888TrHbFW/FHpjxq3U7UIYxkq42gZJvGVmzWSKCE/CP5xLY+4t0fiBxQKzBPqACB4Rxu Ppew9ALCOA7Zl3kFJwrRLZlpqi3jMRixTt0nmQPz31Umnk3BLwwh/1zbLQKb3mod0qsnKR/ rNXzfBEB11Ep2dBi8d6QQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:cdva0oxEiZM=:FQRtrzAr9rWx5IUwkwoKVU 4+edO8zLchzG0t3lP2T3zLl0VcO/vDceZ7U8gqo0szcf3UGrnp8cqm3RsThr2qeuZDCnoxmJO veqZajiQ7CWyp2xDqmSubJR9bg6if5TOtLgEJ48h50YQHo2owT1RleKCLy76qLfmwy4xRXVkR XKLca5YQpwBnghGgN/jyJE2KrT/TKk+TsK/QDz2CRA77IiqjaVSB2akJo9+zH0ilrj/1TUj2D beLTyKsIsE1xxTZGlLlp66kd5pROyDWGCL1CJIrsmQdcqPBJv0vfcntLO68w61O8bNp6iWhCh ANwWYVWBfMwiIl2qwGJw3ZgjIySZ8wCqK5wU1YqOl26ial/nrVdcbrkixCFkG6atDKTbdZv5o lM6FuDHZ2WAl5ilc09yi8pu+sn3P1/m+UcpcsxxEpqJQxNKYQsIzCTZ3uyuC3Uz9PD7HjK32B 0Bx+Tcgsyya3G5pIone2mmBYxaClBltnbMnWQZJtTIlVpk3MIxLlrORfTCXPpOiqfOTzqNz3J D9zb8xppaQvpQHwp81dh1mJh7SVz99Du3S+zZy35Syk9ovW1Te6tM60nT1aUZa9TYRgScSyJ6 fTfaB8IpMAB8iJV/RjgmGLPR9q4/q9fWr7cd7f+JQwWvmp3H9ACLTum5FFlc6OKxiAo+S0W6V Qe2JeJswxsdeh+GNiwZBcsq5GwonmV950Wpccx0cOX/zGJEK3kzxhV6CFJaN+pV9Ae2jku1w2 9INoLYGGsrvr8JLgpirpXlAifwJgXoorZG035wf4Nt+ZqQ7+8lCCAdPFhzkSnTRkqZ59sCG5x v/JSrNAdWm8DfWvw+w/viI7QyCBKfg1VXkZ7O+ztIiSTuzh++8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clang only supports the patchable_function_entry attribute on little-endian arm64 builds, but not on big-endian: include/linux/kasan-checks.h:16:8: error: unknown attribute 'patchable_function_entry' ignored [-Werror,-Wunknown-attributes] Disable that configuration with another dependency. Unfortunately the existing check is not enough, as $(cc-option) at this point does not pass the -mbig-endian flag. Fixes: 3b23e4991fb6 ("arm64: implement ftrace with regs") Signed-off-by: Arnd Bergmann --- arch/arm64/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 4b256fa6db7a..a33d6402b934 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -151,7 +151,7 @@ config ARM64 select HAVE_DMA_CONTIGUOUS select HAVE_DYNAMIC_FTRACE select HAVE_DYNAMIC_FTRACE_WITH_REGS \ - if $(cc-option,-fpatchable-function-entry=2) + if $(cc-option,-fpatchable-function-entry=2) && !(CC_IS_CLANG && CPU_BIG_ENDIAN) select HAVE_EFFICIENT_UNALIGNED_ACCESS select HAVE_FAST_GUP select HAVE_FTRACE_MCOUNT_RECORD -- 2.26.0