From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753902AbdATUvl (ORCPT ); Fri, 20 Jan 2017 15:51:41 -0500 Received: from mga05.intel.com ([192.55.52.43]:41481 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753350AbdATUvE (ORCPT ); Fri, 20 Jan 2017 15:51:04 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,259,1477983600"; d="scan'208";a="924912050" Date: Fri, 20 Jan 2017 22:51:00 +0200 From: Jarkko Sakkinen To: Ken Goldman Cc: tpmdd-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [tpmdd-devel] [PATCH 1/2] tpm2: add session handle isolation to tpm spaces Message-ID: <20170120205100.h36r2qr6vrxj3zim@intel.com> References: <1484752097.2717.14.camel@HansenPartnership.com> <1484752186.2717.16.camel@HansenPartnership.com> <20170119115812.vqaoxv77mgnuq43h@intel.com> <1484827883.3140.7.camel@HansenPartnership.com> <20170120132331.74dixmuj6htzgr4z@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 20, 2017 at 09:27:25AM -0500, Ken Goldman wrote: > On 1/20/2017 8:23 AM, Jarkko Sakkinen wrote: > > > > I'm talking about not trying to detect if something gets deleted. When > > something gets created you would go through the global list of sessions > > and check if it is used. If so, it must be that the session was deleted > > at some point. > > Are you saying that, when a process flushes (or continue = false) a > session, this code won't actually flush the context? You'll wait until > another startauthsession creates a handle, and then delete other > occurrences of it? I just wouldn't get care if a session gets deleted. You can detect it postmortem when something gets created with the same handle. /Jarkko