Re: [PATCH 1/2] libxl/ACPI: don't hard-code guest page size

2024-11-25 Thread Anthony PERARD
On Mon, Nov 25, 2024 at 04:15:28PM +0100, Jan Beulich wrote: > We have libxl_ctxt.page_size for this purpose; use it to eliminate a > latent buffer overrun. The 4096 here might actually refer to the size used to allocate `config.infop`, which is `libxl_ctxt.page_size`. So I don't if the explanatio

[PATCH 1/2] libxl/ACPI: don't hard-code guest page size

2024-11-25 Thread Jan Beulich
We have libxl_ctxt.page_size for this purpose; use it to eliminate a latent buffer overrun. Fixes: 14c0d328da2b ("libxl/acpi: Build ACPI tables for HVMlite guests") Signed-off-by: Jan Beulich --- Yet better might be to limit the size to what's actually used (libacpi's struct acpi_info). That woul