Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11159808rwd; Thu, 22 Jun 2023 09:25:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kuOcGcUErWDkYj9ZDrDwW7W7NXONYITaZezRcsZdaphE43gQ5Prm/F1EiOzj6fesxcm98 X-Received: by 2002:a17:903:244e:b0:1b6:695f:1dbf with SMTP id l14-20020a170903244e00b001b6695f1dbfmr10263406pls.61.1687451157125; Thu, 22 Jun 2023 09:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687451157; cv=none; d=google.com; s=arc-20160816; b=ytBKgL3aVW8X/6aIBLNgyEqo06qV3MLlTL3xTHWcGbXZvJU8KfpFCQ8wiUcX6rZYQc rc+Fx9Qt1gdMve7u8SDx4N4nT1jj+hXxJTPAJhpThsFE6RrTpMHeclIFe/zhnYW+TcYE Oks6LFrdNKgYjphnje4D95f6YsSAzL3Co49wN8+hdEWtAcw+r28nxmCyFHkq3HzUdObn DugckgqeX52jKA7yF+EL288XaMD2t0UVTF2jzd7a/nBoQ7wq/1AkHnXMKSCZ/95WcKA+ j0yWc7fpz3e9wOwLWdnQJan8YUQwPDCbXZjrd8vneJoAUAuMvMqDddx+tCrL60hkFBfv cUEw== 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=i0FbDlfDxURlDXYEi38TcdTGclJW1LEzUZRr4Kw0XLs=; b=yOnhEFNBb8yl8SjFzIsuIzO+p3GkYJUWkFZc0dXx95rJAgLrDjsj1ce1WI6ypVRS/d 28+/VuYXxFw38O42MXULeaCnmotSXr4tBfJQXRjTS0k2aedtE2+r+fMAQlYXCP8bQtso W+xByyhsDqHfsojjPRGRUyB8r8mSJtH5joSUYBwYwn5X7iuwYh6epkicNEJXzNPdIjiZ 4mhJyBp0QweZSh82Fsyl3ryC9xZb/IqTPY4eaYCl8EEqnp8/UEBTlSaU6WK8UKhsj04z AZ8j1yMhBfmYz5Vr3EPssI2FIgt2hfAdBAOXe0YW69emJ2Xhhg7WjmfrA1XIvyI3QcCc r4+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Np1jwQwn; 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 u10-20020a17090341ca00b001b6905876b0si3557931ple.48.2023.06.22.09.25.44; Thu, 22 Jun 2023 09:25:57 -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=Np1jwQwn; 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 S229986AbjFVQOW (ORCPT + 99 others); Thu, 22 Jun 2023 12:14:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjFVQOU (ORCPT ); Thu, 22 Jun 2023 12:14:20 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF3B8199E for ; Thu, 22 Jun 2023 09:14:19 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1b549e81cecso26572985ad.0 for ; Thu, 22 Jun 2023 09:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687450459; x=1690042459; 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=i0FbDlfDxURlDXYEi38TcdTGclJW1LEzUZRr4Kw0XLs=; b=Np1jwQwnFpdlbUFnPpVBOrewXW9ExPYci8ShZZuNUoVBC34MoYoQUfl6IgqkDQsROF fuIWNovw4cWxSRsatLQDzkvKDjAbJ955QSnMG8OguGnASNGAsMHTE6/ZHKcFoJ6OKsGL 246YVXImIzEFM1e2snp3uvUAqWpk5yS3aVSPA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687450459; x=1690042459; 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=i0FbDlfDxURlDXYEi38TcdTGclJW1LEzUZRr4Kw0XLs=; b=LAkiGHpQ9jl9nkkyxR+YUz1golVjMOQ6Y5c4rAT7kAPqq9s4Zfh52TNlh4CEoy7TTs pBHD1G5O1cMSY1Oha5njpmkP4tMLEgjFAKdlhLH+o4b6c/+iiyNf8aA1nMIz2OHV2yyt uSKsr8ucNOR0GM0cHvWK98U2cijSGjkLyFUP3vLksdL8whM0DGNAujs27viXy+6pZbyv z7sSSwkuzyMPexRlw7De0ZOQRcvL/qf0HQR9tFaEqp5tOa6IA5e1ZT/DaQm1t95kynqj S0/CW+9F5V90tqO/q9D3+nfG5Hxavw2bXF/fpHAbNbgyjGxek/PMuuMXS/t9yg3qWbiT dkyA== X-Gm-Message-State: AC+VfDxDzazZ298ExG4aDuHo2Rf9woGL92Ocsbk1UDD5QssqbmPF/vYF MElclDfdWgpVhlaZvNy/otyZDw== X-Received: by 2002:a17:903:18e:b0:1ae:4c3b:bb0b with SMTP id z14-20020a170903018e00b001ae4c3bbb0bmr12964602plg.5.1687450459311; Thu, 22 Jun 2023 09:14:19 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id w1-20020a170902e88100b001b55aab3301sm5588503plg.130.2023.06.22.09.14.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 09:14:18 -0700 (PDT) Date: Thu, 22 Jun 2023 09:14:17 -0700 From: Kees Cook To: Peter Zijlstra Cc: x86@kernel.org, alyssa.milburn@linux.intel.com, linux-kernel@vger.kernel.org, samitolvanen@google.com, jpoimboe@kernel.org, joao@overdrivepizza.com, brgerst@gmail.com Subject: Re: [PATCH v2 0/6] x86/cfi: Fix FineIBT Message-ID: <202306220913.2482F76F@keescook> References: <20230622144218.860926475@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230622144218.860926475@infradead.org> X-Spam-Status: No, score=-2.1 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,T_SCC_BODY_TEXT_LINE 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 Thu, Jun 22, 2023 at 04:42:18PM +0200, Peter Zijlstra wrote: > Alyssa reported a FineIBT issue (patch 6) which led to the discovery of > a kCFI issue (patch 5) and a bunch of cleanups and enhancements (the > rest). > > Backports can probably suffice with just the last two. > > Much thanks to Brian for the better ret_from_fork() cleanup. > > Tested using llvm-16 on an Alderlake with both FineIBT and kCFI. Thanks! This looks really nice. For the series: Reviewed-by: Kees Cook -- Kees Cook