Skip to contentSkip to conversation

tpm: add securityfs support,for TPM 2.0 firmware event log

PATCH Ken Goldman 5 participants 21 messages Jan 25, 2017 – Feb 1, 2017 1 message not in the archive

lore
Share & tools
lore

Ken Goldman

author Tested-by
#0 lore raw
Quoted 9 lines

You do not need to send a new patch set version as long as this one gets peer tested. And it needs to be tested without hacks like plumbing TCPA with TPM 2.0 in QEMU. OF code paths needs to be peer tested to be more specific.

For me the code itself looks good but I simply cannot take it in in the current situation.

/Jarkko

I validated a firmware event log taken from a Power 8 against PCR 0-7 values for the SHA-1 and SHA-256 banks from a Nuvoton TPM 2.0 chip on that same platform.

#1 lore raw
Quoted 8 lines · Ken Goldman
Quoted 8 lines

You do not need to send a new patch set version as long as this one gets peer tested. And it needs to be tested without hacks like plumbing TCPA with TPM 2.0 in QEMU. OF code paths needs to be peer tested to be more specific.

For me the code itself looks good but I simply cannot take it in in the current situation.

Quoted 7 lines
Quoted 1 line

/Jarkko

I validated a firmware event log taken from a Power 8 against PCR 0-7 values for the SHA-1 and SHA-256 banks from a Nuvoton TPM 2.0 chip on that same platform.

Thank you! I'll add this to the commit.

/Jarkko

A message that is not in the archive (sent off-list or not yet received): CALAzByG474T_qSJ0Kry1LiNSsCQAHUagqcqtR_CnpporicZrdg@mail.gmail.com

#3 lore raw
Quoted 25 lines

From: "Ken Goldman" <[email protected] <mailto:[email protected]>>
Date: 26-Jan-2017 2:53 AM
Subject: Re: [tpmdd-devel] [PATCH v9 2/2] tpm: add securityfs support,for TPM 2.0 firmware event log
To: <[email protected] <mailto:[email protected]>>, <[email protected] <mailto:[email protected]>>, <[email protected] <mailto:[email protected]>> Cc:

You do not need to send a new patch set version as long as this one gets peer tested. And it needs to be tested without hacks like plumbing TCPA with TPM 2.0 in QEMU. OF code paths needs to be peer tested to be more specific.

For me the code itself looks good but I simply cannot take it in in the current situation.

/Jarkko

Quoted 7 lines

<mailto:[email protected]>>

I validated a firmware event log taken from a Power 8 against PCR 0-7 values for the SHA-1 and SHA-256 banks from a Nuvoton TPM 2.0 chip on that same platform.

Thank You Ken.

Jarkko, I hope now these patches can be accepted for 4.11.

Thanks & Regards,
- Nayna

Quoted 7 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to [email protected] <mailto:[email protected]> More majordomo info at http://vger.kernel.org/majordomo-info.html
<http://vger.kernel.org/majordomo-info.html>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot

#4 lore raw
Quoted 33 lines · Nayna
Quoted 25 lines

From: "Ken Goldman" <[email protected] <mailto:[email protected]>>
Date: 26-Jan-2017 2:53 AM
Subject: Re: [tpmdd-devel] [PATCH v9 2/2] tpm: add securityfs support,for TPM 2.0 firmware event log
To: <[email protected] <mailto:[email protected]>>, <[email protected] <mailto:[email protected]>>, <[email protected] <mailto:[email protected]>>
Cc:

You do not need to send a new patch set version as long as this one gets peer tested. And it needs to be tested without hacks like plumbing TCPA with TPM 2.0 in QEMU. OF code paths needs to be peer tested to be more specific.

For me the code itself looks good but I simply cannot take it in in the current situation.

/Jarkko

Quoted 7 lines

<mailto:[email protected]>>

I validated a firmware event log taken from a Power 8 against PCR 0-7 values for the SHA-1 and SHA-256 banks from a Nuvoton TPM 2.0 chip on that same platform.

Quoted 6 lines

Thank You Ken.

Jarkko, I hope now these patches can be accepted for 4.11.

Thanks & Regards,
- Nayna

Thanks Ken. I somehow managed to miss that response.

/Jarkko

#5 lore raw
In reply to Nayna
Quoted 33 lines · Nayna
Quoted 25 lines

From: "Ken Goldman" <[email protected] <mailto:[email protected]>>
Date: 26-Jan-2017 2:53 AM
Subject: Re: [tpmdd-devel] [PATCH v9 2/2] tpm: add securityfs support,for TPM 2.0 firmware event log
To: <[email protected] <mailto:[email protected]>>, <[email protected] <mailto:[email protected]>>, <[email protected] <mailto:[email protected]>> Cc:

You do not need to send a new patch set version as long as this one gets peer tested. And it needs to be tested without hacks like plumbing TCPA with TPM 2.0 in QEMU. OF code paths needs to be peer tested to be more specific.

For me the code itself looks good but I simply cannot take it in in the current situation.

/Jarkko

Quoted 7 lines

<mailto:[email protected]>>

I validated a firmware event log taken from a Power 8 against PCR 0-7 values for the SHA-1 and SHA-256 banks from a Nuvoton TPM 2.0 chip on that same platform.

Quoted 6 lines

Thank You Ken.

Jarkko, I hope now these patches can be accepted for 4.11.

Thanks & Regards,
- Nayna

I already sent my pull request to 4.11 and even today I found something fishy. You declared a function local array by using a variable in "tpm:
enhance TPM 2.0 PCR extend to support multiple banks" (max_active_banks or something). And the event log patches have just passed the review.

I've applied them to my tree but I'll only include bug fixes for 4.11 pull requests. You'll have to wait till' 4.12.

/Jarkko

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot

#6 lore raw
Quoted 38 lines · Jarkko Sakkinen
Quoted 37 lines · Nayna
Quoted 25 lines

From: "Ken Goldman" <[email protected] <mailto:[email protected]>>
Date: 26-Jan-2017 2:53 AM
Subject: Re: [tpmdd-devel] [PATCH v9 2/2] tpm: add securityfs support,for TPM 2.0 firmware event log
To: <[email protected] <mailto:[email protected]>>, <[email protected] <mailto:[email protected]>>, <[email protected] <mailto:[email protected]>> Cc:

You do not need to send a new patch set version as long as this one gets peer tested. And it needs to be tested without hacks like plumbing TCPA with TPM 2.0 in QEMU. OF code paths needs to be peer tested to be more specific.

For me the code itself looks good but I simply cannot take it in in the current situation.

/Jarkko

Quoted 7 lines

<mailto:[email protected]>>

I validated a firmware event log taken from a Power 8 against PCR 0-7 values for the SHA-1 and SHA-256 banks from a Nuvoton TPM 2.0 chip on that same platform.

Thank You Ken.

Jarkko, I hope now these patches can be accepted for 4.11.

Quoted 7 lines
Quoted 2 lines

Thanks & Regards,
- Nayna

I already sent my pull request to 4.11 and even today I found something fishy. You declared a function local array by using a variable in "tpm:
enhance TPM 2.0 PCR extend to support multiple banks" (max_active_banks or something). And the event log patches have just passed the review.

Yes. I have checked using clang and it has passed the clang.. and I also verified there were no complains during build.

What type of problem do you see ?

Also, to understand, this is related to multi-bank patchset. I mean how does it affect for event log patchset ?

Thanks & Regards,
- Nayna

Quoted 6 lines

I've applied them to my tree but I'll only include bug fixes for 4.11 pull requests. You'll have to wait till' 4.12.

/Jarkko

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot

#7 lore raw
Quoted 7 lines · Nayna
Quoted 4 lines

I already sent my pull request to 4.11 and even today I found something fishy. You declared a function local array by using a variable in "tpm:
enhance TPM 2.0 PCR extend to support multiple banks" (max_active_banks or something). And the event log patches have just passed the review.

Yes. I have checked using clang and it has passed the clang.. and I also verified there were no complains during build.

What we can deduce from that is that they didn't expose the issue in question.

I found this by running sparse with make C=2 M=drives/char/tpm

Quoted 1 line

What type of problem do you see ?

It is disallowed to do stack allocation in the kernel code even if C standard would allow it. Stack is scarce resource so you need to know its usage at compile time.

In this case you actually know the allocation because the value is not changed during the course of the function but it is still bad. Probably compiler will optimize it out. Still it is not a good practice.

Quoted 2 lines

Also, to understand, this is related to multi-bank patchset. I mean how does it affect for event log patchset ?

Well in both cases these have landed fairly late but I asked from James whether I'll have to postpone these to 4.12.

Usually when I've sent my release pull request I do not want to make any radical changes to the codebase because they always require extra QA and thus take extra time.

/Jarkko

#8 lore raw
Quoted 16 lines · Jarkko Sakkinen
Quoted 7 lines · Nayna
Quoted 4 lines

I already sent my pull request to 4.11 and even today I found something fishy. You declared a function local array by using a variable in "tpm:
enhance TPM 2.0 PCR extend to support multiple banks" (max_active_banks or something). And the event log patches have just passed the review.

Yes. I have checked using clang and it has passed the clang.. and I also verified there were no complains during build.

What we can deduce from that is that they didn't expose the issue in question.

I found this by running sparse with make C=2 M=drives/char/tpm

Quoted 1 line

What type of problem do you see ?

Quoted 7 lines

It is disallowed to do stack allocation in the kernel code even if C standard would allow it. Stack is scarce resource so you need to know its usage at compile time.

In this case you actually know the allocation because the value is not changed during the course of the function but it is still bad. Probably compiler will optimize it out. Still it is not a good practice.

Thanks Jarkko for explaining it.

Hmm, do you want me to send a patch for this ?
I think what we want is actually define it just array of size as 7.

Quoted 10 lines
Quoted 3 lines

Also, to understand, this is related to multi-bank patchset. I mean how does it affect for event log patchset ?

Well in both cases these have landed fairly late but I asked from James whether I'll have to postpone these to 4.12.

Usually when I've sent my release pull request I do not want to make any radical changes to the codebase because they always require extra QA and thus take extra time.

Thanks again for explaining details.

Thanks & Regards,
- Nayna

Quoted 3 lines

/Jarkko

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot

#9 lore raw
Quoted 23 lines · Nayna
Quoted 20 lines · Jarkko Sakkinen
Quoted 7 lines · Nayna
Quoted 4 lines

I already sent my pull request to 4.11 and even today I found something fishy. You declared a function local array by using a variable in "tpm:
enhance TPM 2.0 PCR extend to support multiple banks" (max_active_banks or something). And the event log patches have just passed the review.

Yes. I have checked using clang and it has passed the clang.. and I also verified there were no complains during build.

What we can deduce from that is that they didn't expose the issue in question.

I found this by running sparse with make C=2 M=drives/char/tpm

Quoted 1 line

What type of problem do you see ?

It is disallowed to do stack allocation in the kernel code even if C standard would allow it. Stack is scarce resource so you need to know its usage at compile time.

Quoted 8 lines
Quoted 3 lines

In this case you actually know the allocation because the value is not changed during the course of the function but it is still bad. Probably compiler will optimize it out. Still it is not a good practice.

Thanks Jarkko for explaining it.

Hmm, do you want me to send a patch for this ?
I think what we want is actually define it just array of size as 7.

No but please test my tree and check that it still works.

/Jarkko

#10 lore raw
In reply to Jarkko Sakkinen
Quoted 27 lines · Jarkko Sakkinen
Quoted 7 lines · Nayna
Quoted 4 lines

I already sent my pull request to 4.11 and even today I found something fishy. You declared a function local array by using a variable in "tpm:
enhance TPM 2.0 PCR extend to support multiple banks" (max_active_banks or something). And the event log patches have just passed the review.

Yes. I have checked using clang and it has passed the clang.. and I also verified there were no complains during build.

What we can deduce from that is that they didn't expose the issue in question.

I found this by running sparse with make C=2 M=drives/char/tpm

Quoted 1 line

What type of problem do you see ?

It is disallowed to do stack allocation in the kernel code even if C standard would allow it. Stack is scarce resource so you need to know its usage at compile time.

In this case you actually know the allocation because the value is not changed during the course of the function but it is still bad. Probably compiler will optimize it out. Still it is not a good practice.

Quoted 2 lines

Also, to understand, this is related to multi-bank patchset. I mean how does it affect for event log patchset ?

Quoted 6 lines

Well in both cases these have landed fairly late but I asked from James whether I'll have to postpone these to 4.12.

Usually when I've sent my release pull request I do not want to make any radical changes to the codebase because they always require extra QA and thus take extra time.

rc = tpm_transmit_cmd(chip, buf.data, tpm_buf_length(&buf), 0, 0,

		      "attempting extend a PCR value");

This should be

rc = tpm_transmit_cmd(chip, buf.data, PAGE_SIZE, 0, 0,

		      "attempting extend a PCR value");

The second parameter is the size of the buffer, not length of the input data.

I'll update this...

/Jarkko

#11 lore raw
Quoted 40 lines · Jarkko Sakkinen
Quoted 27 lines · Jarkko Sakkinen
Quoted 7 lines · Nayna
Quoted 4 lines

I already sent my pull request to 4.11 and even today I found something fishy. You declared a function local array by using a variable in "tpm:
enhance TPM 2.0 PCR extend to support multiple banks" (max_active_banks or something). And the event log patches have just passed the review.

Yes. I have checked using clang and it has passed the clang.. and I also verified there were no complains during build.

What we can deduce from that is that they didn't expose the issue in question.

I found this by running sparse with make C=2 M=drives/char/tpm

Quoted 1 line

What type of problem do you see ?

It is disallowed to do stack allocation in the kernel code even if C standard would allow it. Stack is scarce resource so you need to know its usage at compile time.

In this case you actually know the allocation because the value is not changed during the course of the function but it is still bad. Probably compiler will optimize it out. Still it is not a good practice.

Quoted 2 lines

Also, to understand, this is related to multi-bank patchset. I mean how does it affect for event log patchset ?

Quoted 6 lines

Well in both cases these have landed fairly late but I asked from James whether I'll have to postpone these to 4.12.

Usually when I've sent my release pull request I do not want to make any radical changes to the codebase because they always require extra QA and thus take extra time.

rc = tpm_transmit_cmd(chip, buf.data, tpm_buf_length(&buf), 0, 0,

		      "attempting extend a PCR value");

This should be

Quoted 7 lines

rc = tpm_transmit_cmd(chip, buf.data, PAGE_SIZE, 0, 0,

		      "attempting extend a PCR value");

The second parameter is the size of the buffer, not length of the input data.

/Jarkko

As a sanity check can you test these commits and see if they still work for you as I've done now some updates to them? Thanks.

/Jarkko

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot

#12 lore raw
Quoted 44 lines · Jarkko Sakkinen
Quoted 43 lines · Jarkko Sakkinen
Quoted 27 lines · Jarkko Sakkinen
Quoted 7 lines · Nayna
Quoted 4 lines

I already sent my pull request to 4.11 and even today I found something fishy. You declared a function local array by using a variable in "tpm:
enhance TPM 2.0 PCR extend to support multiple banks" (max_active_banks or something). And the event log patches have just passed the review.

Yes. I have checked using clang and it has passed the clang.. and I also verified there were no complains during build.

What we can deduce from that is that they didn't expose the issue in question.

I found this by running sparse with make C=2 M=drives/char/tpm

Quoted 1 line

What type of problem do you see ?

It is disallowed to do stack allocation in the kernel code even if C standard would allow it. Stack is scarce resource so you need to know its usage at compile time.

In this case you actually know the allocation because the value is not changed during the course of the function but it is still bad. Probably compiler will optimize it out. Still it is not a good practice.

Quoted 2 lines

Also, to understand, this is related to multi-bank patchset. I mean how does it affect for event log patchset ?

Quoted 6 lines

Well in both cases these have landed fairly late but I asked from James whether I'll have to postpone these to 4.12.

Usually when I've sent my release pull request I do not want to make any radical changes to the codebase because they always require extra QA and thus take extra time.

rc = tpm_transmit_cmd(chip, buf.data, tpm_buf_length(&buf), 0, 0,

		      "attempting extend a PCR value");

This should be

rc = tpm_transmit_cmd(chip, buf.data, PAGE_SIZE, 0, 0,

		      "attempting extend a PCR value");
Quoted 7 lines
Quoted 4 lines

The second parameter is the size of the buffer, not length of the input data.

/Jarkko

As a sanity check can you test these commits and see if they still work for you as I've done now some updates to them? Thanks.

Thanks Jarkko, yes I tested for both multi-bank patches and event log. Its working fine.

Thanks & Regards,
- Nayna

Quoted 3 lines

/Jarkko

#13 lore raw
Quoted 52 lines · Nayna
Quoted 49 lines · Jarkko Sakkinen
Quoted 47 lines · Jarkko Sakkinen
Quoted 27 lines · Jarkko Sakkinen
Quoted 7 lines · Nayna
Quoted 4 lines

I already sent my pull request to 4.11 and even today I found something fishy. You declared a function local array by using a variable in "tpm:
enhance TPM 2.0 PCR extend to support multiple banks" (max_active_banks or something). And the event log patches have just passed the review.

Yes. I have checked using clang and it has passed the clang.. and I also verified there were no complains during build.

What we can deduce from that is that they didn't expose the issue in question.

I found this by running sparse with make C=2 M=drives/char/tpm

Quoted 1 line

What type of problem do you see ?

It is disallowed to do stack allocation in the kernel code even if C standard would allow it. Stack is scarce resource so you need to know its usage at compile time.

In this case you actually know the allocation because the value is not changed during the course of the function but it is still bad. Probably compiler will optimize it out. Still it is not a good practice.

Quoted 2 lines

Also, to understand, this is related to multi-bank patchset. I mean how does it affect for event log patchset ?

Quoted 6 lines

Well in both cases these have landed fairly late but I asked from James whether I'll have to postpone these to 4.12.

Usually when I've sent my release pull request I do not want to make any radical changes to the codebase because they always require extra QA and thus take extra time.

rc = tpm_transmit_cmd(chip, buf.data, tpm_buf_length(&buf), 0, 0,

		      "attempting extend a PCR value");

This should be

rc = tpm_transmit_cmd(chip, buf.data, PAGE_SIZE, 0, 0,

		      "attempting extend a PCR value");

The second parameter is the size of the buffer, not length of the input data.

/Jarkko

Quoted 8 lines
Quoted 2 lines

As a sanity check can you test these commits and see if they still work for you as I've done now some updates to them? Thanks.

Thanks Jarkko, yes I tested for both multi-bank patches and event log. Its working fine.

Thanks & Regards,
- Nayna

OK, good, thanks.

/Jarkko

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot

#14 lore raw
In reply to Jarkko Sakkinen
Quoted 41 lines · Jarkko Sakkinen
Quoted 33 lines · Nayna
Quoted 25 lines

From: "Ken Goldman" <[email protected] <mailto:[email protected]>>
Date: 26-Jan-2017 2:53 AM
Subject: Re: [tpmdd-devel] [PATCH v9 2/2] tpm: add securityfs support,for TPM 2.0 firmware event log
To: <[email protected] <mailto:[email protected]>>, <[email protected] <mailto:[email protected]>>, <[email protected] <mailto:[email protected]>> Cc:

You do not need to send a new patch set version as long as this one gets peer tested. And it needs to be tested without hacks like plumbing TCPA with TPM 2.0 in QEMU. OF code paths needs to be peer tested to be more specific.

For me the code itself looks good but I simply cannot take it in in the current situation.

/Jarkko

Quoted 7 lines

<mailto:[email protected]>>

I validated a firmware event log taken from a Power 8 against PCR 0-7 values for the SHA-1 and SHA-256 banks from a Nuvoton TPM 2.0 chip on that same platform.

Quoted 6 lines

Thank You Ken.

Jarkko, I hope now these patches can be accepted for 4.11.

Thanks & Regards,
- Nayna

Quoted 7 lines

I already sent my pull request to 4.11 and even today I found something fishy. You declared a function local array by using a variable in "tpm:
enhance TPM 2.0 PCR extend to support multiple banks" (max_active_banks or something). And the event log patches have just passed the review.

I've applied them to my tree but I'll only include bug fixes for 4.11 pull requests. You'll have to wait till' 4.12.

James,

The discussion is about two features:

1. Extension to tpm_pcr_extend() (used by IMA) to extend all PCR banks instead of just SHA-1 banks. It is recommended by TCG to do so in order to prevent malicious use of PCRs.
2. TPM 2.0 event log with backend support for OF device tree (for getting address where you can grab it).

These are required as baseline to implement full TPM 2.0 support for IMA. The commits are fairly well baked and went through many iterations. I've tested tpm_pcr_extend() patches. I haven't tested event log patches but have extensively reviewed them and Ken Goldman has tested them with POWER hardware.

I don't believe that there is major risk to put them already into 4.11 but it is fairly late so I just want a second opinion before putting them into pull request.

I have some small scoped bug fixes that I will send to you in any case (unrelated to this work).

/Jarkko

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot

#15 lore raw
Quoted 16 lines · Jarkko Sakkinen

James,

The discussion is about two features:

1. Extension to tpm_pcr_extend() (used by IMA) to extend all PCR banks instead of just SHA-1 banks. It is recommended by TCG to do so in order to prevent malicious use of PCRs.
2. TPM 2.0 event log with backend support for OF device tree (for getting address where you can grab it).

These are required as baseline to implement full TPM 2.0 support for IMA. The commits are fairly well baked and went through many iterations. I've tested tpm_pcr_extend() patches. I haven't tested event log patches but have extensively reviewed them and Ken Goldman has tested them with POWER hardware.

Quoted 4 lines

I don't believe that there is major risk to put them already into 4.11 but it is fairly late so I just want a second opinion before putting them into pull request.

I'll take this for 4.11. IMA + TPM 2.0 is still developmental and not in wide use, afaik.

Signature · 2 lines
James Morris
<[email protected]>
#16 lore raw
Quoted 18 lines · James Morris
Quoted 16 lines · Jarkko Sakkinen

James,

The discussion is about two features:

1. Extension to tpm_pcr_extend() (used by IMA) to extend all PCR banks instead of just SHA-1 banks. It is recommended by TCG to do so in order to prevent malicious use of PCRs.
2. TPM 2.0 event log with backend support for OF device tree (for getting address where you can grab it).

These are required as baseline to implement full TPM 2.0 support for IMA. The commits are fairly well baked and went through many iterations. I've tested tpm_pcr_extend() patches. I haven't tested event log patches but have extensively reviewed them and Ken Goldman has tested them with POWER hardware.

Quoted 13 lines
Quoted 4 lines

I don't believe that there is major risk to put them already into 4.11 but it is fairly late so I just want a second opinion before putting them into pull request.

I'll take this for 4.11. IMA + TPM 2.0 is still developmental and not in wide use, afaik.

Signature · 2 lines
James Morris
<[email protected]>

Great! I'll prepare the pull request tomorrow (it's now 12:30AM in Finland). Thank you.

/Jarkko

#17 lore raw
In reply to James Morris
Quoted 18 lines · James Morris
Quoted 16 lines · Jarkko Sakkinen

James,

The discussion is about two features:

1. Extension to tpm_pcr_extend() (used by IMA) to extend all PCR banks instead of just SHA-1 banks. It is recommended by TCG to do so in order to prevent malicious use of PCRs.
2. TPM 2.0 event log with backend support for OF device tree (for getting address where you can grab it).

These are required as baseline to implement full TPM 2.0 support for IMA. The commits are fairly well baked and went through many iterations. I've tested tpm_pcr_extend() patches. I haven't tested event log patches but have extensively reviewed them and Ken Goldman has tested them with POWER hardware.

Quoted 7 lines
Quoted 4 lines

I don't believe that there is major risk to put them already into 4.11 but it is fairly late so I just want a second opinion before putting them into pull request.

I'll take this for 4.11. IMA + TPM 2.0 is still developmental and not in wide use, afaik.

Thank you! FYI, I've been running with them as well.

Mimi

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot

#18 lore raw
Quoted 24 lines · Mimi Zohar
Quoted 23 lines · James Morris
Quoted 20 lines · Jarkko Sakkinen

James,

The discussion is about two features:

1. Extension to tpm_pcr_extend() (used by IMA) to extend all PCR banks instead of just SHA-1 banks. It is recommended by TCG to do so in order to prevent malicious use of PCRs.
2. TPM 2.0 event log with backend support for OF device tree (for getting address where you can grab it).

These are required as baseline to implement full TPM 2.0 support for IMA. The commits are fairly well baked and went through many iterations. I've tested tpm_pcr_extend() patches. I haven't tested event log patches but have extensively reviewed them and Ken Goldman has tested them with POWER hardware.

I don't believe that there is major risk to put them already into 4.11 but it is fairly late so I just want a second opinion before putting them into pull request.

Quoted 6 lines
Quoted 2 lines

I'll take this for 4.11. IMA + TPM 2.0 is still developmental and not in wide use, afaik.

Thank you! FYI, I've been running with them as well.

Mimi

OK, so can I also add your Tested-by to these four commits?

/Jarkko

#19 lore raw
Quoted 25 lines · Jarkko Sakkinen
Quoted 24 lines · Mimi Zohar
Quoted 23 lines · James Morris
Quoted 20 lines · Jarkko Sakkinen

James,

The discussion is about two features:

1. Extension to tpm_pcr_extend() (used by IMA) to extend all PCR banks instead of just SHA-1 banks. It is recommended by TCG to do so in order to prevent malicious use of PCRs.
2. TPM 2.0 event log with backend support for OF device tree (for getting address where you can grab it).

These are required as baseline to implement full TPM 2.0 support for IMA. The commits are fairly well baked and went through many iterations. I've tested tpm_pcr_extend() patches. I haven't tested event log patches but have extensively reviewed them and Ken Goldman has tested them with POWER hardware.

I don't believe that there is major risk to put them already into 4.11 but it is fairly late so I just want a second opinion before putting them into pull request.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

I'll take this for 4.11. IMA + TPM 2.0 is still developmental and not in wide use, afaik.

Thank you! FYI, I've been running with them as well.

Mimi

OK, so can I also add your Tested-by to these four commits?

I provided Ken with the firmware event log, IMA measurement list, and
the PCRs for testing. Ken's tested-by is fine. Missing is Stefan's
tested-by - https://sourceforge.net/p/tpmdd/mailman/message/35602588/
I would really appreciate your adding his tested-by.

thanks,

Mimi

#20 lore raw
Quoted 35 lines · Mimi Zohar
Quoted 25 lines · Jarkko Sakkinen
Quoted 24 lines · Mimi Zohar
Quoted 23 lines · James Morris
Quoted 20 lines · Jarkko Sakkinen

James,

The discussion is about two features:

1. Extension to tpm_pcr_extend() (used by IMA) to extend all PCR banks instead of just SHA-1 banks. It is recommended by TCG to do so in order to prevent malicious use of PCRs.
2. TPM 2.0 event log with backend support for OF device tree (for getting address where you can grab it).

These are required as baseline to implement full TPM 2.0 support for IMA. The commits are fairly well baked and went through many iterations. I've tested tpm_pcr_extend() patches. I haven't tested event log patches but have extensively reviewed them and Ken Goldman has tested them with POWER hardware.

I don't believe that there is major risk to put them already into 4.11 but it is fairly late so I just want a second opinion before putting them into pull request.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

I'll take this for 4.11. IMA + TPM 2.0 is still developmental and not in wide use, afaik.

Thank you! FYI, I've been running with them as well.

Mimi

OK, so can I also add your Tested-by to these four commits?

Quoted 8 lines

I provided Ken with the firmware event log, IMA measurement list, and
the PCRs for testing. Ken's tested-by is fine. Missing is Stefan's
tested-by - https://sourceforge.net/p/tpmdd/mailman/message/35602588/
I would really appreciate your adding his tested-by.

thanks,

Mimi

Sure, I'll add it.

/Jarkko

#21 lore raw

Re: [tpmdd-devel] [PATCH v9 2/2] tpm: add securityfs support, for TPM 2.0 firmware event log

In reply to Ken Goldman
Quoted 11 lines · Ken Goldman
Quoted 9 lines

You do not need to send a new patch set version as long as this one gets peer tested. And it needs to be tested without hacks like plumbing TCPA with TPM 2.0 in QEMU. OF code paths needs to be peer tested to be more specific.

For me the code itself looks good but I simply cannot take it in in the current situation.

/Jarkko

Thanks. This explains it. I got Naynas response before I got this one. That's why it went unnoticed.

/Jarkko

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot