mm: scrub pages returned back to heap if MEMF_no_scrub is set
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 19 Sep 2017 15:47:47 +0000 (17:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 19 Sep 2017 15:47:47 +0000 (17:47 +0200)
commit7d190bdde9fd070b4b98bad33a1f68e3b02952c5
treee954576cf5f71ca736d93d449e14cf0bf7669b01
parentcd02f96d54813139e14e2847566d744358b55c1c
mm: scrub pages returned back to heap if MEMF_no_scrub is set

Set free_heap_pages()'s need_scrub to true if alloc_domheap_pages()
returns pages back to heap as result of assign_pages() error when those
pages were requested with MEMF_no_scrub flag.

We need to do this because there is a possibility that
alloc_heap_pages() might clear buddy's PGC_need_scrubs flag without
actually clearing the page.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/page_alloc.c