From 2de9dec23d0efd9aeb13f73094bc11efe6f40aeb Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 7 Nov 2006 09:35:57 +0000 Subject: [PATCH] [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 --- xen/arch/x86/hvm/hvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- 2.30.2