RE: [RFC RFT PATCH 3/4] hv_nstvsc: Don't free decrypted memory

2024-03-01 Thread Michael Kelley
From: Rick Edgecombe Sent: Wednesday, February 21, 2024 6:10 PM > "Subject:" prefix should be hv_netvsc: > On TDX it is possible for the untrusted host to cause Same comment about TDX vs. CoCo VM. > set_memory_encrypted() or set_memory_decrypted() to fail such that an > error is returned

[RFC RFT PATCH 3/4] hv_nstvsc: Don't free decrypted memory

2024-02-21 Thread Rick Edgecombe
On TDX it is possible for the untrusted host to cause set_memory_encrypted() or 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,