Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2014280rdb; Tue, 20 Feb 2024 14:26:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUOrX2li3WNANB1n74n2epVQA9KKpVPhTYrVfzzPVDT3OJWnjUW8cBOQ2SBZFcNbk1+CD94lyxys++tlWPHCH/+x4hUCPTfiCY0wEuweQ== X-Google-Smtp-Source: AGHT+IG9COctt0hHSnYG75sWv3CG5DtBqHsOeJzVBFygABS7OzQ0a+pmo6xzLI9yfj1z7eosf4ii X-Received: by 2002:a05:690c:fd5:b0:608:4af:f4fd with SMTP id dg21-20020a05690c0fd500b0060804aff4fdmr10729093ywb.1.1708467980022; Tue, 20 Feb 2024 14:26:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708467979; cv=pass; d=google.com; s=arc-20160816; b=L6AcqUHJfJRcpXZ+uGrBsS3HtQ1COsyuEeKp4l898+9gNHO4BC3R0Dq6KDMJdO61W8 Ed/BY/wyvKl931oPhy1bhFBrQUMTobnynjf0F11i4VC+owdbp1jzxnjxggxlQA8RBcy+ WY4sVLmi8gbKt9+YfMEYgUJIqBw7mC4SgYhfLFdJWdVna53AmdiUHCl9XJLvTb379B57 DBLDdN78tIi6LtAS9NulTJeRmKE2F3s3Lf7RBYUKa2UIBmXCXeoAkG0Fl2Fp7qdwQGXr +fS5e1st0kgDtjNuBBG4ed7MXbyoSGpvnsD5EJFJaF8ggvC3G1dV1dDCuKYNYdgqGUV9 LjGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=VX48fW90bq2scdNIuRDMtDgXNuijlKGHFkFkURGvlQo=; fh=1esgbXzBI5S1YuKIuRfmI1pG/q5HH3r2Kfc+JLdWa5E=; b=Ie1MvRj/r+zOcB64OCPGwRfGxXA/cfHzmsz7sRNL+vtmh9SaeR9r1O9cTjGGJeZVxZ QJk4IGzSdkPumCju1nG7tf8IzoJ3QNNd2PniXdohGKufJTx8X20M/3Pxxoz9mD8fESxo K35rLv5VmE7wGNrJmKvvvOZHsoFP7G631yk1bgCj+lrGxM6xP/34l6ei5qj0YMYxvH8/ 40ZvlsT2Fp+bNbDcOuvvVuNFLJTPRW9pRkASam8ZlyODxrlyu0R50UFDacaujIVdVVXg 5sTWkAhfkKJ/ml+7I4LZq1qtlE3aMaVA6pF829EG4BZqafvhfD6Kc/Ey9nkCGYwUZ5Ry Ya1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ozWJDAjv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73760-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h3-20020a05620a21c300b007877d1e4229si1702096qka.322.2024.02.20.14.26.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 14:26:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73760-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ozWJDAjv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73760-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73760-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B66A71C216F8 for ; Tue, 20 Feb 2024 22:26:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57DA91534ED; Tue, 20 Feb 2024 22:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ozWJDAjv" 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 7D68041AAC; Tue, 20 Feb 2024 22:26:14 +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=1708467974; cv=none; b=nT9KKKXid0+ToQpxA2uuqrxBlktijqISzAm+jHuACiUiL7ldI6mhOgKOHlRV6EDBHLcV/LsT7KqOW6wth3DkMSl0Cl41AILrBpP1MMVUmYQGhjraXUtMKIAcjn2YAPQTOM5pm2QYH0FU9trHvZmZfSHofx5RbEjkC8LEURUzBKM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708467974; c=relaxed/simple; bh=CFH2DJXMwok2pTz3ACcx/Zwt8Fa4lJXAomr5cxWf22A=; h=Mime-Version:Content-Type:Date:Message-Id:From:To:Cc:Subject: References:In-Reply-To; b=rd8QUT5Mt4gNQQgE9w+FrUbj6OnemTXGL0ObXq5QclW11OHjpaeCn+3bySsorMSNF2s65qWodUOg6J0p/315wTuNjqvnzwA1q8gppU/8Y+anp9eyHPl2XVTH5U/LMl1pTlOMUxQI3DwSakCHemjiT2DAUGSJUrcXRasK/uoOASg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ozWJDAjv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7AE6C433C7; Tue, 20 Feb 2024 22:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708467974; bh=CFH2DJXMwok2pTz3ACcx/Zwt8Fa4lJXAomr5cxWf22A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ozWJDAjvvoeVyb/8KnBMU1Pkis6bj/XrzlmuyuesoM9dSBUqjhqd12BhwzvnxOyrH 989Q9PfaUYrI1K4ig8wXQwcmVmDv7aSxIioXq40La128GEgiOAdK4jDA3kd9r44tR4 tfVUqdX3SDJv9cJluNmwTqD3HdbtT6olOYasMFeb2j1wZYfYdqIbupzSzLQ8EgXPtd mBn661qtvUmzV1acROpE9cLfXPPAbpLN2MD4H4s4R/e33rvefQ5267D38M0/HR0WdJ cEYHxtgOMxufPB+5WVPJdf/MFtkxUVfR/JB4deIM2QsjvvWH75Bwgiw6nyojx6ToeQ ySSkgSpSCBpdw== 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: Tue, 20 Feb 2024 22:26:09 +0000 Message-Id: From: "Jarkko Sakkinen" To: "Lino Sanfilippo" , "Alexander Steffen" , "Daniel P. Smith" , "Jason Gunthorpe" , "Sasha Levin" , , Cc: "Ross Philipson" , "Kanth Ghatraju" , "Peter Huewe" Subject: Re: [PATCH 1/3] tpm: protect against locality counter underflow 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> In-Reply-To: <91f600ef-867b-4523-89be-1c0ba34f8a4c@kunbus.com> On Tue Feb 20, 2024 at 8:54 PM UTC, Lino Sanfilippo wrote: > for (i =3D 0; i <=3D MAX_LOCALITY; i++) > __tpm_tis_relinquish_locality(priv, i); I'm pretty unfamiliar with Intel TXT so asking a dummy question: if Intel TXT uses locality 2 I suppose we should not try to relinquish it, or? AFAIK, we don't have a symbol called MAX_LOCALITY. BR, Jarkko