Re: [PATCH] tpm: Disable TPM2_TCG_HMAC by default

From
Chris Fenner <hidden>
Date
2025-09-18 19:51:17
Also in
keyrings, linux-integrity, lkml
Reply to
Jarkko Sakkinen, 2025-09-18
Agreed, the feature needs some work in order to provide meaningful
security value, and disabling it by default facilitates that work.

Reviewed-By: Chris Fenner <redacted>

On Thu, Sep 18, 2025 at 12:12 PM Jarkko Sakkinen [off-list ref] wrote:
On Thu, Sep 18, 2025 at 07:56:53PM +0100, Jonathan McDowell wrote:
quoted
On Mon, Aug 25, 2025 at 11:32:23PM +0300, Jarkko Sakkinen wrote:
quoted
After reading all the feedback, right now disabling the TPM2_TCG_HMAC
is the right call.

Other views discussed:

A. Having a kernel command-line parameter or refining the feature
  otherwise. This goes to the area of improvements.  E.g., one
  example is my own idea where the null key specific code would be
  replaced with a persistent handle parameter (which can be
  *unambigously* defined as part of attestation process when
  done correctly).

B. Removing the code. I don't buy this because that is same as saying
  that HMAC encryption cannot work at all (if really nitpicking) in
  any form. Also I disagree on the view that the feature could not
  be refined to something more reasoable.

Also, both A and B are worst options in terms of backporting.

Thus, this is the best possible choice.
I think this is reasonable; it's adding runtime overhead and not adding
enough benefit to be the default upstream.
Yes, I think this is a balanced change. I agree what you say and at the
same time this gives more space to refine it something usable. Right now
it is much harder to tackle those issue, as it is part of the default
config. By looking at things from this angle, the change is also
benefical for the feature itself (in the long run).
quoted
Reviewed-By: Jonathan McDowell <redacted>
Thank you! I appreciate this and will append this to the commit.

BR, Jarkko
Thread (5 messages) 5 messages, 3 authors, last reply 2025-09-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help