On Tue, 2017-01-31 at 15:57 -0500, Ken Goldman wrote: > Should tabrm5 have the session swapping yet? Is there a different > head I should be using?
Jarkko's branch doesn't currently have sessions. If you want the session code, it's here: http://git.kernel.org/cgit/linux/kernel/git/jejb/tpmdd.git/ tabrm5 It's an addition to Jarkko's, so you should be able simply to pull it in. However, it does contain my experimental regapping code, so treat with caution (it is passing its test suite here, so if you find a failure, I'm interested). > ~~~~ > > I have the following test: > > create a primary storage key > create 2 signing keys under the storage key, each with a > different > password > load all 2 keys > create an hmac session > sign with each key > > ~~~~ > > When I run three of these processes, it passes. Each test has 3 > loaded keys (all slots filled) and one session slot filled. This > indicates that transient object swapping is working. > > When I start fourth process, it fails creating the session. The > error is: > > rc 00000903 TPM_RC_SESSION_MEMORY - out of memory for session > contexts > > This indicates that session swapping is not occurring. Right, you need to add the session swapping code, either by applying the patch or updating from my tree. James ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ tpmdd-devel mailing list tpmdd-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tpmdd-devel