direct-io.hg

changeset 12261:9d981f3480b1

[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 <gdunlap@xensource.com>
author kfraser@localhost.localdomain
date Tue Nov 07 09:35:57 2006 +0000 (2006-11-07)
parents 182678e5095b
children ac2097d71e06
files xen/arch/x86/hvm/hvm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/hvm.c	Tue Nov 07 09:32:02 2006 +0000
     1.2 +++ b/xen/arch/x86/hvm/hvm.c	Tue Nov 07 09:35:57 2006 +0000
     1.3 @@ -401,7 +401,7 @@ typedef unsigned long hvm_hypercall_t(
     1.4  
     1.5  #if defined(__i386__)
     1.6  
     1.7 -static hvm_hypercall_t *hvm_hypercall_table[] = {
     1.8 +static hvm_hypercall_t *hvm_hypercall_table[NR_hypercalls] = {
     1.9      HYPERCALL(memory_op),
    1.10      HYPERCALL(multicall),
    1.11      HYPERCALL(xen_version),