Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3462883rwb; Mon, 3 Oct 2022 15:44:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5OW2ZtSMahZYRfg9YONkMmr8VUDpAe4eR55lgbUWPOmQ8Au0/dMsww1gzFOcXO3352NFbM X-Received: by 2002:a17:90b:3b41:b0:202:ec53:edfa with SMTP id ot1-20020a17090b3b4100b00202ec53edfamr14127761pjb.136.1664837093583; Mon, 03 Oct 2022 15:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664837093; cv=none; d=google.com; s=arc-20160816; b=wP3EnXlJJEriXGRqsMrVpKZj62NjrA92XhYSiFir6hWyNPQyfKCMg9I1a1IfxoXZWX NdyNOjlAH3vsD9AwPJQ0sNO+eAwTTFi7I+TWkXj3GqkuSs8pXitASyHjvLImQQL5Aozd KmZ72juAmgU5cIh4s/7eN6NkxOPbeLhcZNqQHVkJAjQj1FSfH9xUp1i+DRDrNT5Yz4vv Y9KrrHIz07yq5wB2IqM6v5uKq2T4HjUmgQPmr6mITew7B2n/NkA7uFygoMx+M7mX3BxT QBuyc956nq9YV1q54R1t+1Qm2caICYuqqpn0OWIeHUmf8dCLEzmvN1WoaUKigXFpdk6u Ygiw== 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=0AA5mVx1sjanEJNpz1kP1A24AwPL5AGSN+ESikM8G4M=; b=w7wJDNgM1szKCkB73JcO5ZbQABAP7cgo7M7dWP7JrMFt88EvPhPIv2UxKHo14s7/yp USlCVRoeRIRNFh3QhXTdFpyvxNNyDd0pkHk1NctUhQiOxMJhWhWrkXUM10wMCQ1vbadw 4HunelPV0MPgsUpqY0T2/6SB1H0XZucJHozeQMTjI/PF1ZMwvW2jG5uHzvECg9vQaMFn PpfO4EdLa4gmUosConBYfu3rRIOAiwNBnDL0Kw041vJU1NUC14xjIcg/1d3kHYBh106C 6Pp2rKirzib7FdGXXkVpTP4LZwKPn8WkNwp91VysBQeKJWytha6jLksQ6zmFWhk1Ms4u EIgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VA2wkSxh; 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 u184-20020a6385c1000000b0044e74d0e841si4319334pgd.201.2022.10.03.15.44.41; Mon, 03 Oct 2022 15:44:53 -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=VA2wkSxh; 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 S229509AbiJCWmB (ORCPT + 99 others); Mon, 3 Oct 2022 18:42:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbiJCWlo (ORCPT ); Mon, 3 Oct 2022 18:41:44 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAC831A834 for ; Mon, 3 Oct 2022 15:41:42 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id q9so10885450pgq.8 for ; Mon, 03 Oct 2022 15:41:42 -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; bh=0AA5mVx1sjanEJNpz1kP1A24AwPL5AGSN+ESikM8G4M=; b=VA2wkSxhEFL+eKy/lIFXjIKz1DzSfgSEefJ5rtjsj1q3frLFZQ6mzW1Ed9JI45s1Et XmjWZkilsyMHSNjclxEoFDGnZTfYZDl+r9V2QIu6bDOLlLa4Kuu+OuF8h52H5ga/S4EA 6TZdBYRGEkRcIyvWs1l2snBK2VDH6Lsko7fGI= 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; bh=0AA5mVx1sjanEJNpz1kP1A24AwPL5AGSN+ESikM8G4M=; b=kf8X0OSzxKsrCQyaLpAhJnt2I5eYaox7Qrn2qlv7FHVDLCBcdDms5BojYX1IVwaUeN WQKtMNGel1rLJEYk2wZ6ef+hd30Z8ZD7aGbpVQG1SNvGsdu6gY57XPJ+KCBja6wZApZ+ wjkBf9snpBRDA/GqA9G5QfTHyyXPf4rilMccrNVAZLKo1cr77POs4mw7sxccJB+E8F3n 9zo/hfAXBrYr0IPtSCU3kP5OmAePxZRkOttLV076pyoBnqr/7hObpAl92PGI/Wdpny/H KvB3DIzvrYq7Lb2sdnE5rI2bLzyzehdI6KXWkzBOR/tE3pnJ4rmDxw8/wnTwggvOcdN5 I8fQ== X-Gm-Message-State: ACrzQf3xQ/NjM74buEefZWnpCWKkqa91tvQHFiK5fuOptMJ8BVt7zntp Ha/iqowif9rcXYplPTjJjrvUJA== X-Received: by 2002:a63:1f5f:0:b0:440:5310:4b0e with SMTP id q31-20020a631f5f000000b0044053104b0emr19679572pgm.293.1664836902512; Mon, 03 Oct 2022 15:41:42 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id b13-20020a170902650d00b0017d665117dasm5499305plk.150.2022.10.03.15.41.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 15:41:41 -0700 (PDT) Date: Mon, 3 Oct 2022 15:41:41 -0700 From: Kees Cook To: Rick Edgecombe Cc: x86@kernel.org, "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H . J . Lu" , Jann Horn , Jonathan Corbet , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V . Shankar" , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, John Allen , kcc@google.com, eranian@google.com, rppt@kernel.org, jamorris@linux.microsoft.com, dethoma@microsoft.com Subject: Re: [PATCH v2 31/39] x86/cet/shstk: Wire in CET interface Message-ID: <202210031539.CD26B37269@keescook> References: <20220929222936.14584-1-rick.p.edgecombe@intel.com> <20220929222936.14584-32-rick.p.edgecombe@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220929222936.14584-32-rick.p.edgecombe@intel.com> 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 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, Sep 29, 2022 at 03:29:28PM -0700, Rick Edgecombe wrote: > The kernel now has the main CET functionality to support applications. > Wire in the WRSS and shadow stack enable/disable functions into the > existing CET API skeleton. > > Signed-off-by: Rick Edgecombe Reviewed-by: Kees Cook -- Kees Cook