Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1207140rbb; Mon, 26 Feb 2024 02:04:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUj6yvT55duU/7+CFkvlJbDZAmoPlk694Ln1suifvCRna88nWxDPW0WsTXpzgG8FpRRidjV898pzunGVFZivH6nWW+bK7iZO3YYcF1Ohw== X-Google-Smtp-Source: AGHT+IErO7kTRLzFnmIYF6vsLlObupfKsSpp+d8oPH1+DLrAZ6njqxEhpe8NvM74/rlw4RhN2uiy X-Received: by 2002:a17:903:985:b0:1db:c6ff:6648 with SMTP id mb5-20020a170903098500b001dbc6ff6648mr6681961plb.10.1708941868305; Mon, 26 Feb 2024 02:04:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708941868; cv=pass; d=google.com; s=arc-20160816; b=Gj4srAT+qomlJkzHpw5P1kIKjilqfDzkG0YGSwW60+qisLgUoSmgUeyQGAoQhu4GpD Cy6kpy941gySFhstBl8pNxbsrjYaTed5JRzJwLMz7DCOP8NfmUPbnmi40TiptrwVSyTt Qo4Lu+Rvs7oxHcwu6bBX9oOVWjADPPoEmPg2nEeffgPRIwAHaGDnV8H8L8nlBTp8OwSk LDaUizUEPhAGnEMFGLMJW7svBPbz7ezHTRkiGr/cqxt0hxmgSZeNnFchnMD9w6LEy8Bb ptsumZAedXJyggjBOFDa4ABm/bpAQL1PF3nEtjA+3/t9T1/mFKkAVBDyiUe5Qzb8jxfJ FsUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=8zUDVC2NMen/wlgP6Dr1a7B2WedMJqF33uyf9jialCI=; fh=ODmEDFOKecbj2ycNHvtHpb0TX6QkEfvbv1i/ahLMELE=; b=iPQA5wV4C8JDQRoTIjgR6S5+TukS4PQAODud9Jc6eXHwO1pKzofMu0+J65ZD1PNSge eIgnbQt0trZ689CmlwZzebeEzwaLLCuV3xLjy5DOxVEEU+xNWkcTNZKqkxmhyeGTajay JqQyj8Dm2yNphIk7ylRyvEKgG7pDBKCRU4/hIK6ZvwuZWRc049mz3PQ/Zc4pT3JBas/s 84PkPEgt1azarLlu6jEHrZA9ABpssuDTUerRJ8cKmeJ1r7xXyKg7sgjy+ArMLaorNQmV 2IsjQf9OEY3Z3IlX+QuNL3t+ek3K3uIVpSAMFke96QeT8WtK7ERBcXiaHzDl4qPofybS jIqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nCQ3hfao; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-81071-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81071-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. [139.178.88.99]) by mx.google.com with ESMTPS id y5-20020a17090322c500b001d6fd932a81si3478267plg.275.2024.02.26.02.04.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:04:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81071-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nCQ3hfao; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-81071-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81071-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 07585288B38 for ; Mon, 26 Feb 2024 10:04:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFFA55F46A; Mon, 26 Feb 2024 09:40:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nCQ3hfao" 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 E8D195DF34; Mon, 26 Feb 2024 09:40:03 +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=1708940404; cv=none; b=YMdiXEoQIjitMpNhrJeG4+unHkObkwW14O9/gp+fq7ptcpYqNjjxgeVV9YjmqlkhRHHO4HMIkrYJ7Yq3U3NgGBI9OIfw7kDPDWFtrPrj26YRIfM8IoR3h2os/C/Yz6ai4Pvyb2kVjfbsxya6BWrCGtvnlEx+c15pcZ4xhlvTqDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708940404; c=relaxed/simple; bh=8zUDVC2NMen/wlgP6Dr1a7B2WedMJqF33uyf9jialCI=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:From:To:Cc: References:In-Reply-To; b=rPF8i0+HsYSGXYy5UMHY01JqmFvC6JNjEukIH+qGLaEDwec1WcA+mULKHGGzobsGvF1ot3/7qjRX3Lvi6N/WF3x2dqoDdVEwFhF1jwf2kPOgMi1IvNYTXm07hQlmviZt4+0q3tWLNNNWcY8gLa/Xt3CyPrn3BpEN3ImbP05+18g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nCQ3hfao; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75815C433C7; Mon, 26 Feb 2024 09:40:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708940403; bh=8zUDVC2NMen/wlgP6Dr1a7B2WedMJqF33uyf9jialCI=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=nCQ3hfaoxQPhGkyAqOk/8DPVp2E8K5hdvyML3x//bnINqrZ/POxSK4ZaJaGuuBx6s ybbFaenIobG78QQyrVesHz/QmxplrbMPExU8gc7FeYEx6UdxTe9PoANXhGewY+DPAM IqWQLm800TxEDF3pWFt2FK+52lYmV5l7QxuJUSgspyF1QlIv9G+CEZfeb34mR6zAnz Br4R+WoIBaRXNOhP431f8k0kkyvCugWHh9o5Mgoyc6K21RDpgx8EbDJp9c9LLMalEB x91A46KhLmsdrU90GOTThWJDUA1RK9JKiyvGHrvi5LAMmkvGP42aMQXdH99qvgmfaU ghPj4a87v+qKg== 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: Mon, 26 Feb 2024 11:39:59 +0200 Message-Id: Subject: Re: [PATCH 1/3] tpm: protect against locality counter underflow From: "Jarkko Sakkinen" To: "Daniel P. Smith" , "Lino Sanfilippo" , "Alexander Steffen" , "Jason Gunthorpe" , "Sasha Levin" , , Cc: "Ross Philipson" , "Kanth Ghatraju" , "Peter Huewe" 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> <44267c53-496d-4e41-896a-623673d938cb@apertussolutions.com> In-Reply-To: <44267c53-496d-4e41-896a-623673d938cb@apertussolutions.com> On Sun Feb 25, 2024 at 1:23 PM EET, Daniel P. Smith wrote: > 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, whi= ch > >>> is right now missing. The explanation believable enough to move forwa= rd > >>> but I still wish to see a log transcript. > >> > >> That will be forth coming. > >=20 > > 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. > >=20 > > 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. > >=20 > > 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=20 > Launch v7[2] with one additional patch[3] to dump TPM driver state. But are this fixes for a kernel tree with [2] applied. If the bugs do not occur in the mainline tree without the out-of-tree feature, they are not bug fixes. They should then really be part of that series. BR, Jarkko