From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750789AbdAXFfR (ORCPT ); Tue, 24 Jan 2017 00:35:17 -0500 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:57958 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750704AbdAXFfQ (ORCPT ); Tue, 24 Jan 2017 00:35:16 -0500 Message-ID: <1485236113.2534.69.camel@HansenPartnership.com> Subject: [PATCH 0/2] Add session handling to tpm spaces From: James Bottomley To: tpmdd-devel@lists.sourceforge.net Cc: open list , linux-security-module@vger.kernel.org Date: Mon, 23 Jan 2017 21:35:13 -0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These two patches are easily separated. The first does session handling. This incarnation uses TPM_RC_REFERENCE_H0 errors from context save or load to signal when a session has been flushed (so it no longer does tracking or flush emulation). The second patch does management for session exhaustion and is essentially unchanged from the prior RFC. James --- James Bottomley (2): tpm2: add session handle context saving and restoring to the space code tpm2-space: add handling for global session exhaustion drivers/char/tpm/tpm-chip.c | 7 + drivers/char/tpm/tpm.h | 42 +++++- drivers/char/tpm/tpm2-cmd.c | 15 +++ drivers/char/tpm/tpm2-space.c | 294 ++++++++++++++++++++++++++++++++++++++++-- drivers/char/tpm/tpms-dev.c | 25 +++- 5 files changed, 369 insertions(+), 14 deletions(-) -- 2.6.6