Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4538789imw; Tue, 19 Jul 2022 08:26:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sEiL2mJJK1OLypYtPTAU8gGCI3Fcyows6TKJ02AsEJ71gh+9RtNl0KxPF7nkKzv0mB8Tge X-Received: by 2002:a17:907:a427:b0:72b:8cc5:5487 with SMTP id sg39-20020a170907a42700b0072b8cc55487mr30526240ejc.354.1658244398818; Tue, 19 Jul 2022 08:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658244398; cv=none; d=google.com; s=arc-20160816; b=BtTzx/tugDI2wWO/fD8EvB82UvfaWWCJ7pIEMpEKHCisWhcYy5u9TSCw9tFLqM0NiF GHLUcdX7LYk8anRO74XaHvPTCgo5BCOAP3gwidodZCVcpDw7v77n1t3hH9pGfaa3iheL hhTpW9Ra4eMa0MUwYBYASIqHw6yNR3bkoRiZ6F4YEVECC/efa8McDMIDTpO89UuWmpEJ sUZ/wjTkMQ8q71R/NVKXA/ELHh7cOe5Yi7cgJ04VIHK9cl/u4EmRRBwtbnWdyeLZzVHP e1mnB2JricVVWbO5NfGEBKkdOXhalhD7Q9CfRrYw6KPt2Mplsj9VFJG87RFMS7/NcT4g 4J+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WFzesI5ahWqiryAbFcawu95nDHc4bJnSb+/DgBXn10Y=; b=NkqCFJlbXcQvrTReVND9e7B0SCjjen5H+1w3uWod/DRnniA+oMNqYpVJ9+ilVO9vXB Wa6JpBY6VZJ7i2tgRjDJa2k7j1iNGQr/bFiLXD2r2e4tupVgRB8MmFynXo+wvK4xVpqv U5wLuwAdXQtHLh7mqKwo6ZEykIw5CIyjX8MPV3gpkIHOJ6q0WkoJyzjg7sgls+5m5VTc AvUpo7KL1gx+XSLCun2hgP6Xro7n7QAZYzI4/zwhD1eId7/fdS4GGwrqmIRNHQ53nfI8 SNsJeQpRoJyk+CWS/Q9dZWWMgDp6oO8LiV/wRuWFs6bVfqj4LuvI6NgUlAG0JB8bVhcj KGqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hc8opsDf; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs20-20020a1709073e9400b0072b870ca25esi22969813ejc.996.2022.07.19.08.26.13; Tue, 19 Jul 2022 08:26:38 -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=@kernel.org header.s=k20201202 header.b=hc8opsDf; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238458AbiGSONm (ORCPT + 99 others); Tue, 19 Jul 2022 10:13:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237198AbiGSONP (ORCPT ); Tue, 19 Jul 2022 10:13:15 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51CE559259; Tue, 19 Jul 2022 06:36:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 6D483CE1C01; Tue, 19 Jul 2022 13:36:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5416C341C6; Tue, 19 Jul 2022 13:36:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658237812; bh=LgIus1vM08oJb7atpj/1Ixv/EE+zSIDg/3ScTjK636I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hc8opsDf62QaLIIbJ/8bhboVP/hhdbVhKBYx6dB3I94dx260mmGeQLkcDze6Gq6xI JXBxqA2ycpbxSD/4fyvcKM0qPo/o+JKPLAubROYEwZAjB+BKViK1xiYplGR1qidVdq 6dUcaV51IgrKQuzIStBgWxro57Iag2GgeuzVCSQ5FnewwcSZ6aEA1e0PQ3z43iLgH+ MrnO9upkv1JiDLCNxxBla63/46x+ttmowfsWhAnWF4w3Jid7rprrfXpHz4WyMD4pbq 02c+alBWnJuCYyzpIoxjY0iMNOuKBk90iM5QSm5ViMFIBGZu217ibq9PMmrvUx44M/ oV6ts8BZILgzw== Date: Tue, 19 Jul 2022 14:36:45 +0100 From: Will Deacon To: Kees Cook Cc: Sami Tolvanen , linux-kernel@vger.kernel.org, Josh Poimboeuf , Peter Zijlstra , x86@kernel.org, Catalin Marinas , Mark Rutland , Nathan Chancellor , Nick Desaulniers , Joao Moreira , Sedat Dilek , Steven Rostedt , linux-hardening@vger.kernel.org, linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [RFC PATCH v3 00/20] KCFI support Message-ID: <20220719133645.GA14089@willie-the-truck> References: <20220610233513.1798771-1-samitolvanen@google.com> <202206131001.6BA9933C@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202206131001.6BA9933C@keescook> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Mon, Jun 13, 2022 at 10:04:12AM -0700, Kees Cook wrote: > On Fri, Jun 10, 2022 at 04:34:53PM -0700, Sami Tolvanen wrote: > > KCFI is a proposed forward-edge control-flow integrity scheme for > > Clang, which is more suitable for kernel use than the existing CFI > > scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't > > alter function references to point to a jump table, and won't break > > function address equality. The latest LLVM patch is here: > > > > https://reviews.llvm.org/D119296 > > > > This RFC series replaces the current arm64 CFI implementation with > > KCFI and adds support for x86_64. > > I think the "RFC" prefix for this series can be dropped. :) > > It looks to me like all of Peter's concerns have been addressed. I'd say > let's get the Clang side landed, and once that's done, land this via x86 > -tip? > > Peter and Will does this sound right to you? It touches arm64, so if > -tip isn't okay, I could take it in one of my trees? The arm64 bits look fine to me. Please just check if it conflicts horribly with -next so that we have a chance to figure out a shared branch if necessary. Will