-
Notifications
You must be signed in to change notification settings - Fork 57
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
td-shim-tee-info-hash: MRTD calculation for OVMF #740
Comments
hi @mythi , I tried OVMF on my local machine and I can see the guest report MRTD matches the generated value using tee-info-hash tool. Could you share the manifest and OVMF image that can reproduce this issue? If the attributes/xfam/mrconfigid/mrowner/mrownerconfig values in manifest does not match real tdreport values, it will result in incorrect MRTD prediction. |
@gaojiaqi7 thanks for checking. Let me retry on my side to double check. Maybe I indeed had a user-error with the manifest (I remember I had some issues with it). |
I can reproduce the original issue still. I'm running Canonical 24.04 + TDX from it. |
I have tested both ovmf
Right. The manifest affects |
I can try to get my setup updated for these and will get back to this. thanks! |
This issue seems duplicate of #683 which seem to highlight that qexu with tdx patches does the page processing it different way as mentioned here. I created a patch which processes all the pages for a section first and than extends the section data in chunks which seem to give matching MRTD hash with qemu 9.0.2 from canonical repo. I have attached the patch here in case someone want to try it. Question to may be for @jyao1, Is this tool indended only for qemu without tdx patches? |
Describe the bug
I'm using
td-shim-tee-info-hash
to get OVMF generated MRTD "reproduced" but I'm not getting a match.How to reproduce
The printed MRTD is
3491d438652cde331546683a37120504e961d02d871002f621fe51357df20c848406e485b625f2fd27bf3de32f49da70
.My TDVM is booted with the same OVMF but the quote generated in it gives
91eb2b44d141d4ece09f0c75c2c53d247a3c68edd7fafe8a3520c942a604a407de03ae6dc5f87f27428b2538873118b7
CoCo version information
td-shim HEAD
What TEE are you seeing the problem on
Tdx
Failing command and relevant log output
The text was updated successfully, but these errors were encountered: