Re: [PATCH v2 5/8] x86/xen/time: Clear xen_clock mapping later

From: Juergen Gross

Date: Wed Nov 11 2026 - 02:11:39 EST


On 16.10.26 19:06, Teddy Astie wrote:
The current logic has a corner case when both xen_save_time_memory_area()
and xen_restore_time_memory_area() fails. In this case, the mapping is never
cleared and kept with previous pvclock values (invalidating the comment
regarding VDSO_CLOCKMODE_PVCLOCK as the data may not have been zeroed).

Also convert the clear_page with a memset, there's no need to clear the
entire page when we only care about 64 bytes of it.

Fixes: 2229f70b5bbb ("x86/xen/time: setup vcpu 0 time info page")
Signed-off-by: Teddy Astie <teddy.astie@xxxxxxxxxx>
Reviewed-by: Juergen Gross <jgross@xxxxxxxx>


Juergen

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature