commit | c64cfc2832d6b75b0198bcef6f4305e225c6e6c6 | [log] [tgz] |
---|---|---|
author | Andrey Pronin <apronin@google.com> | Mon Jul 12 17:43:08 2021 +0300 |
committer | Andrey Pronin <apronin@chromium.org> | Wed Jul 14 08:57:51 2021 +0000 |
tree | 58c6fda2eb8e68e217d335240f03cb29c1d0ba48 | |
parent | 8c9892c8b6e2986e2fa924a35d47daf7572c2a22 [diff] |
tpm_storage: fix uninitialized use of entry in read_log_entries This CL uses the correct pointer to entry when checking if the resulting entry->counter is non-zero when looking for empty entries. BUG=b:193407596 TEST=make all Change-Id: I321a089de2af18fe8aabc3c3e74023c8efb883e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/pinweaver/+/3021124 Reviewed-by: Aashay Shringarpure <aashay@google.com> Commit-Queue: Andrey Pronin <apronin@chromium.org> Tested-by: Andrey Pronin <apronin@chromium.org>
This directory contains reference PinWeaver code that can be used across implementation platforms.
It consists of:
pinweaver.h
- PinWeaver embedded API definitionpinweaver.c
- implementationpinweaver_eal.h
- API for Environment Abstraction Layer (EAL) used by PinWeavereal/**/pinweaver_eal_types.h
pinweaver_types.h
- header that is shared by PinWeaver implementation and PinWeaver clients that call it through platform-specific interface.eal/
foldereal/cr50
- implementation for cr50pinweaver_eal_types.h
- cr50-specific EAL API typespinweaver_eal.c
- cr50 implementation of EALeal/tpm_storage
- implementation for platforms that use TPM as PinWeaver data storagepinweaver_eal_types.h
- TPM-storage-specific EAL API typespinweaver_eal_tpm.h
- additional EAL functions required by TPM storagepinweaver_eal_linux.c
- implementation of non-storage EAL methods for Linux casetpm_storage_stubs.c
- empty implementation of storage EAL methodstpm_storage.c
- implementation of storage EAL methods on top of TSSmini_trunks/
- mini-TSS (TPM client software stack) used by TPM storage implementationpinweaver_eal.h
+ pinweaver_eal_tpm.h
EAL methodstss.h
+ *authorization_delegate.h
A platform implementation that uses TPM storage EAL option needs to implement all EAL methods implemented in pinweaver_eal_linux.c
(or use it as-is, if Linux compatible).