Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp773674rbb; Sun, 25 Feb 2024 03:23:47 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCUmFBcI6oEeJ8iQhLaYDxWCKRu3XRCk14p+SMQDnj+VlFUcNYVZdcpNkHYmRVKs4YbGFMyZKMeaxqyu4NkrdjwtNH5hAWSGc/S+kuhRuQ== X-Google-Smtp-Source: AGHT+IHFWhVHmifwqvl8ZDUj5eG7+hBqE9YC2gcOixEcKAKTvb8PQlW+xTku82mGrey3+CwgzTY8 X-Received: by 2002:aa7:d885:0:b0:565:e2ee:3079 with SMTP id u5-20020aa7d885000000b00565e2ee3079mr439139edq.15.1708860227329; Sun, 25 Feb 2024 03:23:47 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1708860227; cv=pass; d=google.com; s=arc-20160816; b=YxTFq/L75I147EqPleDh2BoDH6r5cQeS5jQJ5cDyesClH6MWc20zx2mKHObLiaO254 +ceBCjP1KIcW2Bl0nsHwzxx5L8IaHc9gkPuYi2DroVv1ULLqDVpx0s+qSpO8QUVcQCOh 27LAW8WuFbY3plehGqzQ9N7YV3e3f5OyvgQERT1OXDY3GPkWL/jHQVWTGA2Wj/JobcQh dJQPiJVM0+i3xxEVGlce5WaKJC9xiRbbeUgNotoBJrGG9vd/rYynUMzXZxHn6yxLhGut kndLyr2KffnN7oN9BIeP0mdk7ACUfB4SNdFzqEXS/qa98caKAlgefeoqgCY9eBXVUPXk eKUg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=wfGoqZDkKgvNv8khUbgxCQPjnWH1gdlTXy979s/5nUg=; fh=dXinPnf2Djqg3Wt/uje5dzIGXJxf346rgCVTDGh6O8w=; b=FLg0zgeoRzVSmSspyOYiDjLyoZ7eSOqd2n1KJJ7+wCIqLUnXf4vEts3LjsyMGTTMGV IkSkxolzV+FNDNPQc6IKx30Kk56T2EQfx7Xu+0P2drUDcy3HAxEDVT9HH16vomhVx2T8 Ly/bKPZ55GzPgf1dBPzvkOw3CXI/q7Djg0GxI4WU0a0LYgLn8cJ7M9WYsqEaj/8a/ha7 eHjxUVDhqYG1PEy4FjclfVwxRoSa8BHhNbBzN39tpJL6DBuhdECnQUdA8SxJF95olt1Y jcMhSuA+UcVzIaDPmnAAdX+60AZjuca9MNpPqoO+Gy+cgqViSX9z4k/ScZlXhn2iRQtx yiKw==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@apertussolutions.com header.s=zoho header.b="bj/mDHYi"; arc=pass (i=2 spf=pass spfdomain=apertussolutions.com dkim=pass dkdomain=apertussolutions.com); spf=pass (google.com: domain of linux-kernel+bounces-80042-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80042-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a10-20020aa7cf0a000000b0056541227202si1142809edy.91.2024.02.25.03.23.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 03:23:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80042-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@apertussolutions.com header.s=zoho header.b="bj/mDHYi"; arc=pass (i=2 spf=pass spfdomain=apertussolutions.com dkim=pass dkdomain=apertussolutions.com); spf=pass (google.com: domain of linux-kernel+bounces-80042-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80042-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 12B3A1F21539 for ; Sun, 25 Feb 2024 11:23:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C651F1078F; Sun, 25 Feb 2024 11:23:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=apertussolutions.com header.i=dpsmith@apertussolutions.com header.b="bj/mDHYi" Received: from sender4-of-o50.zoho.com (sender4-of-o50.zoho.com [136.143.188.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBDB1DDDF; Sun, 25 Feb 2024 11:23:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.50 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708860219; cv=pass; b=nxY9boCLzMIGMnYBOJdzYH06PKutrtmK7/krFtY5HZkbTFqP8jntnQ0zvvkR3Z5xzCJV9XZd1QmuS8S6k8LTMF34HnurBdMfXm0oylf3zJdnqeOX38AxjD25DoGEXfeNm7Focww7v16tzzACYPVII4d//Sm70bLgiGhTT1+kUUQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708860219; c=relaxed/simple; bh=kzsJOSbdO9aCNroEz/CW0AsE5F4Ewh3SNdXG8BVHGJE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ROVui6SttoCx7vqYGKK22QiOsxe1lpyAG8SdtG8QEuojucTG9oodFI8f0c1wuEh2AYbqakOKQE6IRheQ8IWB6gxVutpPtQzYeu87jguNA/cSe6H0yxZbK8bvDkNnE6HNWfktDkhgyh+N2+lN/A1EylJZywncSkWocJosYE8Mrw4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=apertussolutions.com; spf=pass smtp.mailfrom=apertussolutions.com; dkim=pass (1024-bit key) header.d=apertussolutions.com header.i=dpsmith@apertussolutions.com header.b=bj/mDHYi; arc=pass smtp.client-ip=136.143.188.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=apertussolutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=apertussolutions.com ARC-Seal: i=1; a=rsa-sha256; t=1708860204; cv=none; d=zohomail.com; s=zohoarc; b=cKz2B5fRi/61Qzy519l5Xxy7AcPV/OPTWEiigBJPKAPyp1Ggs5fLKMcs/CLNbIODAW5r40zqF5XorVeaRKqfADp+UcM8SjFq0CIhbZCtTcm+zOLUuCff1x2TBjfSDc2GjutF7ptN41z0GtpodGx5hWyOqszszoWMYg0m1gE5VqE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1708860204; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=wfGoqZDkKgvNv8khUbgxCQPjnWH1gdlTXy979s/5nUg=; b=B/SrW+JNxEnkFylMLVss30/YsNShVCHXdUuukDG7xVYiLdCGt3y7Y0Xo/q7tUdYgM5JwW2cd3/ajodtMn2IqbAqMNXT8Tr3GaM2nVfrBGvU+UAiApIp4zrwFINQWBHlE9SYPtDm71VqiuFPvqj2/uJXLx0gkCac7GDOyM8lavfk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@apertussolutions.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1708860204; s=zoho; d=apertussolutions.com; i=dpsmith@apertussolutions.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=wfGoqZDkKgvNv8khUbgxCQPjnWH1gdlTXy979s/5nUg=; b=bj/mDHYit8XjJY2O2rEePk9H/E6SR2P4LqdM+hvx3B44c+uWiqUvOK7YyJmFvVAl D9pwjuqxAEwHEJFzXmoJv5rNhCC5RVjoHJqB5L/poM4ci35G1OUfLt/aJVfsrcgE6jA xCVIP7e22AqA1ogTCkkSysXCwDNAwq+8LWZaYH14= Received: from [10.10.1.126] (static-72-81-132-2.bltmmd.fios.verizon.net [72.81.132.2]) by mx.zohomail.com with SMTPS id 170886020157550.311343935882974; Sun, 25 Feb 2024 03:23:21 -0800 (PST) Message-ID: <44267c53-496d-4e41-896a-623673d938cb@apertussolutions.com> Date: Sun, 25 Feb 2024 06:23:13 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] tpm: protect against locality counter underflow To: Jarkko Sakkinen , Lino Sanfilippo , Alexander Steffen , Jason Gunthorpe , Sasha Levin , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ross Philipson , Kanth Ghatraju , Peter Huewe References: <20240131170824.6183-1-dpsmith@apertussolutions.com> <20240131170824.6183-2-dpsmith@apertussolutions.com> <2ba9a96e-f93b-48e2-9ca0-48318af7f9b1@kunbus.com> <91f600ef-867b-4523-89be-1c0ba34f8a4c@kunbus.com> <88b75c9c-98ab-4474-8112-6a27d11a2fdf@apertussolutions.com> Content-Language: en-US From: "Daniel P. Smith" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ZohoMailClient: External On 2/23/24 07:58, Jarkko Sakkinen wrote: > On Fri Feb 23, 2024 at 3:58 AM EET, Daniel P. Smith wrote: >>> Just adding here that I wish we also had a log transcript of bug, which >>> is right now missing. The explanation believable enough to move forward >>> but I still wish to see a log transcript. >> >> That will be forth coming. > > I did not respond yet to other responses that you've given in the past > 12'ish hours or so (just woke up) but I started to think how all this > great and useful information would be best kept in memory. Some of it > has been discussed in the past but there is lot of small details that > are too easily forgotten. > > I'd think the best "documentation" approach here would be inject the > spec references to the sites where locality behaviour is changed so > that it is easy in future cross-reference them, and least of risk > of having code changes that would break anything. I think this way > all the information that you provided is best preserved for the > future. > > Thanks a lot for great and informative responses! No problem at all. Here is a serial output[1] from a dynamic launch using Linux Secure Launch v7[2] with one additional patch[3] to dump TPM driver state. [1] https://paste.debian.net/1308538/ [2] https://lore.kernel.org/lkml/scpu273f2mprr2uvjlyk2xrjjtcduhse2eb45lmj7givn6jh4u@i2v4f2vbldu4/T/ [3] https://paste.debian.net/1308539/