grant_table: fix GNTTABOP_cache_flush handling
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 12 Sep 2017 12:44:11 +0000 (14:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Sep 2017 12:44:11 +0000 (14:44 +0200)
commitc3d830b244998b3686e2eb64db95996be5eb5e5c
treef09179ec40ae6854f72709db0b55d8b5696e7fac
parent2fece35303529395bfea6b03d2268380ef682c93
grant_table: fix GNTTABOP_cache_flush handling

Don't fall over a NULL grant_table pointer when the owner of the domain
is a system domain (DOMID_{XEN,IO} etc).

This is CVE-2017-14318 / XSA-232.

Reported-by: Matthew Daley <mattd@bugfuzz.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/grant_table.c