Message ID | 20231121211717.31681-5-jarkko@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp920654vqb; Tue, 21 Nov 2023 13:18:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhD29bT6HM0q2afAVR8YOkdjLGjTPF8XWldf6GfK2eq+SIlFIVIb7IEOAes0/rtFVR6hhl X-Received: by 2002:a05:6808:1309:b0:3b6:c551:9c8d with SMTP id y9-20020a056808130900b003b6c5519c8dmr645219oiv.27.1700601493767; Tue, 21 Nov 2023 13:18:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700601493; cv=none; d=google.com; s=arc-20160816; b=ptmC6wjMtqWP+zmg3sExLw/AA8ksz1g/MJJ03EBcfsmOwsqhe0EXLYnG6issLJuvo7 F1G+M/goNrQRLi1bpqVcxRCs2hg++nRYM4QOzDVfvqSa1UAX8+LIR2IUEJZBvLAnubuW 9ysL5/MESRazU+O90H4sULvK7wTIUqNAGtncOOOk/6b6ciqADe0YCnyavJVTyPjzcWMo WJHCNjhmxFWBFpd0LiVX1EodOU92abmXeEgpmmWxKnOS6t/OX2eWqYZQpLl3XChIlBQ9 AgOTtzeVuuXFeJciHC98gg8U+kYp3YmfXSIg4CCGwU91aDbY5ddP0plMJTuOv/CSq/Pz qZOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Gt8fgGgjlCev4guWPGlFa3Uz8iLkYYUzDHU8Mt4ig7k=; fh=jG+sFESJQJDE1Wcf9yLzJ2BgzLPnNsnyl0eym9Se5T0=; b=kkuolcS9469T/PtNhBp0wduci/aTtfZV4fw7GaYe/VVCLXdX1X+Dv4gxkkuZsyB11t 8U/8UetEcdDHEucbTYnlUK1lQhfP7RvoQKrUZBl2bUnsNc3JUdEoIhLeXVgb3gRN+qhB NULAdrnGu2Pw+qSqcxZHOWYWPiE26vX14DZhHfUuSLcZph43LHpMD37c8BQgjAwbFKSn vjel85f0aZ7Q84enDuObX002rhShn8/D5ByfTQ+8OQHxuOLNfDh9FVIJd4OxARMICXjd nfRdnEgPIqgfZApOfnjA/g5abJ0/hb9P/UXdGoGA05jS37Gz3FxFLlBNxUV3N4MCQkBt EdqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GgdOdZt+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bj13-20020a056a02018d00b0057795cb4f16si12003699pgb.684.2023.11.21.13.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 13:18:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GgdOdZt+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B83ED811F932; Tue, 21 Nov 2023 13:17:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234482AbjKUVRr (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Tue, 21 Nov 2023 16:17:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234474AbjKUVRl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Nov 2023 16:17:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 703DAD6E for <linux-kernel@vger.kernel.org>; Tue, 21 Nov 2023 13:17:37 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3980BC433C8; Tue, 21 Nov 2023 21:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700601456; bh=uRT/e1IV/Y1HzSN6eQYcs9k1Bz81L9apwgEI2XgWaq4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GgdOdZt+Y9rMfJnlEv9QFxcC0DKqIUvHQWdzlNLVbvSmkSp3EkooBPT6i/A06uCZ2 joc8x38odsjBA8JbBWrjpz8lUPetXbG2/yOJUn4D586vSWLkNKYi3dG1upp8dVJwBs E9Je8uhn5Vhe3Y7ZhZhRwBUHhdE0SrTtUs3JelW+KV/pqyJJij3Lul2CvXEKqScoJO 8i3OMfxtjMQVAOVfFhrpttvxgOwvvyviEQwQTRxidETv763qv8zJjCwIT4EXQUGh2U ZRUpw6MEW+NdqAdiCBC869WgdByzsFm6H0Ca/I4Ku9aY087vylYd2qACnZR8obuB1Y CWnCvfozAmf7w== From: Jarkko Sakkinen <jarkko@kernel.org> To: linux-integrity@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jarkko Sakkinen <jarkko@kernel.org>, James Bottomley <James.Bottomley@HansenPartnership.com>, William Roberts <bill.c.roberts@gmail.com>, Stefan Berger <stefanb@linux.ibm.com>, David Howells <dhowells@redhat.com>, Jason Gunthorpe <jgg@ziepe.ca>, Mimi Zohar <zohar@linux.ibm.com>, Mario Limonciello <mario.limonciello@amd.com>, Jerry Snitselaar <jsnitsel@redhat.com>, Peter Huewe <peterhuewe@gmx.de>, James Bottomley <jejb@linux.ibm.com>, Paul Moore <paul@paul-moore.com>, James Morris <jmorris@namei.org>, "Serge E. Hallyn" <serge@hallyn.com>, Julien Gomes <julien@arista.com> Subject: [PATCH v4 4/8] tpm: Update &tpm_buf documentation Date: Tue, 21 Nov 2023 23:17:13 +0200 Message-ID: <20231121211717.31681-5-jarkko@kernel.org> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231121211717.31681-1-jarkko@kernel.org> References: <20231121211717.31681-1-jarkko@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 13:17:50 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783209911985248960 X-GMAIL-MSGID: 1783209911985248960 |
Series |
Extend struct tpm_buf to support sized buffers (TPM2B)
|
|
Commit Message
Jarkko Sakkinen
Nov. 21, 2023, 9:17 p.m. UTC
Remove deprecated portions and document the enum value.
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
---
v1 [2023-11-21]: A new patch.
---
include/linux/tpm.h | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/include/linux/tpm.h b/include/linux/tpm.h index bb0e8718a432..0a8c1351adc2 100644 --- a/include/linux/tpm.h +++ b/include/linux/tpm.h @@ -297,15 +297,14 @@ struct tpm_header { }; } __packed; -/* A string buffer type for constructing TPM commands. This is based on the - * ideas of string buffer code in security/keys/trusted.h but is heap based - * in order to keep the stack usage minimal. - */ - enum tpm_buf_flags { + /* the capacity exceeded: */ TPM_BUF_OVERFLOW = BIT(0), }; +/* + * A string buffer type for constructing TPM commands. + */ struct tpm_buf { unsigned int flags; u8 *data;