From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754610AbdA3Vqv (ORCPT ); Mon, 30 Jan 2017 16:46:51 -0500 Received: from mga05.intel.com ([192.55.52.43]:44872 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754240AbdA3Vqt (ORCPT ); Mon, 30 Jan 2017 16:46:49 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,312,1477983600"; d="scan'208";a="53877756" Date: Mon, 30 Jan 2017 23:46:43 +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 v2 1/2] tpm2: add session handle context saving and restoring to the space code Message-ID: <20170130214643.tvwjzc2whpczxqdt@intel.com> References: <1485563481.3229.39.camel@HansenPartnership.com> <1485563558.3229.41.camel@HansenPartnership.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 Sun, Jan 29, 2017 at 07:35:32PM -0500, Ken Goldman wrote: > On 1/27/2017 7:32 PM, James Bottomley wrote: > > > > Sessions are also isolated during each instance of a tpm space. This > > means that spaces shouldn't be able to see each other's sessions and > > is enforced by ensuring that a space user may only refer to sessions > > handles that are present in their own chip->session_tbl. Finally when > > a space is closed, all the sessions belonging to it should be flushed > > so the handles may be re-used by other spaces. > > This should be true for transient objects as well. Transient objects do not need anything special. All transient objects are flushed after command-response so you implicitly get the isolation. /Jarkko