Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934469AbcCPRtP (ORCPT ); Wed, 16 Mar 2016 13:49:15 -0400 Received: from quartz.orcorp.ca ([184.70.90.242]:54429 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751498AbcCPRtN (ORCPT ); Wed, 16 Mar 2016 13:49:13 -0400 Date: Wed, 16 Mar 2016 11:49:04 -0600 From: Jason Gunthorpe To: Jarkko Sakkinen Cc: Stefan Berger , tpmdd-devel@lists.sourceforge.net, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-api@vger.kernel.org, dhowells@redhat.com Subject: Re: [PATCH v8 08/10] tpm: Proxy driver for supporting multiple emulated TPMs Message-ID: <20160316174904.GA6127@obsidianresearch.com> References: <1457909680-14085-1-git-send-email-stefanb@linux.vnet.ibm.com> <1457909680-14085-9-git-send-email-stefanb@linux.vnet.ibm.com> <20160316120916.GA14820@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160316120916.GA14820@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.160 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 879 Lines: 25 On Wed, Mar 16, 2016 at 02:09:16PM +0200, Jarkko Sakkinen wrote: > On Sun, Mar 13, 2016 at 06:54:38PM -0400, Stefan Berger wrote: > Alternative to this would be to have /dev/vtpmx create: > > * /dev/vtpm0 for the server > * /dev/tpm0 for the client > > This is how David Howell's PoC worked and that's why I want > to make this alternative visible. > > The server could even respawn without container noticing it. > This solution have better availability properties. Seriously, no, that doesn't make any sense. TPM is stateful, you can't respawn the server side. If anyone is ever clever enough to make that workable then they just go ahead and save the server fd with the other state. systemd for instance already has everything needed to make that work. We don't need to have a server dev node and we certainly don't need the leaking problem that leaves us with. Jason