Skip to contentSkip to conversation

KEYS-TRUSTED git

DISCUSSION Jarkko Sakkinen 3 participants 20 messages Sep 8, 2019 – Sep 15, 2019 Keys-trusted

lore
Share & tools
lore
#0 lore raw

It seems that at least vast majority of the trusted keys patches flow through my tree to the mainline. Still, it is undocumented in the MAINTAINERS file.

So, should I just add my TPM tree as the upstream there? Or should I just create a new GIT for trusted keys? My TPM PR goes to Linux ATM. Should my trusted keys PR go to David instead? That would definitely require own tree.

With Sumit's recent work trusted keys is turning more than just being TPM keys so now it is a good time to consider the flow... Sumit, I'm sorry that I haven't added your first series yet. I need to first sync up how we are going to move forward.

/Jarkko

maintainer
#1 lore raw
Quoted 9 lines · Jarkko Sakkinen

It seems that at least vast majority of the trusted keys patches flow through my tree to the mainline. Still, it is undocumented in the MAINTAINERS file.

So, should I just add my TPM tree as the upstream there? Or should I just create a new GIT for trusted keys? My TPM PR goes to Linux ATM. Should my trusted keys PR go to David instead? That would definitely require own tree.

Quoted 4 lines

With Sumit's recent work trusted keys is turning more than just being TPM keys so now it is a good time to consider the flow... Sumit, I'm sorry that I haven't added your first series yet. I need to first sync up how we are going to move forward.

Thanks, Jarkko.  Agreed, trusted keys is becoming more than just TPM based keys.  Now would be a good time to set up at least a separate branch or GIT repo.

Are all "trust" methods equivalent?  As new "trust" methods are defined, there should be a document describing the trust method, with a comparison to the TPM.

(It would be nice to have some kernel selftests to ensure existing methods don't break.)

Mimi

#2 lore raw
Quoted 11 lines · Mimi Zohar
Quoted 9 lines · Jarkko Sakkinen

It seems that at least vast majority of the trusted keys patches flow through my tree to the mainline. Still, it is undocumented in the MAINTAINERS file.

So, should I just add my TPM tree as the upstream there? Or should I just create a new GIT for trusted keys? My TPM PR goes to Linux ATM. Should my trusted keys PR go to David instead? That would definitely require own tree.

Quoted 4 lines
Quoted 4 lines

With Sumit's recent work trusted keys is turning more than just being TPM keys so now it is a good time to consider the flow... Sumit, I'm sorry that I haven't added your first series yet. I need to first sync up how we are going to move forward.

@Jarkko: No worries, I understand the situation.

Quoted 4 lines

Thanks, Jarkko. Agreed, trusted keys is becoming more than just TPM based keys. Now would be a good time to set up at least a separate branch or GIT repo.

+1

Quoted 4 lines

Are all "trust" methods equivalent? As new "trust" methods are defined, there should be a document describing the trust method, with a comparison to the TPM.

For Trusted Execution Environment (TEE) as a new "trust" method, I have tried to document it here [1]. Please share your thoughts on this patch [1] in case I missed something. I would be happy to incorporate your feedback. Also, can you elaborate on "comparison to the TPM", what specifics parameters are you looking for documentation?

[1] https://patchwork.kernel.org/patch/11065679/

-Sumit

Quoted 6 lines

(It would be nice to have some kernel selftests to ensure existing methods don't break.)

Mimi

maintainer
#3 lore raw

[Cc'ing Ken, Dave, & Monty]

Quoted 11 lines · Sumit Garg
Quoted 3 lines · Mimi Zohar

Are all "trust" methods equivalent? As new "trust" methods are defined, there should be a document describing the trust method, with a comparison to the TPM.

For Trusted Execution Environment (TEE) as a new "trust" method, I have tried to document it here [1]. Please share your thoughts on this patch [1] in case I missed something. I would be happy to incorporate your feedback. Also, can you elaborate on "comparison to the TPM", what specifics parameters are you looking for documentation?

For example, the security properties/guarantees of a hardware TPM are different than a software TPM.  Could we capture that difference in chart form?  As new "trust" methods are added, include that information in the chart and extend the chart with other information, as needed.

Mimi

Quoted 4 lines

[1] https://patchwork.kernel.org/patch/11065679/

-Sumit

#14 lore raw
In reply to Mimi Zohar
Quoted 19 lines · Mimi Zohar
Quoted 9 lines · Jarkko Sakkinen

It seems that at least vast majority of the trusted keys patches flow through my tree to the mainline. Still, it is undocumented in the MAINTAINERS file.

So, should I just add my TPM tree as the upstream there? Or should I just create a new GIT for trusted keys? My TPM PR goes to Linux ATM. Should my trusted keys PR go to David instead? That would definitely require own tree.

Quoted 4 lines

With Sumit's recent work trusted keys is turning more than just being TPM keys so now it is a good time to consider the flow... Sumit, I'm sorry that I haven't added your first series yet. I need to first sync up how we are going to move forward.

Thanks, Jarkko.  Agreed, trusted keys is becoming more than just TPM based keys.  Now would be a good time to set up at least a separate branch or GIT repo.

Quoted 6 lines

Are all "trust" methods equivalent?  As new "trust" methods are defined, there should be a document describing the trust method, with a comparison to the TPM.

(It would be nice to have some kernel selftests to ensure existing methods don't break.)

We could put this (with appropriate mods whatever they are) to selftests:

https://raw.githubusercontent.com/jsakkine-intel/tpm2-scripts/master/keyctl-smoke.sh

No near adequate but it is starting point...

/Jarkko

#4 lore raw
In reply to Sumit Garg
Quoted 5 lines · Sumit Garg

For Trusted Execution Environment (TEE) as a new "trust" method, I have tried to document it here [1]. Please share your thoughts on this patch [1] in case I missed something. I would be happy to incorporate your feedback. Also, can you elaborate on "comparison to the TPM", what specifics parameters are you looking for documentation?

I think the right order is actually:

1. Set up the GIT tree.
2. Merge your TEE patches (when they pass the review phase).
3. Come up with the documentation.

/Jarkko

maintainer
#16 lore raw
Quoted 11 lines · Jarkko Sakkinen
Quoted 3 lines · Mimi Zohar

Thanks, Jarkko.  Agreed, trusted keys is becoming more than just TPM based keys.  Now would be a good time to set up at least a separate branch or GIT repo.

I created a tree for trusted keys:

http://git.infradead.org/users/jjs/linux-trusted-keys.git

The remaining issue before I send a patch to update MAINTAINERS is whether the flow goes through David to Linus or directly to Linus.

David?

#5 lore raw
In reply to Jarkko Sakkinen
Quoted 8 lines · Jarkko Sakkinen
Quoted 5 lines · Sumit Garg

For Trusted Execution Environment (TEE) as a new "trust" method, I have tried to document it here [1]. Please share your thoughts on this patch [1] in case I missed something. I would be happy to incorporate your feedback. Also, can you elaborate on "comparison to the TPM", what specifics parameters are you looking for documentation?

Quoted 5 lines

I think the right order is actually:

1. Set up the GIT tree.
2. Merge your TEE patches (when they pass the review phase).
3. Come up with the documentation.

Sounds good to me.

-Sumit

Quoted 2 lines

/Jarkko

#8 lore raw
Quoted 5 lines · Jarkko Sakkinen
Quoted 1 line · Sumit Garg

@Jarkko: No worries, I understand the situation.

I made the call to add them anyway to my TPM tree.

Thanks.

-Sumit

Quoted 2 lines

/Jarkko

#19 lore raw
In reply to Jarkko Sakkinen
Quoted 11 lines · Jarkko Sakkinen
Quoted 3 lines · Mimi Zohar

Thanks, Jarkko.  Agreed, trusted keys is becoming more than just TPM based keys.  Now would be a good time to set up at least a separate branch or GIT repo.

I created a tree for trusted keys:

http://git.infradead.org/users/jjs/linux-trusted-keys.git

The remaining issue before I send a patch to update MAINTAINERS is whether the flow goes through David to Linus or directly to Linus.

I use my tpmdd tree for trusted-keys changes too. For me managing two trees is only adds to work and probably does not add that much value to anyone else. The only glitch is the tree's name...

/Jarkko

author Tested-by
#9 lore raw
In reply to Jarkko Sakkinen
Quoted 4 lines · Jarkko Sakkinen
Quoted 1 line · Sumit Garg

@Jarkko: No worries, I understand the situation.

I made the call to add them anyway to my TPM tree.

Also,

I think I give a shot of doing one more PR to 5.4 because that would help both your and James' work because this is the kind of intersection point betwen them.

/Jarkko

#10 lore raw
Quoted 6 lines · Jarkko Sakkinen
Quoted 4 lines · Jarkko Sakkinen
Quoted 1 line · Sumit Garg

@Jarkko: No worries, I understand the situation.

I made the call to add them anyway to my TPM tree.

Quoted 7 lines

Also,

I think I give a shot of doing one more PR to 5.4 because that would help both your and James' work because this is the kind of intersection point betwen them.

Polished short summaries a bit:

1. Start with capital letter.
2. s/tpm2/TPM2/g

/Jarkko

#11 lore raw
Quoted 11 lines · Jarkko Sakkinen
Quoted 10 lines · Jarkko Sakkinen
Quoted 4 lines · Jarkko Sakkinen
Quoted 1 line · Sumit Garg

@Jarkko: No worries, I understand the situation.

I made the call to add them anyway to my TPM tree.

Also,

Quoted 8 lines
Quoted 3 lines

I think I give a shot of doing one more PR to 5.4 because that would help both your and James' work because this is the kind of intersection point betwen them.

Polished short summaries a bit:

1. Start with capital letter.
2. s/tpm2/TPM2/g

Now also in my next branch. I wait for 24h or so and if no alarms are rised I'll send a PR. The code changes for the most part mechanically move stuff, which makes me confident that I can still do a PR with these changes.

/Jarkko

#12 lore raw
Quoted 19 lines · Jarkko Sakkinen
Quoted 17 lines · Jarkko Sakkinen
Quoted 6 lines · Jarkko Sakkinen
Quoted 4 lines · Jarkko Sakkinen
Quoted 1 line · Sumit Garg

@Jarkko: No worries, I understand the situation.

I made the call to add them anyway to my TPM tree.

Quoted 7 lines

Also,

I think I give a shot of doing one more PR to 5.4 because that would help both your and James' work because this is the kind of intersection point betwen them.

Polished short summaries a bit:

Quoted 7 lines
Quoted 2 lines

1. Start with capital letter.
2. s/tpm2/TPM2/g

Now also in my next branch. I wait for 24h or so and if no alarms are rised I'll send a PR. The code changes for the most part mechanically move stuff, which makes me confident that I can still do a PR with these changes.

Did you notice an issue reported by kbuild test robot? It looks like asymmetric keys based on TPM also relied on old tpm_buf method. So we need to transition them also to use new tpm_buf method. I can work on corresponding changes required but need your help to test it.

-Sumit

Quoted 2 lines

/Jarkko

#13 lore raw
Quoted 30 lines · Sumit Garg
Quoted 19 lines · Jarkko Sakkinen
Quoted 17 lines · Jarkko Sakkinen
Quoted 6 lines · Jarkko Sakkinen
Quoted 4 lines · Jarkko Sakkinen
Quoted 1 line · Sumit Garg

@Jarkko: No worries, I understand the situation.

I made the call to add them anyway to my TPM tree.

Quoted 7 lines

Also,

I think I give a shot of doing one more PR to 5.4 because that would help both your and James' work because this is the kind of intersection point betwen them.

Polished short summaries a bit:

Quoted 7 lines
Quoted 2 lines

1. Start with capital letter.
2. s/tpm2/TPM2/g

Now also in my next branch. I wait for 24h or so and if no alarms are rised I'll send a PR. The code changes for the most part mechanically move stuff, which makes me confident that I can still do a PR with these changes.

Quoted 5 lines

Did you notice an issue reported by kbuild test robot? It looks like asymmetric keys based on TPM also relied on old tpm_buf method. So we need to transition them also to use new tpm_buf method. I can work on corresponding changes required but need your help to test it.

Patch: https://lkml.org/lkml/2019/9/11/312 to transition TPM asymmetric keys code.

-Sumit

Quoted 3 lines
Quoted 3 lines

/Jarkko

#17 lore raw
In reply to Mimi Zohar
Quoted 6 lines · Mimi Zohar
Quoted 5 lines · Jarkko Sakkinen
Quoted 3 lines · Mimi Zohar

Thanks, Jarkko.  Agreed, trusted keys is becoming more than just TPM based keys.  Now would be a good time to set up at least a separate branch or GIT repo.

Quoted 8 lines
Quoted 6 lines

I created a tree for trusted keys:

http://git.infradead.org/users/jjs/linux-trusted-keys.git

The remaining issue before I send a patch to update MAINTAINERS is whether the flow goes through David to Linus or directly to Linus.

David?

I think using tpmdd tree makes sense because there is so much correlation.

/Jarkko

#6 lore raw
In reply to Sumit Garg
Quoted 10 lines · Sumit Garg
Quoted 8 lines · Jarkko Sakkinen
Quoted 5 lines · Sumit Garg

For Trusted Execution Environment (TEE) as a new "trust" method, I have tried to document it here [1]. Please share your thoughts on this patch [1] in case I missed something. I would be happy to incorporate your feedback. Also, can you elaborate on "comparison to the TPM", what specifics parameters are you looking for documentation?

Quoted 7 lines
Quoted 5 lines

I think the right order is actually:

1. Set up the GIT tree.
2. Merge your TEE patches (when they pass the review phase).
3. Come up with the documentation.

Sounds good to me.

Come to 2nd thoughts. As long as the master has your changes, James should be fine and James' changes also work as a test bed for your changes. Decided to postpone.

/Jarkko

maintainer
#18 lore raw
In reply to Jarkko Sakkinen
Quoted 11 lines · Jarkko Sakkinen
Quoted 10 lines · Mimi Zohar
Quoted 9 lines · Jarkko Sakkinen
Quoted 3 lines · Mimi Zohar

Thanks, Jarkko.  Agreed, trusted keys is becoming more than just TPM based keys.  Now would be a good time to set up at least a separate branch or GIT repo.

I created a tree for trusted keys:

http://git.infradead.org/users/jjs/linux-trusted-keys.git

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

The remaining issue before I send a patch to update MAINTAINERS is whether the flow goes through David to Linus or directly to Linus.

David?

I think using tpmdd tree makes sense because there is so much correlation.

Yes, agreed.

Mimi