Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4558578pxf; Tue, 23 Mar 2021 13:42:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznbWSY87D4FuvXKtkYaC/Fzw2ZkcqXeSWQ86MmhH5i4Yk7ASSoU8qAFWz08mRyh+4j8v2N X-Received: by 2002:aa7:c6d2:: with SMTP id b18mr6341194eds.183.1616532150457; Tue, 23 Mar 2021 13:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616532150; cv=none; d=google.com; s=arc-20160816; b=AnuyAFn9T8nbOkVZqb1pOZYUsEfhoJBW5e4BjXLDXwJYZ8+eIv9VTmPJgY5L5tyrN/ 7aAlcXVPqqY1+YAkKy6c14HsB0LXeR6xpmzgNcKIwargrGrbYzCwMGX6O2jsYMbhyzAV y2l3t7BefhVuxGQ5nXMIptjysylZjUFmTLBUxRq0FKiUKc0LPIK65CueERtP6KBxG5lU LyBEmtvHhs0GssHGz0/ZgsD+nkfeWXHvbZsDa3IhJq31VczsHZ4h6qmjo0CdcLz19m5s BvvZ6acisvu2LvF+3nWWcbIngn4SVm8tPlIh8YsJ9FoQDiof2jt7tMwmjXk3G80yvS1N UoLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=WZ2fsTX5FLJhX01BulIdj9aVU+u+1SaaqVDcWrlk7vo=; b=is/LJwDoVtUx/k/v7YCFU749DEUlyyXl8Lt96fzbpXEzSXGUq6oJQjY/1Qe+E4XW4+ J6+IlqJSFN1GrlLMCmA0WCYqV+FTy5GdS39G67NbYDCAuf0XW9iVXVTt/zXgikb/MwKM 1L4tExiRjoUrWOfoD1k8gaOqJ0Jb+qImKn0hh0r2VfXoTJ9+1w1ZkgzpV7tBwvskUIQf jZ9GeHg1WNKQjYQWzFjb119ZGpi9HaOCCrKI9qjvnL1ZqYFeQaxfZjTGvNPuusCvHdkJ qlkQ8VkgwSPH6pS7RqtUOXrPzEDWmM7syC0NSfB/C20i/htx7+XmgKFAgTkyJl0xWTuI vAvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="ec/02RNq"; 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 g10si77393edq.430.2021.03.23.13.42.06; Tue, 23 Mar 2021 13:42:30 -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="ec/02RNq"; 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 S233738AbhCWUl3 (ORCPT + 99 others); Tue, 23 Mar 2021 16:41:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233585AbhCWUkZ (ORCPT ); Tue, 23 Mar 2021 16:40:25 -0400 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7145CC0613EF for ; Tue, 23 Mar 2021 13:40:21 -0700 (PDT) Received: by mail-qv1-xf4a.google.com with SMTP id u6so14132qvu.11 for ; Tue, 23 Mar 2021 13:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=WZ2fsTX5FLJhX01BulIdj9aVU+u+1SaaqVDcWrlk7vo=; b=ec/02RNqMxC3NtjfEqCKWLv4qwmQTmHrkXsCeNO2KBn8qSqKzTE24FKGqfuKH+TVkK X/VKFkbL4vsRYCrPeFIrZP8DeiwqKS96n7WGnqpK5r2/VAz0Iab+2cnLr9ixgbVx3i2+ bJO7ki2MVhZqoAWHQEzmE5B7oTVS3IIOSVMH6lZh48SF/0j7bgW6jHNwPIk8gKuBLJqR 4qQ5N4v6mKVofR2cSUqiTSphpJlczKzRN+vOPaGMsYJ3GFsS6r9eXFPtqA3WSVhoq05F zPIbSYNFmagSwu4VxL+cE8EfslHOGZyTYBOn5X3fzMMM4mw38aQ1r1FrLS9fBfhCQ2tj 1law== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=WZ2fsTX5FLJhX01BulIdj9aVU+u+1SaaqVDcWrlk7vo=; b=qNMFLP8HMVIiXeDQ5gjbD8fyplW6Hd/Sst5yf2GcX005GP1am5g/O5QExHunQqPsn9 iQ8JtGw1UhsD9xm4a7F5fY1nscWRWfn68gf4qrXycG2Zc+atCJRWwfvGJHux+rgwp6IJ wQwkFubtZMX3Ty//0m6LQo2NSnBFD/o8YMguWIwqjCHXpdNfG6VdMxgsnWP9WucJvQ9J b0zDidMTXpr6SaAh8qENbbttSp3hnkeXDUUlU2U9igFqs4rstik87XEWeRAcLlPM/qs1 thv0yJhwKc9WooAQ0c/cIgz6+VeDrw7G7bfCPMwyoB1EvUhE2fs/j/17euZRAZZ0JBed +waw== X-Gm-Message-State: AOAM532jz9WvHEfZ/i/z1ac91EqZGusD2IT3AGGTbVhr00lclJ5v84gJ 3vXDWmOYq3JdTPDx/yyZ6n9UyI2NJ5pAoDhPwGE= X-Received: from samitolvanen1.mtv.corp.google.com ([2620:15c:201:2:e9a3:260d:763b:67dc]) (user=samitolvanen job=sendgmr) by 2002:a0c:bec3:: with SMTP id f3mr6577376qvj.49.1616532020445; Tue, 23 Mar 2021 13:40:20 -0700 (PDT) Date: Tue, 23 Mar 2021 13:39:46 -0700 In-Reply-To: <20210323203946.2159693-1-samitolvanen@google.com> Message-Id: <20210323203946.2159693-18-samitolvanen@google.com> Mime-Version: 1.0 References: <20210323203946.2159693-1-samitolvanen@google.com> X-Mailer: git-send-email 2.31.0.291.g576ba9dcdaf-goog Subject: [PATCH v3 17/17] arm64: allow CONFIG_CFI_CLANG to be selected From: Sami Tolvanen To: Kees Cook Cc: Nathan Chancellor , Nick Desaulniers , Masahiro Yamada , Will Deacon , Jessica Yu , Arnd Bergmann , Tejun Heo , "Paul E. McKenney" , Christoph Hellwig , Peter Zijlstra , bpf@vger.kernel.org, linux-hardening@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Select ARCH_SUPPORTS_CFI_CLANG to allow CFI to be enabled. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 5656e7aacd69..2eefdbc3e3c9 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -75,6 +75,7 @@ config ARM64 select ARCH_SUPPORTS_SHADOW_CALL_STACK if CC_HAVE_SHADOW_CALL_STACK select ARCH_SUPPORTS_LTO_CLANG if CPU_LITTLE_ENDIAN select ARCH_SUPPORTS_LTO_CLANG_THIN + select ARCH_SUPPORTS_CFI_CLANG select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 && (GCC_VERSION >= 50000 || CC_IS_CLANG) select ARCH_SUPPORTS_NUMA_BALANCING -- 2.31.0.291.g576ba9dcdaf-goog