]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: check that `ret_version` is valid in tpm_log_tagged_event
authorMichael Vogt <michael@amutable.com>
Fri, 13 Mar 2026 10:33:25 +0000 (11:33 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 13 Mar 2026 11:26:23 +0000 (12:26 +0100)
commit95aff47112cff5607db7e34d78aa9db813818405
tree47f380ac471d8118d955967946aea81356325087
parentc6815436809268cf2adc797be85e050a65a7280d
boot: check that `ret_version` is valid in tpm_log_tagged_event

In a project I'm working on I recently observed a boot failure
with the most recent version of systemd. It seems it is triggered
by bb19b61049 which fixed a bug that now leads to the function
being excuted differently. The code is missing a check if
`*ret_version` is actually valid in the `ret_measured = true`
case.
src/boot/measure.c