STRUCT REPORTMAC(9)
π§ STRUCT REPORTMAC (9) β the kernel API manual, bestie edition
ok so real talk, this is struct reportmac from the Kernel API Manual, and it's basically the guest report data for TDX β plus the MAC and the TEE hashes. it's giving "receipt but cryptographic". π
β¨ NAME β¨
struct reportmac β TDX guest report data, MAC and TEE hashes.
like, the whole package: the report, the MAC, the hashes. all of it. π
β¨ SYNOPSIS β¨
struct reportmac {
struct tdreport_type type;
__u8 reserved1[12];
__u8 cpu_svn[16];
__u8 tee_tcb_info_hash[48];
__u8 tee_td_info_hash[48];
__u8 reportdata[64];
__u8 reserved2[32];
__u8 mac[32];
};
look at her. iconic layout. every byte accounted for. no notes. β¨
β¨ Members β¨
typeβ the TDREPORT type header. the main character of the header, fr fr. πreserved1β reserved for future extension. it's saving a seat for somebody. π«Άcpu_svnβ CPU security version. the CPU's own vibe check. πtee_tcb_info_hashβ SHA384 hash of TEE TCB INFO. literally spelled out for you, no cap.tee_td_info_hashβ SHA384 hash of TDINFO_STRUCT. same energy, different struct. π¦reportdataβ user defined unique data passed inTDG.MR.REPORTrequest. this one's yours, bestie, you bring the data. πΈreserved2β reserved for future extension. second reserved block, still reserving, still humble. πmacβ CPU MAC ID. yes it's 32 bytes. yes it matters. π₯
β¨ Description β¨
ok so here's the tea: this thing is MAC-protected, and it contains hashes of the remainder of the report structure along with user provided report data.
and if you want the full lore? More details can be found in TDX v1.0 Module specification, sec titled "REPORTMACSTRUCT". go read the source, it's giving required reading. π
β¨ SEE ALSO β¨
- Kernel file
./tools/testing/selftests/tdx/tdx_guest_test.c struct tdreport_type(9)struct td_info(9)
reminder bestie: that struct is MAC-protected, so don't go messing with it unless you actually know what you're doing. this is not a drill. π
π that's the whole page π β brought to you by ./tools/testing/selftests/tdx, dated October 2026. mwah, go slay your TDX reports. πππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms