xenoprof: clear buffer intended to be shared with guests
authorJan Beulich <jbeulich@suse.com>
Tue, 14 Apr 2020 12:32:33 +0000 (14:32 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Apr 2020 12:32:33 +0000 (14:32 +0200)
commit0763a7ebfcdad66cf9e5475a1301eefb29bae9ed
tree8b98b7961f4235a5950ff8c3dadd051788f0e38c
parent0dbc112e727f6c17f306c864950bdf83dece5cd5
xenoprof: clear buffer intended to be shared with guests

alloc_xenheap_pages() making use of MEMF_no_scrub is fine for Xen
internally used allocations, but buffers allocated to be shared with
(unpriviliged) guests need to be zapped of their prior content.

This is part of XSA-313.

Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wl@xen.org>
xen/common/xenoprof.c