Message ID | 20230710183544.999540-14-samitolvanen@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp5809vqm; Mon, 10 Jul 2023 11:47:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKrJhFONRzdTIUGD4MMahuJwPg3w9fhiAcE2pxZtlPzW76hE2+UQqCpkQEUEBTMVyGsYVe X-Received: by 2002:a17:906:3f1d:b0:98d:e605:2bce with SMTP id c29-20020a1709063f1d00b0098de6052bcemr13030781ejj.46.1689014822616; Mon, 10 Jul 2023 11:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689014822; cv=none; d=google.com; s=arc-20160816; b=EyMhmzBSxSL6X8/sRjrMWEkQw/RdbIGrJ4tj7wNDNCEWleoWUYUiZGbgjweuSW2Xhw nmUJd2Ud9fWC9D+e0zIk8vzDMC3VMCXhGa7MI67rWwmYmKxGAph/CNulWbkXddKz5lsy 8SS8uIib+OgzRFPosIo0kAMTu5HjlymGzCqDOgET7CT1iGZAGhJzPiVRk6hkI0KdhMUF Tdfga1zaOkNplsnhiU4XDhR0W10etWy2lyxKtqGB7F/E9tk1dJBChuAQkT2wGWCoAQCG XZNurHhbaxWQ9kvXd+a6YEUZ+zCPEGuzT66vH6YDXJISfKRhN51atISzCpnryOY6eiw8 KLZQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a1709063f8d00b00992671918a4si179703ejj.192.2023.07.10.11.46.37; Mon, 10 Jul 2023 11:47:02 -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 S233372AbjGJSgT (ORCPT <rfc822;gnulinuxfreebsd@gmail.com> + 99 others); Mon, 10 Jul 2023 14:36:19 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; Mon, 10 Jul 2023 11:35:59 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-c6ab0d1b1dcso5068258276.0 for <linux-kernel@vger.kernel.org>; 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 <samitolvanen@google.com> To: Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Kees Cook <keescook@chromium.org> Cc: Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Conor Dooley <conor.dooley@microchip.com>, linux-riscv@lists.infradead.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Sami Tolvanen <samitolvanen@google.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771060406701719635 X-GMAIL-MSGID: 1771060406701719635 |
Series |
riscv: KCFI support
|
|
Commit Message
Sami Tolvanen
July 10, 2023, 6:35 p.m. UTC
Select ARCH_SUPPORTS_CFI_CLANG to allow CFI_CLANG to be selected on riscv. Reviewed-by: Kees Cook <keescook@chromium.org> Tested-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Sami Tolvanen <samitolvanen@google.com> --- 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