From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751826AbdARPUe (ORCPT ); Wed, 18 Jan 2017 10:20:34 -0500 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:44772 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751336AbdARPUd (ORCPT ); Wed, 18 Jan 2017 10:20:33 -0500 Message-ID: <1484752097.2717.14.camel@HansenPartnership.com> Subject: [PATCH 0/2] Add session isolation and context saving to the space manager From: James Bottomley To: tpmdd-devel@lists.sourceforge.net Cc: open list , linux-security-module@vger.kernel.org Date: Wed, 18 Jan 2017 10:08:17 -0500 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 As requested, the first patch adds isolation and the second does context switching. I've also removed the flush emulation which changed transient object accounting from lazy to strict. Note that session tracking has to be strict because the TPM needs to manage these closely to avoid running out of global session numbers. James --- James Bottomley (2): tpm2: add session handle isolation to tpm spaces tpm2: context save and restore space managed sessions drivers/char/tpm/tpm-chip.c | 6 + drivers/char/tpm/tpm.h | 3 + drivers/char/tpm/tpm2-space.c | 377 ++++++++++++++++++++++++++++++++++-------- drivers/char/tpm/tpms-dev.c | 8 + 4 files changed, 325 insertions(+), 69 deletions(-) -- 2.6.6