| commit | 0524768f7820f827b0b2c8d74fba8d038166364c | [log] [tgz] |
|---|---|---|
| author | Andrey Pronin <[email protected]> | Thu Jan 27 03:13:16 2022 |
| committer | Commit Bot <[email protected]> | Thu Jan 27 15:05:58 2022 |
| tree | 774719ed97ff3783a0e21cb191459ff627cf3616 | |
| parent | bb857c140108b20805d9c64a280661823aee63f6 [diff] |
tpm2: immediately save corrected s_ramIndex and size
This CL triggers saving corrected RAM-backed NV indices as soon as they
are corrected after detected corruption. Otherwise, s_ramIndexSize may
stay wrong if correction changes it.
BUG=b:211564769
TEST=1) create one or more orderly counters
2) set s_ramIndexSize to 0 and save
3) reboot
4) read & increment one counter
5) reboot
6) make sure the new value is preserved
Change-Id: I4f0279a946eaf6bf8dd7f999c5c72bc977b86fc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/tpm2/+/3419037
Tested-by: Andrey Pronin <[email protected]>
Auto-Submit: Andrey Pronin <[email protected]>
Reviewed-by: Mary Ruthven <[email protected]>
Reviewed-by: Vadim Bendebury <[email protected]>
Commit-Queue: Vadim Bendebury <[email protected]>