Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3819110imw; Mon, 18 Jul 2022 15:16:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1smHgrkaaTI9J1z3e3QTqgqIKNosEfqqoKeIJrp8lLpCR7a7kxECC49cAOoGWMF0QjqryHo X-Received: by 2002:a05:6402:484:b0:43b:6e02:71af with SMTP id k4-20020a056402048400b0043b6e0271afmr6142294edv.176.1658182586154; Mon, 18 Jul 2022 15:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658182586; cv=none; d=google.com; s=arc-20160816; b=I0zOnv3I/Du0RIAkwNiac1hV7n0/htQqmriGqJnFJBLn9j9mWf9RjyUccRWbB3FlaT QY0h0TGYzFUbCPrN7Y9nIR83GDdaJl75MhuOeig7qLUR2FjY6ORp0XxgLtwMvPrGSOY+ +FLQfgJelNK3U7SysGKTE5Fj1xcOqE+GVStNMftqz4IPf3GOBwEmSoJcYHwnU4SyX+oz fcRTV7sxXPluGfHf8r5yzJX80naWff8DOOlCRjp3vXGW9M76cVJ1auegvreDbWMa+6v5 ufokgmflDLL87RWusqsrjvNQSJWiAskrDyz3ofaTa7mDKP8lNsYlfk9JHqO6CpRn34dK ERoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gB0Dyj6KD1xR0J9edWlW2XlEQizibh7QqbUWvK+mgdc=; b=CQaFMeF713lKldoraSv7eZq8U4kED9iPpnhvO/ADFlvp3/G9vwFU5QceD/nJfvJlDA zV28B6hx6plXKiypaaUK5ng5YlcCLDW6Ea4iTSyn+ljzAFVgg5ouvV4G+NK6d12I7AeX 9uXmz3x7UILRQvG8uQUDQva59I31Dnh0SGtzM6oKWLCJC4vsq0Sv/54aRA4P6lFh9W3j 6YbnWhs921cRgN+Ne68hNnw7DwQYUV5VOj6ERrQ/avUzTrax+TlDgo12E9nqzc6kbLJh mO0kwzAcqVtiLsec7ZZJN42TH5K49Junh4SH0vlW6lWMfCdVPAspLN+huNRdk83+E7ws kiYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=eObLTaTy; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z17-20020a05640240d100b004359ebb62d7si632134edb.1.2022.07.18.15.16.00; Mon, 18 Jul 2022 15:16:26 -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=@infradead.org header.s=casper.20170209 header.b=eObLTaTy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236157AbiGRVqp (ORCPT + 99 others); Mon, 18 Jul 2022 17:46:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233858AbiGRVqn (ORCPT ); Mon, 18 Jul 2022 17:46:43 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DF6B2125D; Mon, 18 Jul 2022 14:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=gB0Dyj6KD1xR0J9edWlW2XlEQizibh7QqbUWvK+mgdc=; b=eObLTaTy/3Us0YDbQ5gnsRcwcZ DuDFu+DbE2G2jh6j/NlBzj89vGk9Ot9DsAGhGZXwZxAfFuM3xbPLMzHXqe0n3NiJXDAh+zpSyesu0 /yIaXYGLlRJLO48Nr+n3Vnlmc79kCqNiUDMJ6/kq4RR2yDSpknB2nX1fT9NxNE9ekd2lgagl20bVH vkOsh1WPu1uZkxgRXHmhJvTsImpDTfQ4JOzW9BxDlhdY3CASpc+BG1b0r1rdMS7KNI8Towfzug/bx d2SFavJYeWYJIZcPdOxkUhWJ/ovM6TuBKEo2rV1Yu1uzV7fjxk6NsX9Nh0koq5YwNtI5MIjCH5lvL nkIsd8tg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDYZN-00D3tf-Aq; Mon, 18 Jul 2022 21:46:25 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id AC3489802A7; Mon, 18 Jul 2022 23:46:24 +0200 (CEST) Date: Mon, 18 Jul 2022 23:46:24 +0200 From: Peter Zijlstra To: Kees Cook Cc: Sami Tolvanen , linux-kernel@vger.kernel.org, Josh Poimboeuf , x86@kernel.org, Catalin Marinas , Will Deacon , 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: 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> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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? Sorry, I was a bit pre-occupied with this retbleed crud, I'll try and have a look at things shortly.