arm_cca_report_new(9)
β¨ arm_cca_report_new(9) β¨
okay so this is a page straight out of the Kernel API Manual and bestie, it's giving "secret handshake with the hardware" energy π β let's get into it.
π NAME π
arm_cca_report_new β generate a new attestation token, periodt.
πΈ SYNOPSIS πΈ
int arm_cca_report_new (struct tsm_report *report , void *data );
π¦ ARGUMENTS π¦
reportβ pointer to the TSM report context information. literally the whole report vibe lives here.dataβ pointer to the context specific data for this module. this is the module's own little stash of info.
π DESCRIPTION π
So what it does: it initialises the attestation token generation using the challenge data that you passed in through the TSM descriptor. Then it allocates memory for the attestation token, and retrieves that attestation token on the same CPU where the token generation was initialised. no cap, same CPU, that's the rule π
About that challenge data β it must be at least 32 bytes and no more than 64 bytes. And if you hand over less than 64 bytes, it gets zero padded up to 64 bytes. so don't stress about hitting exactly 64, it'll top you off π«Ά
π₯ RETURN π₯
0β attestation token generated successfully. slay, we ate π-EINVALβ a parameter was not valid. one of your args said something unhinged π-ENOMEMβ out of memory. the RAM said "not today" π-EFAULTβ failed to get IPA for memory page(s). the memory page(s) ghosted us π
π SEE ALSO π
- Kernel file
./drivers/virt/coco/arm-cca-guest/arm-cca-guest.cstructarm_cca_token_info(9) arm_cca_attestation_continue(9)arm_cca_guest_init(9)arm_cca_guest_exit(9)
k that's the whole page bestie, go be iconic with it π§ββοΈ this one lives in ./drivers/virt/coco/arm-cca-guest, dated October 2026 β mwah, xoxo π
π¦ 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