aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/tpm_eventlog.h
diff options
context:
space:
mode:
authorJia Zhang <zhang.jia@linux.alibaba.com>2019-01-11 16:59:33 +0800
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2019-02-13 09:47:00 +0200
commit64494d39ff630a63b5308042b20132b491e3706b (patch)
tree3a243002a362fd4df425104472ba09ee6b1549c9 /include/linux/tpm_eventlog.h
parenttpm: Simplify the measurements loop (diff)
downloadwireguard-linux-64494d39ff630a63b5308042b20132b491e3706b.tar.xz
wireguard-linux-64494d39ff630a63b5308042b20132b491e3706b.zip
tpm: Fix off-by-one when reading binary_bios_measurements
It is unable to read the entry when it is the only one in binary_bios_measurements: 00000000 00 00 00 00 08 00 00 00 c4 2f ed ad 26 82 00 cb 00000010 1d 15 f9 78 41 c3 44 e7 9d ae 33 20 00 00 00 00 00000020 This is obviously a firmware problem on my linux machine: Manufacturer: Inspur Product Name: SA5212M4 Version: 01 However, binary_bios_measurements should return it any way, rather than nothing, after all its content is completely valid. Fixes: 55a82ab3181b ("tpm: add bios measurement log") Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com> Reviewd-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'include/linux/tpm_eventlog.h')
0 files changed, 0 insertions, 0 deletions