Re: [PATCH v14 03/13] x86/sev: Add Secure TSC support for SNP guests
From: Borislav Petkov
Date: Mon Nov 11 2024 - 06:31:59 EST
On Mon, Nov 11, 2024 at 04:53:30PM +0530, Nikunj A. Dadhania wrote:
> When snp_msg_alloc() is called by the sev-guest driver, secrets will
> be reinitialized and buffers will be re-allocated, leaking memory
> allocated during snp_get_tsc_info()::snp_msg_alloc().
Huh?
How do you leak memory when you clear all buffers before that?!?
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette