Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp825448rbd; Fri, 23 Feb 2024 04:59:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW35NQLc8Z5wj2AUIAgf0sSV0Z/ajmwy0YfjV7qrZI07wuA6uUbeE4sxBqcwFZTiZAyPOBGxbHScARgckHrt1X8jP4ZlyPUz/+/8oJxwg== X-Google-Smtp-Source: AGHT+IE9pOGvmELcyLzSc3BeCvxEhjE4ajWkspC3zZ4chc8zFLqplHrzuUvllUiEZESqtwJclFH1 X-Received: by 2002:a17:90a:130a:b0:299:1f80:8c44 with SMTP id h10-20020a17090a130a00b002991f808c44mr1368195pja.40.1708693151369; Fri, 23 Feb 2024 04:59:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708693151; cv=pass; d=google.com; s=arc-20160816; b=U4wwjiniOQgih7sKfocxilO8KXueVuzpwB/Sg/+vMvIE8XXCL50eNDw3aZCcaqBMUN i5KQvb3prleXG0Evaxp/6qOCrFJgDVRoWIm1jL/Rmx5O4Y5kMMfzJvVGTDUZavtKvFcV ow6x/LwohU0cCFv1RTD413CKWJUu69dM7XFX1awcWfuk5Yc+xie45QY4MTdwvXbJCZ5t kDFV2nhTgETRLH9fsLlAcDdJ6lPXXyOziEkjXvloAzIkiDthFSekofB2TXvMvfK7gIji vARNCMBhwQYkXOBGwrvqkRGM6KvtSEaYkYkoSmLqLvs8mzZL40+PBgFbbzhwQfmbwIOY wE5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=QbCeKgCF+2cvriyW1QLoaWdnb5N532ueeh9KURAIqHs=; fh=ODmEDFOKecbj2ycNHvtHpb0TX6QkEfvbv1i/ahLMELE=; b=Z7DgkrRDyprFjGtHR5LlmRK72e7b7IF/Kk6q7ZdsyFTk/zZAmVsa1qArQsJcxnKzjj m4CCU/ORfCelC+NWJIymoh6Lw/r/7BE+ZIqIklGweUaCIwgACXfzGMOOV8YtCvJkFpVx SOLqsSgLHbefX3+SIXUcqde9UU9bA4Y4K2gq98TgNDleuLId2Mf5Od9KgF16ZplXciK5 FliYlRwh56LFyYTtJfKsZLXwxXQEv9SDaG1heyFMqjzs1X9tJtZTy4/OAl79X7iu3L3Q 3k6sz5q9JI8qiN/DFBDN6axYJfEp7DMVT8VJo3yfXHG97nPHwsu0mtUgDcTQXMdhLzmv WCXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iJp2IlZM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id pg13-20020a17090b1e0d00b0029a83eb81c7si580644pjb.95.2024.02.23.04.59.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 04:59:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iJp2IlZM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 174E8286296 for ; Fri, 23 Feb 2024 12:59:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B0247E77F; Fri, 23 Feb 2024 12:58:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iJp2IlZM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 427467CF21; Fri, 23 Feb 2024 12:58:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708693134; cv=none; b=NZGd4daou+RsI3bPbpdCGnTiljQ6MJPzi1m8X6UD0xgWgWHDOmEowUNd0nC/izVR/r9wPm8yB1kd11UCM9qT8Ja2EnNwg32AjDwuf1jd6nsD62OC4btJTRmm7q4PmYJuQJR7SKa/A9e32DiHNG9ee/PksGJIcDEelHr+1l2oT7s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708693134; c=relaxed/simple; bh=QbCeKgCF+2cvriyW1QLoaWdnb5N532ueeh9KURAIqHs=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=j/mrZK37dqQkRWOKoyXGRPvcN6uPGK+fOelPK4kw6XMosuT9DDYTy7lfRndJ+nOLkDoHz+BTz3rbGv0BCC9N9NNcE7T2HYvOSVfVsAE4CKIpqrJdK8sqX7rgHh/BrGwcc9CnBbzaE0Ia8tNtfIwzDIb2UnBmFlJ20PLO53MdK50= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iJp2IlZM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8429C433F1; Fri, 23 Feb 2024 12:58:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708693133; bh=QbCeKgCF+2cvriyW1QLoaWdnb5N532ueeh9KURAIqHs=; h=Date:To:Cc:Subject:From:References:In-Reply-To:From; b=iJp2IlZMJYf0zTzXwC1xyC2pXfRwRwx4+mMd5aQll5KR53OKz4VvvgOvhQQs/Rdue QwYtvvjPvkUpyJwfWICaajy60aetP/WKZihlJ4f5BcL1pxqdqG1UILGD4zyaVYBwLL gd24/y5f+VF9t6rfBXbE08h9IvyAlWRFxn3D1cnlSkE+aqm9fi9SAsEWG6oMdROjJZ B6Gq/zkvlLlCvD4GzPD1FBjVNsExVVB7CvBm+TpJTj5X9XiwRFgtQeQEyplG4jGP+T QOGp6Tf1STo88TjkxlMaoltYPZO/cRKtYxMwpMBshHSxbS3rzaVjd9dRXb1QpwUJ// 5KD28RF0n899w== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 23 Feb 2024 14:58:49 +0200 Message-Id: To: "Daniel P. Smith" , "Lino Sanfilippo" , "Alexander Steffen" , "Jason Gunthorpe" , "Sasha Levin" , , Cc: "Ross Philipson" , "Kanth Ghatraju" , "Peter Huewe" Subject: Re: [PATCH 1/3] tpm: protect against locality counter underflow From: "Jarkko Sakkinen" X-Mailer: aerc 0.15.2 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> In-Reply-To: <88b75c9c-98ab-4474-8112-6a27d11a2fdf@apertussolutions.com> 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=20 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! > v/r, > dps BR, Jarkko