From: Ken Goldman Subject: Re: Fixing TPM_RC_CONTEXT_GAP Date: Fri, 27 Jan 2017 16:49:36 -0500 Message-ID: References: <1485392679.2473.51.camel@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1485392679.2473.51.camel-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tpmdd-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: tpmdd-devel@lists.sourceforge.net On 1/25/2017 8:04 PM, James Bottomley wrote: > This leads to a problem: we have to have access to the session context > to pull this trick, and that means we have to disallow TPM users from > calling ContextSave on a session otherwise they could DoS us by > inducing an unremediable TPM_RC_CONTEXT_GAP error (simply by keeping > the saved session and never loading it). I think it's perfectly acceptable to block applications from calling context save for sessions. I don't know of any use case that would require it. (There are definitely use cases for context save on transient objects, but they don't have the replay / gap issue.) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot