x86/traps: fix an off-by-one error
authorHongyan Xia <hongyxia@amazon.com>
Tue, 5 May 2020 14:17:35 +0000 (15:17 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 5 May 2020 15:13:44 +0000 (16:13 +0100)
commit2e3d87cc734a895ef5b486926274a178836b67a9
tree1bd0af373c97f0338232124d925d3f8e3710f6a3
parentcdc3b1f26f80b57b28fb94cb4bf26f79a3cc2765
x86/traps: fix an off-by-one error

stack++ can go into the next page and unmap_domain_page() will unmap the
wrong one, causing mapcache and memory corruption. Fix.

Signed-off-by: Hongyan Xia <hongyxia@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/traps.c