Re: [PATCH v3 13/26] x86/virt/seamldr: Allocate and populate a module update request
From: Xu Yilun
Date: Sun Feb 01 2026 - 22:27:43 EST
> +static struct seamldr_params *init_seamldr_params(const u8 *data, u32 size)
> +{
> + const struct tdx_blob *blob = (const void *)data;
> + int module_size, sig_size;
> + const void *sig, *module;
You need to firstly check if size is big enough for the header before
offset into it.
if (size < sizeof(struct tdx_blob))
return XXX;