xenoprof: clear buffer intended to be shared with guests
authorJan Beulich <jbeulich@suse.com>
Tue, 14 Apr 2020 13:01:34 +0000 (15:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Apr 2020 13:01:34 +0000 (15:01 +0200)
commit06a5a277c7262d7ca473a8eee3cdce3e2790186e
tree39f6095cdf3633eb9a91d5ac1b2116682890f72b
parentaffb032b9b2624b67ffc7fb246a915dd08074b3f
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>
master commit: 0763a7ebfcdad66cf9e5475a1301eefb29bae9ed
master date: 2020-04-14 14:32:33 +0200
xen/common/xenoprof.c