Skip to content

Failed to extend rtmr[2] and rtmr[3] #472

@RodgerZhu

Description

@RodgerZhu

In ubuntu24.04 guest OS (TDVM), run the tdx-attest-dev sample, it will get Quote successfully, but fail to extend rtmr[2] and rtmr[3].
Reproduce steps as below:

  1. go to libtdx-attest-dev/examples
    cd /usr/share/doc/libtdx-attest-dev/examples
  2. comple sample code
    make
  3. run sample code
    ./test_tdx_attest

output as below:
00001360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00001370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00001380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Successfully get the TD Quote

Wrote TD Quote to quote.dat

Failed to extend rtmr[2]

Failed to extend rtmr[3]

Checked the api (tdx_att_extend) used to extend rtmr, it still uses ioctl mode to extend rtmr, should it be changed to configfs mode?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions