Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35763212rwd; Mon, 10 Jul 2023 12:12:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbD7cJu9vdJ5ck0Q10LMxY8bVGKeDH0Ax/UnGLLRzPPw9W3uEVaft3CRtvLe+cH7LpgTqg X-Received: by 2002:a17:90a:d258:b0:25e:fb6d:ce68 with SMTP id o24-20020a17090ad25800b0025efb6dce68mr19529285pjw.6.1689016333634; Mon, 10 Jul 2023 12:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689016333; cv=none; d=google.com; s=arc-20160816; b=ZA0mwKjjrGgfDa40dUZ5exJP2qBubv3TLiz9zkJ/TUhfx5SmyU+3Gok9tT74h9ZdaR 62OqU4GjwiYiqv8AjCJrzoclAMr8WLGjwJ3SXDBBNO9xHe503+kqtYR5t4ibwFc5+T9p jhcv5g5wDoSif0W3+xfE54JUhx9a5BTJigoSPRndbEYOFXb1AA5MzoOrNUh+C3rJSq6e ftOuhkQVh2Vg/tfk58SE+/6lpLpdKEcboOt2dH+I5mPQv6NG/wTW6WRCu4a9SRslr6Lj DV635MiMMbQIl3t1mggB044BDzOGBtXEoh1us+a9OThuTc701+mxGZGHFz3LY2coKc/c xbGQ== 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:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=U5TIV77Gf9BVe9e6kCB4/ILVtLRCWpn2g7fhFOBoE3s=; fh=AMRkecuRLh1zvQ+O0EL0q1nlRykK6pdvrtWjx39dx7s=; b=YNh/UmfpJ7ms+rYQIj4ZXSR2HORWBF6bTokBx2CmLldDdtPXYB9Fo9qjyJxt7/4q8/ 4yGfNDlW0ixfBUspSPVxGdr0GvDgXW3kwBLfs8kwmkrp3l8obtXy9GxGqGuLorvVqWYe Po3maExQo1zms53S+zNrw8Ug6i/iWBU3uGJm2aXoXFfyXVnvywMnMEY8LU/1Eqpaub+F uMNcvj8GV8ODLAbFNA9tc8s2jf5W3dnjYwhTWEOoahhKRBpKcFk80LoDIEUMxcN3aXHv MFtevCLzcoK4B6J60zKX+Nvfv8CvVeq5J2/5/H8IPhdBueZEgTKbNEEjgWz00i7ohf/t k51g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=qwyEfW3C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv7-20020a17090af18700b00263dfe9b96fsi7600621pjb.177.2023.07.10.12.12.01; Mon, 10 Jul 2023 12:12:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=qwyEfW3C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233368AbjGJSgS (ORCPT + 99 others); Mon, 10 Jul 2023 14:36:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232894AbjGJSgN (ORCPT ); Mon, 10 Jul 2023 14:36:13 -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 D8A931A8 for ; Mon, 10 Jul 2023 11:35:59 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-c6ab0d1b1dcso5068258276.0 for ; Mon, 10 Jul 2023 11:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689014159; x=1691606159; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=U5TIV77Gf9BVe9e6kCB4/ILVtLRCWpn2g7fhFOBoE3s=; b=qwyEfW3Cmou0wgR8ApNwjEhaMEQudKFycuSBNRASsvYbO6BVLK0h2HB5eRL+9FdoMU cHkqVYioIwvINUHdXDqouKSsUkMhNEt3vlZ5EhDdG/GJ7aS6sxT9BTuMO57QznLtk4Do UOyDz2FVIrzepF2aCMOr8gdFR+IFDr8Yizd130zu+X1a5ZNeGj0E1pS9r4u2rgJl03cn LvhEifvwZc9TS+BeKevDHotAcWKC0F37ns1qqWpTSOjO5WQ638Ecmx2sZTcvgnkz4ikm f0djXHkpR6yjiOb0JfKYanYVo4ymoKD9Tm6gnQSjri0cs478Yrmox99UBLIWxPCVcuw2 insg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689014159; x=1691606159; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U5TIV77Gf9BVe9e6kCB4/ILVtLRCWpn2g7fhFOBoE3s=; b=KKQMEqIPryJrRIaitM2633jDYaDlW5LEjkNXf6zNtYCyn78qQ5ul60Kb4sQvWHvm8g ccgMJEo9qBoMJRENevDxXShHT2qczAoJTb1CL1G2iOgb8Cj2SQ0FIlVQOeVN8wVDNYwQ UoxFqEPbQc+mspRcUZiRCc9smMgL79wb2EF+w91MlfG+RNTaB4TLYizMVEn19EnErph1 QHYkBvLbOIXbuXmAUHnClKrNaZLvXPo+9JwLslMXsDO0+nyN9vyjF+s/7rWhZNoys8Ft Og+Ndnon61jPUrajv4HOd3t8D0yXQFSa1LxsW47oY1gqRqQDG2OLowqJeR9nuEnfaqAf kZpw== X-Gm-Message-State: ABy/qLaKfieLtgROwh2+5QM82KUYGC98fBcUl4yu9WBJGfseENjxI6hR HXVjVaAbNX0/AunqNVtZYyu1V1dtyAWegF28FRo= X-Received: from samitolvanen.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:4f92]) (user=samitolvanen job=sendgmr) by 2002:a5b:90e:0:b0:bc0:bfa7:7647 with SMTP id a14-20020a5b090e000000b00bc0bfa77647mr78507ybq.0.1689014159077; Mon, 10 Jul 2023 11:35:59 -0700 (PDT) Date: Mon, 10 Jul 2023 18:35:51 +0000 In-Reply-To: <20230710183544.999540-8-samitolvanen@google.com> Mime-Version: 1.0 References: <20230710183544.999540-8-samitolvanen@google.com> X-Developer-Key: i=samitolvanen@google.com; a=openpgp; fpr=35CCFB63B283D6D3AEB783944CB5F6848BBC56EE X-Developer-Signature: v=1; a=openpgp-sha256; l=786; i=samitolvanen@google.com; h=from:subject; bh=Kirtl/2CH574RlVli6RH7Tr3lxFM3RdB5GGPayWpFT0=; b=owEB7QES/pANAwAKAUy19oSLvFbuAcsmYgBkrE+BGANkjs7x+hs99YYaMrhZLk9av9PmK51ek dJTYVpr+pWJAbMEAAEKAB0WIQQ1zPtjsoPW0663g5RMtfaEi7xW7gUCZKxPgQAKCRBMtfaEi7xW 7nVMC/0YbuLZxw85M9u6LDaUUwcWbWuX73K0i6Ow+fZlwze0XWWIw6HwbB4a4LtG5NRd9Tb+RYJ j6jVsSUO6MPXn4uUYYiSa9lKiKsUoXUkG02C9xDkX6cCn9Zd507LQGKmZW/mzDns+m5H6sdb4O+ 9tuXpgxHMtOmmnM9pQseqzSsfOHRdBqZat4JjmG7GjuAU4mco3J7hCmubi/E4RyACCVYpYkk+wb gKCmfg89QQ/bzonXsdRv8Wj2wGDw0IOP+vQvx+19bw1u/LnPEx3L4TuXxYIXoVxS/vpYmdH56dc MNLQWYITWJbBzw5z9es2HByxf1uOi1N7FAVFxi9/wKQruIfPbzdUCWTSfhXRFBJ9bfh5ByFoLAx mOa+Dld6KrZPLvF+QuOnUt5fiMN8Fk77zFkUYLruYGIDyhJci/wxjNRwjHzVLnN4VwJPWlqZnUZ xd4WtDmOT5gKbgSr/iqHLa2YfhwhUraInyaAMD6csG1kxRAfyFOeiEWRFpP63KzG8Oz78= X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog Message-ID: <20230710183544.999540-14-samitolvanen@google.com> Subject: [PATCH v2 6/6] riscv: Allow CONFIG_CFI_CLANG to be selected From: Sami Tolvanen To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Kees Cook Cc: Nathan Chancellor , Nick Desaulniers , Conor Dooley , linux-riscv@lists.infradead.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Sami Tolvanen Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Select ARCH_SUPPORTS_CFI_CLANG to allow CFI_CLANG to be selected on riscv. Reviewed-by: Kees Cook Tested-by: Nathan Chancellor Signed-off-by: Sami Tolvanen --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 29fdba9d8514..68c790b181c3 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -43,6 +43,7 @@ config RISCV select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT select ARCH_STACKWALK select ARCH_SUPPORTS_ATOMIC_RMW + select ARCH_SUPPORTS_CFI_CLANG select ARCH_SUPPORTS_DEBUG_PAGEALLOC if MMU select ARCH_SUPPORTS_HUGETLBFS if MMU select ARCH_SUPPORTS_PAGE_TABLE_CHECK if MMU -- 2.41.0.255.g8b1d071c50-goog