Page MenuHomeFreeBSD

tpm20: Disable the entropy harvester when suspending
Needs ReviewPublic

Authored by markj on Wed, Nov 19, 9:10 PM.
Tags
None
Referenced Files
F136871384: D53835.id166806.diff
Thu, Nov 20, 7:00 AM
Unknown Object (File)
Thu, Nov 20, 1:24 AM
Unknown Object (File)
Thu, Nov 20, 12:44 AM
Unknown Object (File)
Thu, Nov 20, 12:13 AM
Unknown Object (File)
Thu, Nov 20, 12:00 AM
Unknown Object (File)
Wed, Nov 19, 11:56 PM
Unknown Object (File)
Wed, Nov 19, 11:56 PM
Unknown Object (File)
Wed, Nov 19, 11:45 PM
Subscribers

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 68749
Build 65632: arc lint + arc unit

Event Timeline

markj requested review of this revision.Wed, Nov 19, 9:10 PM
garga requested changes to this revision.Wed, Nov 19, 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.Wed, Nov 19, 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.