Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2027715pxb; Mon, 23 Aug 2021 10:15:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgDowRYfPfRrzIuPQG78YQPNucsOqeN3sbFWgeT7u0wX1TNl4mw5huMo+GAOHzkeA+QR7P X-Received: by 2002:a05:6e02:1bc8:: with SMTP id x8mr23437848ilv.138.1629738952482; Mon, 23 Aug 2021 10:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629738952; cv=none; d=google.com; s=arc-20160816; b=S/pgVxYKB4bzRzYDtFcdM4yv01NUPSYFO0u/bspqdd+TYp83NWsc1E3HWgnL3mJzF8 MBDYTZWmuf2WGvSUaPSbnLwiEPJhcg5nZlL/tJmmcYI7E44/4IFM7+FOREnB0ZTXjmjq S0t/0t4+KZageOo3tT1qT5enzVY59ATKHwfcdpyikcQKCElDt7hCDxGVWaYmihi4/qRP 61UC5g05mbNAa4PG/0pYEiPFtQApfSmMgxFZqcyvAz9HBIeitkujSh09z7XMvBXULbyb 29bX8vqqJavWVhODDUl/q9a2VnljvwCUBziy+1OpnQNBmF4mLn0b3TjU9FRXCohbMf2R SIGw== 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=Rn4Ov6fZtIeuYv4qe0duX3eTx27b0q1rGV7B2MFXCkM=; b=abmkOMxNHZzfAmJ1H7MELcE5kVJrApSn9PaNW1B9fkDJ5dFNxPJI8DfELGoYTK+yU8 7Gqtuq/3mHC7YHCWXdBH6hEASDTy4EcAt7Di6Un/Zf+rdJ+mbo85wP+T2an0WwuSYyC2 +cunI+w5dflrStPCEP4xKm+YVwLID5ldPnHSbAaSf0cafulCorhaVoAKBMYWZVaePJCV /9v69XdxFMteVenXPI8oyBj4/0xVMLC8zLsADsMhp/VfY+DZnoE5san1rbxMI1aW4Zt3 BWvmnFIdyvMSl3yoaRkGpnQcgCzR2OZEfiybQ5OBKZIQXgzVl+q3YWH2GPZPvhA8Mvtf sObw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=j4Fz5nKf; 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 y28si13768777iot.48.2021.08.23.10.15.37; Mon, 23 Aug 2021 10:15:52 -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=j4Fz5nKf; 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 S232243AbhHWRPC (ORCPT + 99 others); Mon, 23 Aug 2021 13:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231799AbhHWROi (ORCPT ); Mon, 23 Aug 2021 13:14:38 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 519C3C061757 for ; Mon, 23 Aug 2021 10:13:55 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id f8-20020a2585480000b02905937897e3daso17023527ybn.2 for ; Mon, 23 Aug 2021 10:13:55 -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=Rn4Ov6fZtIeuYv4qe0duX3eTx27b0q1rGV7B2MFXCkM=; b=j4Fz5nKfDBIg6wGCX99oSD3qw+9mbpkBIV+gOiN5gOqYPBf8xKsRiv4NCnNtfxvGz5 y6GKY3b2JbRDDfueb2CkhEeI7beflC6wiiafJimcNoeQuObystNTTA5pIsa3xFvCYBt9 ydA7gzBTHz+lU829Kc2bHhqZ/+yQA2cWyKSLMUcfRQoj7/diGWT8gV6nbeEULgSN2jDp vx+68GUIHcdhTyPglZY63BqqWy3IJ01MOVpGI9RuO6V+xS6YNJEYrXZBZ3OHpJrRdUoB MUMFhySVjh/SWbsNoFpcgTJLlKudWt9G4AYFp27LraAAM3EOOBusIJm01Y9mGSVFLTo3 E1aw== 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=Rn4Ov6fZtIeuYv4qe0duX3eTx27b0q1rGV7B2MFXCkM=; b=H0orRpXNEjOUDii/gLVGl7si8DuNkt8htiWf7XtW89i6q3uoeC42UCyrw7T9PTpcqu 7F6+R1+8Td5ZiFM/yvd1VSrGbgzvVDUAKdKyKBLR2DgjZqxNcQGdZ/wCRNOhmoAMpLNz 6SmSxi8++w2dAt8K+ZH6gqCX+XDZrh/mSUNBvxMbo71VjfzR1is8Bb+4m3DY93Bg/aKx aUcS3jOzIJWr7fONssai27TEv2wRRkF95aWKFU3CuxYmKpK5F0AT8VONcFTKQW6HMcod 1r29wXiAN9N/SRdnKT2+9Zvi86AQv4OWtcT5OfzEbj559//9v0yu/MIwb2C+n/HfxX9t a6Eg== X-Gm-Message-State: AOAM53251FoyOI88b8SZSBo3OVxcx1MfZ1jscIuafI2Wiugz1z5oKIMB hPS0SEmbCee8xN7e9TpJ9EuOoK5rWHFu06hC/60= X-Received: from samitolvanen1.mtv.corp.google.com ([2620:15c:201:2:cc48:aa6a:f4ec:7d19]) (user=samitolvanen job=sendgmr) by 2002:a25:55d6:: with SMTP id j205mr46404895ybb.395.1629738834582; Mon, 23 Aug 2021 10:13:54 -0700 (PDT) Date: Mon, 23 Aug 2021 10:13:18 -0700 In-Reply-To: <20210823171318.2801096-1-samitolvanen@google.com> Message-Id: <20210823171318.2801096-15-samitolvanen@google.com> Mime-Version: 1.0 References: <20210823171318.2801096-1-samitolvanen@google.com> X-Mailer: git-send-email 2.33.0.rc2.250.ged5fa647cd-goog Subject: [PATCH v2 14/14] 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 , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, 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 >=14. Signed-off-by: Sami Tolvanen --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 88fb922c23a0..c487c482ed67 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 >= 140000 select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_MEMTEST select ARCH_USE_QUEUED_RWLOCKS -- 2.33.0.rc2.250.ged5fa647cd-goog