Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2737629rdh; Sun, 26 Nov 2023 18:04:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHT82WXyGHgPwX/mfCaMsC5z+5uymYaCk9Z+qTYS4TE2NHtUQWTp9bdIOlqO5BXhrByMfZ X-Received: by 2002:a05:6808:1a19:b0:3b8:5ea4:11a8 with SMTP id bk25-20020a0568081a1900b003b85ea411a8mr7074041oib.9.1701050687319; Sun, 26 Nov 2023 18:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701050687; cv=none; d=google.com; s=arc-20160816; b=Y2N4n4ILJ9If29MrYrR5L+6oCgy8isswDZmAsyKCTDmyIRmwV644522uP+Uob2pq5g 2LTX5eo4ML2zAEqJwCTXieoyz0vbvpxQkin5X2cyeIv/eoncmbYnFlzF3OdxcCPnAmm8 2Yym7VxLvNqkECX9QgJJ4L1HGdoowCl8BX6xFY+yWbOX05D7rUBYcvSCnUPJ4FfyPATT 7c8RL0h+FW2bUWXWJO0xjqqRiRPU98DFl8n2bBaj4jpJM8xvHmb9nbjS8d37oUGIBNuE aqhhxwAJKsrKlxG7PmIGUub2QJOimzPLt0x0XD9FaIixWK/tjTXVNKOJobOK2lVDesY+ 1sCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=ZSTdkZZURbRM+Nxl0z+tOQNJUfxCm0iXKsDfdZd8K5Y=; fh=zKvPx97g+4VPQDgpntUiCThHzn7nb+D2a9L7sh5WxmI=; b=nDhdPW5KQSUyrtettn34/9QEOFfcO+ztKopvSdUd65xgWXCXjv8bpJ7ZXGV7r+EtPR 6UHENu9jvsOx8w+u+Ctdpy62PAqOvGT1s32EcjMYYuuTnw7oDBLMZaN32eX82WVD6gxv CXPyQ14w7py+ppvL0agwgj9dV/t6rHLsClF+KENglQ+k6tiexRGtaHjTjNOc813wgYb+ V6K38D2HZEokMF+s8HmM1oT1L/ieQjtZnB5xbg5cHP+U5DOT0bR41Q1AHlcOlXdGnjDY BU+W2nTG3X/rPD6kkW9pm+GKx49pNmUYG91lT3CLzwJ2oUxGn3aXYSGf89+zDEs8/lzP 6gtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=MTeZh8LJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h1-20020a63c001000000b005b96c2ab110si8594913pgg.131.2023.11.26.18.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 18:04:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=MTeZh8LJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D59248066674; Sun, 26 Nov 2023 18:04:45 -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 S229502AbjK0CCI (ORCPT + 99 others); Sun, 26 Nov 2023 21:02:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjK0CCH (ORCPT ); Sun, 26 Nov 2023 21:02:07 -0500 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8BFC11B for ; Sun, 26 Nov 2023 18:02:12 -0800 (PST) Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id CD3642C063F; Mon, 27 Nov 2023 15:02:07 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1701050527; bh=ZSTdkZZURbRM+Nxl0z+tOQNJUfxCm0iXKsDfdZd8K5Y=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=MTeZh8LJv9EFnRNkfggelqMf2ig+b7E451TMsF7+7Zxbt64nzCqd0HxVIdc1h941Y TPv3se9x41VUD++2l0A/5sXzunQNLJYaRYVPeYINM9SibHNis+jHo+GyHSoE8agHTH dC4TcQZoWXSC62jG5diFW8oIKOCfnjoTlfiwsNF+shzQsL72uqaVEsau2ArgxJzj4m bmS+SBLnyrm/ofxJzc2/m+QYNTRoqnFmg3sJPp5GzHNYLI6NSXbQ/4Yy9SVrWK8epz 5ho/B7qqQguUAd/Y1hnBGvdd/t3IslbCmSZwbVaxX28CHeIHr/8pHiT87ELvLXA7Me Xms6iNK2jze4A== Received: from svr-chch-ex2.atlnz.lc (Not Verified[2001:df5:b000:bc8::76]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Mon, 27 Nov 2023 15:02:07 +1300 Received: from svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8:f753:6de:11c0:a008) by svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8:f753:6de:11c0:a008) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 27 Nov 2023 15:02:07 +1300 Received: from svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567]) by svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567%15]) with mapi id 15.02.1118.040; Mon, 27 Nov 2023 15:02:07 +1300 From: Angga To: Stefan Berger , "peterhuewe@gmx.de" , "jarkko@kernel.org" , "jgg@ziepe.ca" CC: "linux-integrity@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] tpm: Start the tpm2 before running a self test. Thread-Topic: [PATCH] tpm: Start the tpm2 before running a self test. Thread-Index: AQHaHREnjIixcvoKIE+Z7DUtybpc5rCFbG2AgAcq9YA= Date: Mon, 27 Nov 2023 02:02:07 +0000 Message-ID: References: <20231122065528.1049819-1-hermin.anggawijaya@alliedtelesis.co.nz> <85154bfe-6bd5-440a-acc1-f01497d59af5@linux.ibm.com> In-Reply-To: <85154bfe-6bd5-440a-acc1-f01497d59af5@linux.ibm.com> Accept-Language: en-NZ, en-US Content-Language: en-NZ X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.32.1.11] Content-Type: text/plain; charset="utf-8" Content-ID: <73F3465A8AD98640885D983DE3D3DC45@atlnz.lc> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.3 cv=AZXP4EfG c=1 sm=1 tr=0 a=Xf/6aR1Nyvzi7BryhOrcLQ==:117 a=xqWC_Br6kY4A:10 a=oKJsc7D3gJEA:10 a=IkcTkHD0fZMA:10 a=BNY50KLci1gA:10 a=-PW-BjYxrnlZlFBXaDUA:9 a=QEXdDO2ut3YA:10 X-SEG-SpamProfiler-Score: 0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 26 Nov 2023 18:04:46 -0800 (PST) T24gMjMvMTEvMjAyMyAxOjM0IGFtLCBTdGVmYW4gQmVyZ2VyIHdyb3RlOg0KPg0KPg0KPiBPbiAx MS8yMi8yMyAwMTo1NSwgSGVybWluIEFuZ2dhd2lqYXlhIHdyb3RlOg0KPj4gQmVmb3JlIHNlbmRp bmcgYSBjb21tYW5kIHRvIGF0dGVtcHQgdGhlIHNlbGYgdGVzdCwgdGhlIFRQTQ0KPj4gbWF5IG5l ZWQgdG8gYmUgc3RhcnRlZCwgb3RoZXJ3aXNlIHRoZSBzZWxmIHRlc3QgcmV0dXJucw0KPj4gVFBN Ml9SQ19JTklUSUFMSVpFIHZhbHVlIGNhdXNpbmcgYSBsb2cgYXMgZm9sbG93czoNCj4+ICJ0cG0g dHBtMDogQSBUUE0gZXJyb3IgKDI1Nikgb2NjdXJyZWQgYXR0ZW1wdGluZyB0aGUgc2VsZiB0ZXN0 Ii4NCj4+DQo+PiBTaWduZWQtb2ZmLWJ5OiBIZXJtaW4gQW5nZ2F3aWpheWEgDQo+PiA8aGVybWlu LmFuZ2dhd2lqYXlhQGFsbGllZHRlbGVzaXMuY28ubno+DQo+PiAtLS0NCj4+IMKgIGRyaXZlcnMv Y2hhci90cG0vdHBtMi1jbWQuYyB8IDggKysrKy0tLS0NCj4+IMKgIDEgZmlsZSBjaGFuZ2VkLCA0 IGluc2VydG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