commit | 0524768f7820f827b0b2c8d74fba8d038166364c | [log] [tgz] |
---|---|---|
author | Andrey Pronin <apronin@google.com> | Thu Jan 27 03:13:16 2022 |
committer | Commit Bot <commit-bot@chromium.org> | 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 <apronin@chromium.org> Auto-Submit: Andrey Pronin <apronin@chromium.org> Reviewed-by: Mary Ruthven <mruthven@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Vadim Bendebury <vbendeb@chromium.org>