Re: [PATCH v3 2/4] virt: tdx-guest: Calculate the Quote buffer size safely

From: Tony Lindgren

Date: Thu Sep 03 2026 - 02:06:56 EST


On Wed, Jul 29, 2026 at 05:29:32AM -0700, Peter Fang wrote:
> struct tdx_quote_buf has a trailing flexible array member.
> struct_size_t() calculates the size of this kind of struct safely. It
> handles overflow, which is an important property since the Quote size
> comes from the host.
>
> Use it in place of the fixed length limit.

Reviewed-by: Tony Lindgren <tony.lindgren@xxxxxxxxxxxxxxx>