Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1011029rwi; Wed, 19 Oct 2022 05:48:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4OFBrMRAWuGTmsqLH6meOJ9xsdbkRF/F+HrPguRVU8CB2ro3JpxtGNOstzs/J0t2t+lh31 X-Received: by 2002:a62:4c6:0:b0:55f:c739:51e0 with SMTP id 189-20020a6204c6000000b0055fc73951e0mr8354925pfe.49.1666183721851; Wed, 19 Oct 2022 05:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666183721; cv=none; d=google.com; s=arc-20160816; b=VemzzyoMtdv7r8VX0GfW9xUEje9HlXSzn+hQwV55X1FE8/+8waOlek+tEtV2Pjs1Fh 0mWXJgBXHEW4oIgYg5CdwRHmiJB1/jxT8oCGphduObMydcT1EM3wDwrteQ9amcC2l11s 5JudVxElCbP8rm8ugyCHZQ2GhEwNVJOrBYOMQNTA1917hn0GqhffdNLcvLzicm5G5axN es0IyHmbwOqBfJPk35Nb76YhHUHHpTK7q8oh/qmG9JePGhPIEv5XyakX23dyoiyL1nfX l1KIpzWGIRvU0Z2V4oiySL6YnxkS956nsgc7+4G20kOUbc7Mpw0YNhlMwlrk973kIBGd 5Jmg== 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=NHrwrYopQeC4Jky1ozZ0NBYbtG5x6jjkISZclLD6Oxc=; b=OkL53Hr2fpqufPAirZ7SR0m0Lo4Y/dSf2yMrJmTQ/35FCevqIem/PB5UUxzaVnAARl r/NDTn49Figj15KveTLNSEt0faXqacVrTuuH4j95g6mEKyO7O4VhlIaxxyvUODn9NN+V 3jIsQyGj8oSB1DYRLeqTq9BYyBlErJ6e/wXfnYWY2hFGd4pQmuDRUE4+nDvN7vKYhKaB sTAlRF+txtIPd4sqJzN43xyLsUY5SUvJhPreqUR5AUgh8M5Bl8QicQUYuWq6bKu6Ea/Y V/XdifUcoFL7mzkcUsWJ4dThgPU6V2UtO/GFG4uoaisAc8t5Voqv5qtAZRKuOa2BtZHV RZVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=nn1wiY5f; 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 q2-20020a170902788200b0017840d9d579si15297237pll.67.2022.10.19.05.48.29; Wed, 19 Oct 2022 05:48:41 -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=desiato.20200630 header.b=nn1wiY5f; 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 S232507AbiJSMDi (ORCPT + 99 others); Wed, 19 Oct 2022 08:03:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232068AbiJSMDF (ORCPT ); Wed, 19 Oct 2022 08:03:05 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D2DE1A385 for ; Wed, 19 Oct 2022 04:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=NHrwrYopQeC4Jky1ozZ0NBYbtG5x6jjkISZclLD6Oxc=; b=nn1wiY5f0WQds8X1ObdZ3rUevL 6kCMi/caShFIqMo5KlgyC/JZRNJ7uZsGIYV1moLI1v43XtcLHnQJ/Ng271nVYGGr7m7gdZdo8TWvV WtMbAQIoDN0hXnF8QAba7wHtZppovWJE8IDOJ4yDjAbFGUeZcDbuw0tpEY/qSv3+KfiGq1f1n82W9 irFAzCs2plng+J0u8Z7QIXHhY4MXvNGx5rfu5i5HvEL9xAxqBjUZTmb3fyMrPadc4m7n8STAnWMFg QHL4G1yNuOp8syayGywyNaAOFhIgb/ViXD/BwYy6Ipgg2Y2Qn7ARYLvXcDB73Y2xqy7gEJrl9gtW8 qzDvan8w==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1ol7Os-004jn6-LL; Wed, 19 Oct 2022 11:38:18 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B62CB300110; Wed, 19 Oct 2022 13:38:17 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 66D642C229361; Wed, 19 Oct 2022 13:38:17 +0200 (CEST) Date: Wed, 19 Oct 2022 13:38:17 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: Kees Cook , x86@kernel.org, Sami Tolvanen , Joao Moreira , linux-kernel@vger.kernel.org, Mark Rutland , Josh Poimboeuf Subject: Re: [PATCH] x86/ibt: Implement FineIBT Message-ID: References: <202210181020.79AF7F7@keescook> <20221018233148.lgoiis2tws7caw3l@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221018233148.lgoiis2tws7caw3l@treble> 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 Tue, Oct 18, 2022 at 04:31:48PM -0700, Josh Poimboeuf wrote: > Is there a reason not to default to FineIBT if the hardware supports it? Not really; and that's the default implemented here. Kees seems to think the kCFI thing is a little more resillient against attacks where the attacker can write code -- but IMO that's a bit of a lost cause. Being able to run kCFI on IBT hardware is useful for development/debugging purposes though.