Skip to content
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

Slrt #16

Merged
merged 8 commits into from
Apr 11, 2024
Merged

Slrt #16

merged 8 commits into from
Apr 11, 2024

Conversation

krystian-hebel
Copy link
Member

No description provided.

include/slrt.h Fixed Show fixed Hide fixed
Copy link
Member

@SergiiDmytruk SergiiDmytruk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, comments are mostly code nits.

event_log.c Outdated Show resolved Hide resolved
head.S Outdated Show resolved Hide resolved
include/slrt.h Outdated Show resolved Hide resolved
event_log.c Outdated Show resolved Hide resolved
main.c Show resolved Hide resolved
pm_kernel_entry and zero_page were renamed to dlme_entry and dlme_arg,
respectively. Their previous names were valid only for Linux.

Signed-off-by: Krystian Hebel <[email protected]>
Linux, Multiboot2 and simple payload don't have overlapping uses for
values passed through registers or stack. All of those can be set at
the same time.

Signed-off-by: Krystian Hebel <[email protected]>
SKL hashes are no longer passed from the bootloader. Measured code and
read-only data are not changed, and all other data is created at runtime
so SKL is able to measure itself, which it now does. Those hashes are
only used for event log entries, PCR was extended as a result of SKINIT
instruction on Dynamic Launch Event.

Signed-off-by: Krystian Hebel <[email protected]>
This removes different handling between boot protocols. Everything is
reduced to one range of consecutive memory for DLME, as well as pointer
to the entry point, which is measured to PCR 17 as an offset from DLME
base to avoid attacks based on jumping to different parts of DLME.

Signed-off-by: Krystian Hebel <[email protected]>
MULTIBOOT2_BOOTLOADER_MAGIC has been moved to defs.h as it is still
used in head.S.

Signed-off-by: Krystian Hebel <[email protected]>
It used to be defined in boot.h, even though it isn't expected to be
ever needed anywhere but in code for handling event log internally.

Signed-off-by: Krystian Hebel <[email protected]>
Copy link
Collaborator

@rossphilipson rossphilipson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should go in now. There may be changes to the SLRT and ABI but this moves us forward.
Thanks
Reviewed-by: Ross Philipson [email protected]

@rossphilipson rossphilipson merged commit 8c4fea6 into shrink_measured_size Apr 11, 2024
66 checks passed
@macpijan macpijan deleted the slrt branch April 16, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants