Re: [PATCH v2] mshv_vtl: clear hypercall output before copyout

From: Wei Liu

Date: Wed Jul 22 2026 - 18:07:40 EST


On Thu, Jun 25, 2026 at 08:13:14PM +0200, Yousef Alhouseen wrote:
> mshv_vtl_hvcall_call() copies output_size bytes to userspace.
>
> The output page is freshly allocated. Userspace chooses the copyout length.
>
> If the hypercall writes less, the tail can contain stale page data.
>
> Clear the copied range before issuing the hypercall.
>
> Also check both bounce page allocations before either page is used.
>
> Signed-off-by: Yousef Alhouseen <alhouseenyousef@xxxxxxxxx>

Applied. Thanks.