From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 255E1C4332F for ; Fri, 4 Nov 2022 18:25:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231868AbiKDSZb (ORCPT ); Fri, 4 Nov 2022 14:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230333AbiKDSZ2 (ORCPT ); Fri, 4 Nov 2022 14:25:28 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A328E57 for ; Fri, 4 Nov 2022 11:25:27 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id i3so5192991pfc.11 for ; Fri, 04 Nov 2022 11:25:27 -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=N+zCgb1/SzDeDjC+vBm0YAYeuRy8cLDQigNzNk9ARjk=; b=XybAPYJttcijaPr/nAJsmDLP3UTm9pg2RY/hUVR216pKXnvZsPs8UblVlXw6iv++Wt twSGPXjkJAmuQtRG59/Rb3MQdTXwOdvfJFdXWoWSPRUhJ0dUkHTYuSKXHAztXcVNyoPY RLrhYvQGFb6M3h29pihNmOQha+MZz9F7UBL2c= 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=N+zCgb1/SzDeDjC+vBm0YAYeuRy8cLDQigNzNk9ARjk=; b=AcXhYvgsW9qkhF/OqSd8if4HYD9nrQAbYUtXZ2v2Ipi56EngnFAoYspIJ00VN1SCCL we4YHRkX1RAVGrtek+/p/1ucn3neD74DngrSrJ7R1JH/v41GJh9iwm+kYvKcOCbrpTXq w1uor8mhHzDjplU0EjQvcXoMQKe7kVRRwA7/AGwPOY/8/rAsi7Kz0ajf0vJmHuSfmES0 TuOlj9qYoPefX7AIhwLbPyBJ8jMnnJUhzirDVvRGIViM3cqIiQszqz3PPSnL6zoC1Fmu tXBZS8s6UR4Bz1xcjIq/WWp/fAADV0CUvWE+PQNLC74I0QqgzmydQkyExtl9s8V9tnJ+ KZwg== X-Gm-Message-State: ACrzQf30ybec/5jX8GEjjOkeRCl+m+64dxiTfSG1iTFUNT0e1mT7789+ LKVUCzSnFAoK3L8uPL6O+Q+scw== X-Google-Smtp-Source: AMsMyM5X/Shx4cgtu5hc6fwml5LMImDqhjEcMMKKGnvGAIdHWWZYV748v+nJVyT5k+iiPjXS5Y64nQ== X-Received: by 2002:a63:211d:0:b0:44e:f294:8440 with SMTP id h29-20020a63211d000000b0044ef2948440mr31050826pgh.103.1667586326820; Fri, 04 Nov 2022 11:25:26 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id y11-20020a17090a784b00b00217090ece49sm49088pjl.31.2022.11.04.11.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 11:25:26 -0700 (PDT) Date: Fri, 4 Nov 2022 11:25:25 -0700 From: Kees Cook To: Evan Green Cc: linux-kernel@vger.kernel.org, corbet@lwn.net, linux-pm@vger.kernel.org, rjw@rjwysocki.net, gwendal@chromium.org, apronin@chromium.org, Pavel Machek , Matthew Garrett , linux-integrity@vger.kernel.org, jejb@linux.ibm.com, zohar@linux.ibm.com, dlunev@google.com, Eric Biggers , Ben Boeckel , jarkko@kernel.org, Jason Gunthorpe , Peter Huewe Subject: Re: [PATCH v4 02/11] tpm: Export and rename tpm2_find_and_validate_cc() Message-ID: <202211041125.6DA20EB25@keescook> References: <20221103180120.752659-1-evgreen@chromium.org> <20221103105558.v4.2.I7bbedcf5efd3f1c72c32d6002faed086c5ed31c7@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221103105558.v4.2.I7bbedcf5efd3f1c72c32d6002faed086c5ed31c7@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org On Thu, Nov 03, 2022 at 11:01:10AM -0700, Evan Green wrote: > Export tpm_find_and_validate_cc() since it will be needed by an upcoming > change allowing access to certain PCRs to be restricted to the kernel. > In order to export it consistently, and because it's a tpm2-only > function, rename it to tpm2_find_and_validate_cc(). > > Signed-off-by: Evan Green Reviewed-by: Kees Cook -- Kees Cook