From: James Bottomley <James.Bottomley-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org>
To: greg-R92VP3DqSWVWk0Htik3J/w@public.gmane.org,
Jarkko Sakkinen
<jarkko.sakkinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Cc: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
linux-security-module-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Ken Goldman <kgoldman-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [RFC] tpm2-space: add handling for global session exhaustion
Date: Thu, 09 Feb 2017 12:05:50 -0800 [thread overview]
Message-ID: <1486670750.2616.55.camel@HansenPartnership.com> (raw)
In-Reply-To: <201702090906.v1996c6a015552-DHO+NtfOqB5PEDpkEIzg7wC/G2K4zDHf@public.gmane.org>
On Thu, 2017-02-09 at 03:06 -0600, Dr. Greg Wettstein wrote:
> On Jan 30, 11:58pm, Jarkko Sakkinen wrote:
> } Subject: Re: [tpmdd-devel] [RFC] tpm2-space: add handling for
> global sessi
>
> Good morning, I hope the day is going well for everyone.
>
> > I'm kind dilating to an opinion that we would leave this commit out
> > from the first kernel release that will contain the resource
> > manager with similar rationale as Jason gave me for whitelisting:
> > get the basic stuff in and once it is used with some workloads
> > whitelisting and exhaustion will take eventually the right form.
> >
> > How would you feel about this?
>
> I wasn't able to locate the exact context to include but we noted
> with interest Ken's comments about his need to support a model where
> a client needs a TPM session for transaction purposes which can last
> a highly variable amount of time. That and concerns about command
> white-listing, hardware denial of service and related issues tend to
> underscore our concerns about how much TPM resource management should
> go into the kernel.
>
> Once an API is in the kernel we live with it forever.
This actually is far too strong a statement: Once you make API
guarantees, you have to live with them forever, but there's a
considerable difference between an API guarantee and the API itself.
For instance the kernel overlay filesystem has gone through several
iterations of file whiteouts (showing a file as deleted above a read
only copy): we began with an inode flag, moved to an extended attribute
and finally ended up with a device. Each of those three changes was
fairly radical to the VFS API, but didn't fundamentally alter the API
guarantee (that users wouldn't see a file after it was deleted on an
overlay).
The API guarantee /dev/tpms0 is adding is that you won't see TPM out of
memory errors based on what other people are doing, so I think it's a
simple isolation guarantee we can live with long term. I think that's
a solidly defensible one.
However, right at the moment the guarantee isn't that you won't be
affcted by *anything* another user does, so it's a weak guarantee: you
will see uncorrectable regapping errors based on what others are doing
and you will see global session exhaustion.
I think we begin with the defensible weak guarantee and discuss how to
strengthen it.
James
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
WARNING: multiple messages have this Message-ID (diff)
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: greg@enjellic.com, Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Cc: Ken Goldman <kgoldman@us.ibm.com>,
tpmdd-devel@lists.sourceforge.net,
linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [tpmdd-devel] [RFC] tpm2-space: add handling for global session exhaustion
Date: Thu, 09 Feb 2017 12:05:50 -0800 [thread overview]
Message-ID: <1486670750.2616.55.camel@HansenPartnership.com> (raw)
In-Reply-To: <201702090906.v1996c6a015552@wind.enjellic.com>
On Thu, 2017-02-09 at 03:06 -0600, Dr. Greg Wettstein wrote:
> On Jan 30, 11:58pm, Jarkko Sakkinen wrote:
> } Subject: Re: [tpmdd-devel] [RFC] tpm2-space: add handling for
> global sessi
>
> Good morning, I hope the day is going well for everyone.
>
> > I'm kind dilating to an opinion that we would leave this commit out
> > from the first kernel release that will contain the resource
> > manager with similar rationale as Jason gave me for whitelisting:
> > get the basic stuff in and once it is used with some workloads
> > whitelisting and exhaustion will take eventually the right form.
> >
> > How would you feel about this?
>
> I wasn't able to locate the exact context to include but we noted
> with interest Ken's comments about his need to support a model where
> a client needs a TPM session for transaction purposes which can last
> a highly variable amount of time. That and concerns about command
> white-listing, hardware denial of service and related issues tend to
> underscore our concerns about how much TPM resource management should
> go into the kernel.
>
> Once an API is in the kernel we live with it forever.
This actually is far too strong a statement: Once you make API
guarantees, you have to live with them forever, but there's a
considerable difference between an API guarantee and the API itself.
For instance the kernel overlay filesystem has gone through several
iterations of file whiteouts (showing a file as deleted above a read
only copy): we began with an inode flag, moved to an extended attribute
and finally ended up with a device. Each of those three changes was
fairly radical to the VFS API, but didn't fundamentally alter the API
guarantee (that users wouldn't see a file after it was deleted on an
overlay).
The API guarantee /dev/tpms0 is adding is that you won't see TPM out of
memory errors based on what other people are doing, so I think it's a
simple isolation guarantee we can live with long term. I think that's
a solidly defensible one.
However, right at the moment the guarantee isn't that you won't be
affcted by *anything* another user does, so it's a weak guarantee: you
will see uncorrectable regapping errors based on what others are doing
and you will see global session exhaustion.
I think we begin with the defensible weak guarantee and discuss how to
strengthen it.
James
next prev parent reply other threads:[~2017-02-09 20:05 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <jarkko.sakkinen@linux.intel.com>
2017-02-09 9:06 ` [RFC] tpm2-space: add handling for global session exhaustion Dr. Greg Wettstein
2017-02-09 9:06 ` [tpmdd-devel] " Dr. Greg Wettstein
[not found] ` <201702090906.v1996c6a015552-DHO+NtfOqB5PEDpkEIzg7wC/G2K4zDHf@public.gmane.org>
2017-02-09 15:19 ` Jarkko Sakkinen
2017-02-09 15:19 ` [tpmdd-devel] " Jarkko Sakkinen
[not found] ` <20170209151922.cqo32h4io5dqyvvw-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-02-09 19:04 ` Jason Gunthorpe
2017-02-09 19:04 ` [tpmdd-devel] " Jason Gunthorpe
[not found] ` <20170209190426.GA1104-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-02-09 19:29 ` James Bottomley
2017-02-09 19:29 ` [tpmdd-devel] " James Bottomley
[not found] ` <1486668591.2616.45.camel-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org>
2017-02-09 21:54 ` Jason Gunthorpe
2017-02-09 21:54 ` [tpmdd-devel] " Jason Gunthorpe
2017-02-10 8:48 ` Jarkko Sakkinen
[not found] ` <20170210084837.lq3mofgfwvjx623m-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-02-10 23:13 ` Kenneth Goldman
2017-02-09 20:05 ` James Bottomley [this message]
2017-02-09 20:05 ` [tpmdd-devel] " James Bottomley
2017-02-09 19:24 ` James Bottomley
[not found] <James.Bottomley@HansenPartnership.com>
2017-02-10 10:03 ` Dr. Greg Wettstein
[not found] ` <201702101003.v1AA3plF029882-DHO+NtfOqB5PEDpkEIzg7wC/G2K4zDHf@public.gmane.org>
2017-02-10 16:46 ` James Bottomley
[not found] ` <1486745163.2502.26.camel-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org>
2017-02-10 21:13 ` Kenneth Goldman
2017-02-14 14:38 ` [tpmdd-devel] " Dr. Greg Wettstein
[not found] ` <20170214143829.GA28175-DHO+NtfOqB5PEDpkEIzg7wC/G2K4zDHf@public.gmane.org>
2017-02-14 16:47 ` James Bottomley
2017-02-10 21:18 ` Kenneth Goldman
2017-01-18 20:48 James Bottomley
2017-01-18 20:48 ` James Bottomley
[not found] ` <1484772489.2396.2.camel-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org>
2017-01-19 12:25 ` Jarkko Sakkinen
[not found] ` <20170119122533.d7h5rgatpwl3qmcl-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-01-19 12:41 ` Jarkko Sakkinen
[not found] ` <20170119124101.nw7a7m735zhiivfo-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-01-27 21:20 ` Ken Goldman
2017-01-27 21:59 ` James Bottomley
2017-01-19 12:59 ` James Bottomley
2017-01-27 21:42 ` Ken Goldman
2017-01-27 22:04 ` James Bottomley
[not found] ` <1485554699.3229.20.camel-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org>
2017-01-27 23:35 ` Jason Gunthorpe
[not found] ` <20170127233513.GA28995-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-01-27 23:48 ` James Bottomley
2017-01-30 0:52 ` Ken Goldman
2017-01-30 0:52 ` Ken Goldman
2017-01-30 16:04 ` James Bottomley
[not found] ` <1485792295.2518.23.camel-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org>
2017-01-30 21:58 ` Jarkko Sakkinen
[not found] ` <20170130215815.4lr42ob7e4cycwgi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-01-30 22:13 ` James Bottomley
[not found] ` <1485814388.2518.28.camel-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org>
2017-01-30 22:46 ` Ken Goldman
2017-01-31 13:31 ` Jarkko Sakkinen
2017-02-10 17:22 ` Kenneth Goldman
2017-01-31 19:28 ` Ken Goldman
2017-01-31 19:55 ` James Bottomley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1486670750.2616.55.camel@HansenPartnership.com \
--to=james.bottomley-d9phhud1jfjcxq6kfmz53/egyhegw8jk@public.gmane.org \
--cc=greg-R92VP3DqSWVWk0Htik3J/w@public.gmane.org \
--cc=jarkko.sakkinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=kgoldman-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-security-module-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.