]> xenbits.xensource.com Git - xen.git/commit
gnttab/ARM: don't corrupt shared GFN array
authorJan Beulich <jbeulich@suse.com>
Tue, 27 Feb 2018 13:32:14 +0000 (14:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Feb 2018 13:32:14 +0000 (14:32 +0100)
commit640691d565294457b29d2e67f37a4565cd818f98
tree03d90d2fdf0260a3a953d76d4fb90a5cb629ea71
parent69dcb65120a960822a3922e1e406f78dfe416917
gnttab/ARM: don't corrupt shared GFN array

... by writing status GFNs to it. Introduce a second array instead.
Also implement gnttab_status_gmfn() properly now that the information is
suitably being tracked.

While touching it anyway, remove a misguided (but luckily benign) upper
bound check from gnttab_shared_gmfn(): We should never access beyond the
bounds of that array.

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: 9d2f8f9c65d4da35437f50ed9e812a2c5ab313e2
master date: 2018-02-27 14:04:44 +0100
xen/arch/arm/domain.c
xen/arch/arm/mm.c
xen/include/asm-arm/domain.h
xen/include/asm-arm/grant_table.h