Page MenuHomeFreeBSD

tpm20: Disable the entropy harvester when suspending
AbandonedPublic

Authored by markj on Nov 19 2025, 9:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 10, 3:30 PM
Unknown Object (File)
Sun, Dec 28, 1:09 AM
Unknown Object (File)
Dec 14 2025, 10:14 AM
Unknown Object (File)
Dec 13 2025, 3:21 PM
Unknown Object (File)
Dec 10 2025, 1:17 AM
Unknown Object (File)
Dec 4 2025, 4:25 AM
Unknown Object (File)
Dec 3 2025, 3:53 AM
Unknown Object (File)
Dec 2 2025, 11:23 AM

Details

Reviewers
obrien
garga
Summary

Untested.

Fixes: 3deb21f1afd5 ("random: TPM_HARVEST should have been named RANDOM_ENABLE_TPM")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68751
Build 65634: arc lint + arc unit

Event Timeline

markj requested review of this revision.Nov 19 2025, 9:10 PM
garga requested changes to this revision.Nov 19 2025, 9:20 PM
garga added a subscriber: garga.
garga added inline comments.
sys/dev/tpm/tpm20.c
253

It fails to build due to lack of return

/usr/src/sys/dev/tpm/tpm20.c:254:1: error: non-void function does not return a value [-Werror,-Wreturn-type]
  254 | }
      | ^
This revision now requires changes to proceed.Nov 19 2025, 9:20 PM
markj added inline comments.
sys/dev/tpm/tpm20.c
253

Sorry, I forgot to squash a fixup commit.

markj marked an inline comment as done.

Upon resume, schedule harvesting further in the future.

With most recent modifications it works as expected

This revision is now accepted and ready to land.Nov 24 2025, 9:47 AM
garga requested changes to this revision.Dec 11 2025, 12:14 PM

@obrien @markj as I mentioned on bugzilla, this patch changed the behavior but still doesn't fix it

This revision now requires changes to proceed.Dec 11 2025, 12:14 PM

I will post a patch to just disable tpm in GENERIC. Sorry for the delay.