]> xenbits.xensource.com Git - xen.git/commit
gnttab: don't blindly free status pages upon version change
authorJan Beulich <jbeulich@suse.com>
Tue, 27 Feb 2018 13:32:32 +0000 (14:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Feb 2018 13:32:32 +0000 (14:32 +0100)
commitc15b8dc36badba7de3ce78d3a40870466cb2d95c
tree2bb2af5012e4869ebf12c02434fb43e3f2a3b686
parent640691d565294457b29d2e67f37a4565cd818f98
gnttab: don't blindly free status pages upon version change

There may still be active mappings, which would trigger the respective
BUG_ON(). Split the loop into one dealing with the page attributes and
the second (when the first fully passed) freeing the pages. Return an
error if any pages still have pending references.

This is part of XSA-255.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 38bfcc165dda5f4284d7c218b91df9e144ddd88d
master date: 2018-02-27 14:07:12 +0100
xen/arch/arm/mm.c
xen/common/grant_table.c
xen/include/asm-arm/grant_table.h
xen/include/asm-x86/grant_table.h