Skip to content

mod-tdx-guest: validate RTMR index and remove dead code#569

Merged
kvinwang merged 1 commit intomasterfrom
fix/tdx-guest-rtmr-validation
Mar 18, 2026
Merged

mod-tdx-guest: validate RTMR index and remove dead code#569
kvinwang merged 1 commit intomasterfrom
fix/tdx-guest-rtmr-validation

Conversation

@kvinwang
Copy link
Copy Markdown
Collaborator

Summary

  • Add RTMR index bounds check (index > 3 → -EINVAL) before issuing TDG_MR_RTMR_EXTEND TDCALL, as TDX only defines RTMR0-3
  • Remove unreachable dead code in tdx_guest_init()

Closes: Dstack-TEE/meta-dstack#45

- Add bounds check (index > 3) before TDG_MR_RTMR_EXTEND TDCALL
- Remove unreachable code after return in tdx_guest_init()

Closes: Dstack-TEE/meta-dstack#45
@kvinwang kvinwang merged commit 06a2347 into master Mar 18, 2026
14 checks passed
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.

Custom out-of-tree TDX guest kernel module replaces upstream

1 participant