
The fix for the Intel Trust Domain Extensions (TDX) handling with confidential computing (CoCo) VMs is around the unrecoverable error handling to not potentially leak decrypted memory. The patch explains:
"In CoCo VMs it is possible for the untrusted host to cause set_memory_decrypted() to fail such that an error is returned and the resulting memory is shared. Callers need to take care to handle these errors to avoid returning decrypted (shared) memory to the page allocator, which could lead to functional or security issues.
Leak the decrypted memory when set_memory_decrypted() fails, and don't need to print an error since set_memory_decrypted() will call WARN_ONCE()."
This fix for the TDX CoCo guest code is just a one-liner to avoid calling free_pages_exact() and to just return instead.
These Intel TDX and FRED fixes for this week's Linux 6.13-rc5 kernel can be found via this pull request that should be merged to mainline in the coming hours. Both fixes are also marked for back-porting to the Linux stable kernel branches so in the coming days they should also work their way to new Linux LTS/stable point releases.