New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault in create_mb_refstate script #1153
Comments
ansasaki
added a commit
to ansasaki/keylime
that referenced
this issue
Nov 4, 2022
In enrich_device_path(), get the length of DevicePath from the field LengthOfDevicePath instead of calculating the length from the bytes array. This avoids a segmentation fault when processing the measured boot event log in create_mb_refstate script. This is called for the events "EV_EFI_BOOT_SERVICES_APPLICATION", "EV_EFI_BOOT_SERVICES_DRIVER", and "EV_EFI_RUNTIME_SERVICES_DRIVER". Fixes: keylime#1153 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This here seems to be a solution but I don't know whether this is the correct way of handling it? @maugustosilva , @galmasi ?
|
mpeters
pushed a commit
that referenced
this issue
Nov 7, 2022
In enrich_device_path(), get the length of DevicePath from the field LengthOfDevicePath instead of calculating the length from the bytes array. This avoids a segmentation fault when processing the measured boot event log in create_mb_refstate script. This is called for the events "EV_EFI_BOOT_SERVICES_APPLICATION", "EV_EFI_BOOT_SERVICES_DRIVER", and "EV_EFI_RUNTIME_SERVICES_DRIVER". Fixes: #1153 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your issue a feature request? If so, please raise it as an enhancement
Environment
Description
Segmentation fault in
create_mb_refstate
depending on the input provided.Expected behavior vs. actual behavior
The script should run normally instead of core dump with segmentation fault
Steps to reproduce problem
scripts
mb_log_b64.txt
linked belowbase64 -d mb_log_b64.txt > mb_log.bin
./create_mb_refstate mb_log.bin mb_refstate.json
Relevant logs
tpm2_eventlog --eventlog_version=2
Attach any relevant log files that can help to debug your issue.
The text was updated successfully, but these errors were encountered: