From: kfraser@localhost.localdomain Date: Tue, 7 Nov 2006 09:35:57 +0000 (+0000) Subject: [HVM] MAke HVM hypercall table NR_hypercalls entries big. X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2de9dec23d0efd9aeb13f73094bc11efe6f40aeb;p=xen.git [HVM] MAke HVM hypercall table NR_hypercalls entries big. Otherwise a buggy/malicious HVM guest can cause us to read off the end of the table. Signed-off-by: George Dunlap --- diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index be4ef35ce6..51a0161f62 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -401,7 +401,7 @@ typedef unsigned long hvm_hypercall_t( #if defined(__i386__) -static hvm_hypercall_t *hvm_hypercall_table[] = { +static hvm_hypercall_t *hvm_hypercall_table[NR_hypercalls] = { HYPERCALL(memory_op), HYPERCALL(multicall), HYPERCALL(xen_version),