Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp561008rwi; Tue, 18 Oct 2022 23:05:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5FbabDLB8zd0ziooruXiaVpbWcM0VrXGWKoZxa4L+ycsvFReUv+BcCGOzKXYSDVQ4zjUqc X-Received: by 2002:a62:6544:0:b0:561:7446:fdf4 with SMTP id z65-20020a626544000000b005617446fdf4mr7111392pfb.41.1666159512356; Tue, 18 Oct 2022 23:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666159512; cv=none; d=google.com; s=arc-20160816; b=WEgKOCgq5k6YVqpAbq/N1FnYH3kaaV7FVGwsbwM4YXibKS76M8EsDW2Slr/xjHf4UQ U1rUQKdDJJgMjPoC0L6f9GohOxDljpnwHFFw353HDfLeJk/xwCCAIix+1AosRoIn3J4O 3xRf3rcKfi/nzbNxkuh1bvlRaoR5F3UeEQqENL1QJ4Ww807Bsa4F/7FV+zk0GCZ4S5Ve levfyz+POnKzSkVnaH9cRoSoTyVgbctmQgC7kgaxrm6bfIKk/0bqTyk0IU0CLwtymhl6 C86aJWNneOyCiqkm0DjyI69p3y7XuW7010DhVFvUl5Sb0P+nJOOWjUoV+4lohMdAELGM DDKA== 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=kocDQ41ihAmuitVzJ8xQdE5x90nQK2sICAXeOnZPLSQ=; b=wC7EqnBcWLFzxvTSWAliyHdXCaC2fajEvbGkCkwrPy/biNw1pEyP7q6r70m/toD7Rb I2C67gHLbdtavgs6peNALYhHQysgcKT32Wqf8yc3fYRfGpEPNpuUIY/n3Oe681R8YcBx 813adi6dqYCoNhtb19RWgTmsz9Ow2NhBEJjptxipNT0vtmRJywrZptSk2IfsJIbolzaT rKd+rDx4TuZ5M5X5qhWkCjrEfwynhLvJ7ECMFjUEFccayyG7CUJwuEEHO68BtIX1GubQ xa+Elih6gnUF80WV6D6VGmJEn1/e/yfOl/CZ1dRK7a7idGJlGyph0PuV87OjUVmjUy0w P5BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RmEWoRp0; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a17090a6ac300b0020a84ae69b1si22098610pjm.71.2022.10.18.23.04.59; Tue, 18 Oct 2022 23:05:12 -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=@chromium.org header.s=google header.b=RmEWoRp0; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229775AbiJSFWU (ORCPT + 99 others); Wed, 19 Oct 2022 01:22:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiJSFWS (ORCPT ); Wed, 19 Oct 2022 01:22:18 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2AE066A48 for ; Tue, 18 Oct 2022 22:22:17 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id f193so15301910pgc.0 for ; Tue, 18 Oct 2022 22:22:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=kocDQ41ihAmuitVzJ8xQdE5x90nQK2sICAXeOnZPLSQ=; b=RmEWoRp0+cDaWIbo/cphJykhD1S6AqS84Ma7HrzQ0odFa8sWCzNhbYHoMBRzAieW44 CJ0Y/TgQQKvTrx6hFj5shpn6frYhXmAmteT11Q3kooPAfAO6jlTBkuUhmAIU+vFIpR8J QFGhYYKvWyEfcFettM3Dho2p+n35NQs+lBciA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kocDQ41ihAmuitVzJ8xQdE5x90nQK2sICAXeOnZPLSQ=; b=M5Bqx5ABBHFmW2iNx3lD2oQJ8pTlaAJ5MUZP5R3cqH9AUvmX17sY/AeaXfgtLDV+r9 Mjwdj4SAz8Z7DVYf0sXFqJ/AojQJm40p+j0Mf+5Giyy09zXGnI6TvtesOqhcXZatnypK Rwr6XwAz5jyetLP6/RYaUU1KurJKeo/+29Y+rSllReAiYneH6JSe3LTMmPvm/EaUdVpU qkF+693oGad45DqQdTMMs8i9kYnXjkvtA2nCrmSZbswm3+i5yo6Ly+I9iVhSUe03P1Js a10TUkz4VK08TpT65Dcm5ZOfrfX2gqcJdo0ZGWc0YWdsco+X86BDAsvxRs56IDuUKMzr I77A== X-Gm-Message-State: ACrzQf0/1rxeHGgwpWhZo0+RPEI8p9YL2jI9WtSDpVRvEbuKz0vWqRNX C8KaduamYHr9e19MDvVvQYaQqg== X-Received: by 2002:a63:1e21:0:b0:43a:b17f:cd13 with SMTP id e33-20020a631e21000000b0043ab17fcd13mr5737681pge.553.1666156937403; Tue, 18 Oct 2022 22:22:17 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id qe2-20020a17090b4f8200b001fde655225fsm1104524pjb.2.2022.10.18.22.22.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 22:22:16 -0700 (PDT) Date: Tue, 18 Oct 2022 22:22:15 -0700 From: Kees Cook To: Josh Poimboeuf Cc: Peter Zijlstra , 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: <202210182220.B6247EF@keescook> 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=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 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? I think it's a fine default. Given the behavioral differences, though, I'd like to make it configurable. > If we're going to give the user choices then my previous rant about > documentation still applies: > > https://lkml.kernel.org/lkml/20220503220244.vyz5flk3gg3y6rbw@treble Totally agreed. I would be happy to pen something if no one else is interested. -- Kees Cook