Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3715191pxb; Wed, 13 Oct 2021 11:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTVo9zQ+JTNnAcMDHy3s1kWxxXGaN0chSCjYJt/d2hXmO4pToUkCOXyui+nL1wu+o2NOGG X-Received: by 2002:a50:cd02:: with SMTP id z2mr1296435edi.241.1634149414341; Wed, 13 Oct 2021 11:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634149414; cv=none; d=google.com; s=arc-20160816; b=Ez1NH/1z36r1rgIrVq/VeMepO97rYNqNjM72tc4BJbR0gflMi5yohcg4tBTigbkuCJ Gf1YQ4CGqsKbs/qMXfloAEm4lZPuHio4d+c+vsXH+19+pJUzwRSnMHXw7DyoYI6ywR65 +t0kMLLHFlH1dxyM1LFtCilrB8b+Xqls8qYd33qxg/U3Mz7NI/Eo2A1GP2HF7nuIEo8F DN0wBqDQmBdm6j2n9glOE9C58CXKfbQSWCnzUNxllQzAdCxOTcYcQPMOU3xGZuVFoMa+ XhSLK3PauIDI6pZXz3nE+3ThfNTzzO2ZH2an2TxQgwpD5nqN8rgLlPn90IJJudPXF47G HGEA== 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=odWUCzELK8O06v4rgAnqn7QfSrw6bcxGsZOkEiE3yxs=; b=wCkuL0R74dYQoTty5e1R1spWmJowm2M1orfvc+SkY05ICQDqqHTJ05XviVLUkNj5xQ aY8AHkHU8twalwn5DsLtLDcPPvVw/RKnuzHWCWApQD4sDDxniwZ6fRBRpD+3l8My8UxU XpzVGK0dedeLFx/RiCKLnEONBdq7RQ+GMT4PmbcWt04CFtkoqJaY0cPvpDqdIrRmjN1Q PndqHsDFJ1OgPpyP5OFLPZpArYoauRYuZvtMaQlai8uMrKNmQJmobgTJRirNuFQkLHUe xFPNLdCs9ndPSFMoRGYE250UztuRkPhr4sjgklG82Mag0UkEuynHjgQ65BS9Kg9HohH6 20kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="T8mfk6a/"; 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 d1si386018edm.449.2021.10.13.11.23.05; Wed, 13 Oct 2021 11:23:34 -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=20210112 header.b="T8mfk6a/"; 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 S239001AbhJMSUD (ORCPT + 99 others); Wed, 13 Oct 2021 14:20:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238861AbhJMSTp (ORCPT ); Wed, 13 Oct 2021 14:19:45 -0400 Received: from mail-qt1-x849.google.com (mail-qt1-x849.google.com [IPv6:2607:f8b0:4864:20::849]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B575C061772 for ; Wed, 13 Oct 2021 11:17:37 -0700 (PDT) Received: by mail-qt1-x849.google.com with SMTP id y25-20020ac87059000000b002a71d24c242so2772590qtm.0 for ; Wed, 13 Oct 2021 11:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=odWUCzELK8O06v4rgAnqn7QfSrw6bcxGsZOkEiE3yxs=; b=T8mfk6a/BVjhAIm+TTzj9BsOJLGtqn7Xmh6TnxguTLqc5eksMPiI1rRsouAKOAZZEv 9IZexIvnVbZIwtmssMcG4cUdKaEQK4iU7BoaedaOfRdSlfaCmRCCk9okijggE4F8VMIo iyhu6MKyD0MAOFapZirwpCKCsp8VCuZ2s5BwOjxQhhAEQRaSEVl0cBQzQGlWNzcMujGd h+Ji+J4E/uyxkjWTn+nroxa7yw+WIUlT286H0tkblGSlnVtIIughgHwoNOyjDqYArutp uJye0tk9chLAQBr2hXgjiwWYlTVFnFjzh9vatF0kyYiDs+ikusjXkJFaeBxyH/ZZ5z0V ewkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=odWUCzELK8O06v4rgAnqn7QfSrw6bcxGsZOkEiE3yxs=; b=NlRzZ6QpRmkyWvjHBzZ37AlUNjYkLRz+qZsMUdyjpIRmIg3A6sQiIfPcAn1T6YEboo dT9F1VnZKL+k8us/Sn/gPT5PmMwngOCwBpxV5rMXAcNoptPFQhpN3IYatnA/8WMu8NDY GLzmXYjYKvAXtSbj+tDRTDC0k5m0aWquiFIKZELmZhayii3EJ6zzoWIDUdxiV0R+anaP ee6hZc2TYYvDujxTCdSzW5GnXEH1DIkYcnpmb64tq2injjNF2pLm7TTF4nGqtIj0LuvK zY7HI8grnDw1b6z2rnwY5kFlNvqpfjEzSw1/wrsEbJ9k6iInKjXeRbgm2l9O37FLosA5 uXEg== X-Gm-Message-State: AOAM532MgEs+kM3ZY7iuduyIhijdBM2j2M6lenOv6jmaCZjN04+l6f9C wlkOr99pA27WExk9QjOGkogoiiSbXa3rItN5qFc= X-Received: from samitolvanen1.mtv.corp.google.com ([2620:15c:201:2:9ea6:6c27:1876:926c]) (user=samitolvanen job=sendgmr) by 2002:ac8:5ac9:: with SMTP id d9mr1078571qtd.136.1634149056447; Wed, 13 Oct 2021 11:17:36 -0700 (PDT) Date: Wed, 13 Oct 2021 11:16:58 -0700 In-Reply-To: <20211013181658.1020262-1-samitolvanen@google.com> Message-Id: <20211013181658.1020262-16-samitolvanen@google.com> Mime-Version: 1.0 References: <20211013181658.1020262-1-samitolvanen@google.com> X-Developer-Key: i=samitolvanen@google.com; a=openpgp; fpr=35CCFB63B283D6D3AEB783944CB5F6848BBC56EE X-Developer-Signature: v=1; a=openpgp-sha256; l=864; h=from:subject; bh=0yCPcS9wePai6S+o7jrbmHmxOFPxYhJtUyM9GzzoYQQ=; b=owEB7QES/pANAwAKAUy19oSLvFbuAcsmYgBhZyKaXaEzVzl9BeZkACcM57288N9ZbVGe2BZJRDPU Dg0io0SJAbMEAAEKAB0WIQQ1zPtjsoPW0663g5RMtfaEi7xW7gUCYWcimgAKCRBMtfaEi7xW7j7KC/ 0cVPke3fQulMZ2+Xd7Hy7IH1S8JKE4lOZ14lgY15tXviG/OPlovK/8knZaeX+9fpJluEu+X805OC9S RB9Mbe7PAvEkNZ6Wtc/I9OGTusZBobuUUjGGfap8/s0OiJA2zfUyP54CgTZ12Z7+F3BFt6kmSdihAx oySFFednh0yF/kOba641U3nLXqhI0kJdEDwnFI4VGyI5GmxOMq0P+mVDZpAXeu6k6NxllhDEfVfOvm 0RqjG15tpRa9o3LdldCMr7GDseLTw5M6CT2TF2QxG3H5/oKK9uz2CEpUtIKlG0RIP5yqMfD//q8Whs g5fviSHDDVj1SCrVMFrcuamfjQ3ETPl7qAaLNpMxLrwLxkI6RpvBLKGCfMCg6YPWNNHA4KkgyuZwpS yO04Vpf7/oKpl8qqa8GhsadQYiUIqGrfbaI2sR/UKedwHvk2TG00yjDXzyh1TeRTDMT4HuKd5SAqKJ mNL8WdNDtpbAzwMhrXNK3DAFjvNLS9TnVIFw7FpLjOlIA= X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog Subject: [PATCH v5 15/15] x86, build: Allow CONFIG_CFI_CLANG to be selected From: Sami Tolvanen To: x86@kernel.org Cc: Kees Cook , Josh Poimboeuf , Peter Zijlstra , Nathan Chancellor , Nick Desaulniers , Sedat Dilek , Steven Rostedt , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, 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 with Clang >= 13. Link: https://bugs.llvm.org/show_bug.cgi?id=51588 Signed-off-by: Sami Tolvanen Tested-by: Nick Desaulniers Tested-by: Sedat Dilek --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 47023166fb7b..1f310cc4e344 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -107,6 +107,7 @@ config X86 select ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP if NR_CPUS <= 4096 select ARCH_SUPPORTS_LTO_CLANG select ARCH_SUPPORTS_LTO_CLANG_THIN + select ARCH_SUPPORTS_CFI_CLANG if X86_64 && CLANG_VERSION >= 130000 select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_MEMTEST select ARCH_USE_QUEUED_RWLOCKS -- 2.33.0.1079.g6e70778dc9-goog