aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/sys_string.h
diff options
context:
space:
mode:
authorIan Jackson <ian.jackson@eu.citrix.com>2013-06-14 16:43:19 +0100
committerIan Jackson <Ian.Jackson@eu.citrix.com>2013-06-14 16:43:19 +0100
commit052a689aa526ca51fd70528d4b0f83dfb2de99c1 (patch)
treecd90aaf8b7cea6212b2cb118698176f819e3786d /tools/lib/sys_string.h
parent8dc90d163650ce8aa36ae0b46debab83cc61edb6 (diff)
downloadxen-052a689aa526ca51fd70528d4b0f83dfb2de99c1.tar.gz
xen-052a689aa526ca51fd70528d4b0f83dfb2de99c1.tar.bz2
xen-052a689aa526ca51fd70528d4b0f83dfb2de99c1.zip
libxc: range checks in xc_dom_p2m_host and _guest
These functions take guest pfns and look them up in the p2m. They did no range checking. However, some callers, notably xc_dom_boot.c:setup_hypercall_page want to pass untrusted guest-supplied value(s). It is most convenient to detect this here and return INVALID_MFN. This is part of the fix to a security issue, XSA-55. Changes from Xen 4.2 version of this patch: * 4.2 lacks dom->rambase_pfn, so don't add/subtract/check it. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/lib/sys_string.h')
0 files changed, 0 insertions, 0 deletions