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

fix: sd-measure dtbauto and hwdids arg parsing #35765

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

frezbo
Copy link
Contributor

@frezbo frezbo commented Dec 27, 2024

Commit 630cf4e introduced .dtbauto, but since it's before .hwdids commit 4c0b7f4 made dtbauto the last argument whereas it should have been hwdids.

Otherwise the code was measuring the content of hwdids into dtbauto section and vice-versa.

Found this while adding the new dtbauto and .hwdids fields in the go implementation of sd-measure at
https://github.com/siderolabs/talos/blob/main/internal/pkg/secureboot/measure/measure.go.

@github-actions github-actions bot added the please-review PR is ready for (re-)review by a maintainer label Dec 27, 2024
Commit 630cf4e introduced `.dtbauto`,
but since it's before `.hwdids` commit 4c0b7f4
made `dtbauto` the last argument whereas it should have been `hwdids`.

Otherwise the code was measuring the content of hwdids into dtbauto
section and vice-versa.

Found this while adding the new `dtbauto` and `.hwdids` fields in the go
implementation of `sd-measure` at
https://github.com/siderolabs/talos/blob/main/internal/pkg/secureboot/measure/measure.go.

Signed-off-by: Noel Georgi <git@frezbo.dev>
@frezbo frezbo force-pushed the fix/sd-measure-arg-parsing branch from 19311a4 to 0c4abd7 Compare December 27, 2024 11:55
frezbo added a commit to frezbo/talos that referenced this pull request Dec 27, 2024
Bring in parity with systemd 257 by supporting more UKI sections.

The output of `sd-measure` and our measure code will be different until
systemd/systemd#35765 is fixed upstream.

Signed-off-by: Noel Georgi <git@frezbo.dev>
frezbo added a commit to frezbo/talos that referenced this pull request Dec 27, 2024
Bring in parity with systemd 257 by supporting more UKI sections.

The output of `sd-measure` and our measure code will be different until
systemd/systemd#35765 is fixed upstream.

Signed-off-by: Noel Georgi <git@frezbo.dev>
@poettering poettering merged commit 0ad1fd7 into systemd:main Jan 3, 2025
40 of 46 checks passed
@poettering poettering added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed tpm2 and removed please-review PR is ready for (re-)review by a maintainer labels Jan 3, 2025
@frezbo frezbo deleted the fix/sd-measure-arg-parsing branch January 3, 2025 12:03
frezbo added a commit to frezbo/talos that referenced this pull request Jan 3, 2025
Bring in parity with systemd 257 by supporting more UKI sections.

The output of `sd-measure` and our measure code will be different until
systemd/systemd#35765 is fixed upstream.

Fixes: siderolabs#10075

Signed-off-by: Noel Georgi <git@frezbo.dev>
@github-actions github-actions bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants