aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/xen/hypercall.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2019-04-19 12:37:38 +0100
committerMark Brown <broonie@kernel.org>2019-04-19 12:37:38 +0100
commita48dff1bc041d1d267e7ceff1bb4cf4185c3729b (patch)
tree0b3956a2dc9d6baa31fa0c8eab6e4845774c4214 /arch/x86/include/asm/xen/hypercall.h
parent642f61354ac697e2127c097101c33b70c4848c45 (diff)
parent8fd8f8d65bf56aaa80c7ae5eaf26afd586139683 (diff)
Merge branch 'linux-linaro-lsk-v4.14' into linux-linaro-lsk-v4.14-rtlinux-linaro-lsk-v4.14-rt
Diffstat (limited to 'arch/x86/include/asm/xen/hypercall.h')
-rw-r--r--arch/x86/include/asm/xen/hypercall.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/xen/hypercall.h b/arch/x86/include/asm/xen/hypercall.h
index bfd882617613..e7e625448008 100644
--- a/arch/x86/include/asm/xen/hypercall.h
+++ b/arch/x86/include/asm/xen/hypercall.h
@@ -217,6 +217,9 @@ privcmd_call(unsigned call,
__HYPERCALL_DECLS;
__HYPERCALL_5ARG(a1, a2, a3, a4, a5);
+ if (call >= PAGE_SIZE / sizeof(hypercall_page[0]))
+ return -EINVAL;
+
stac();
asm volatile(CALL_NOSPEC
: __HYPERCALL_5PARAM