linux/arch/s390/kvm
Christian Borntraeger 062d5e9b0d KVM: S390: fix potential array overrun in intercept handling
kvm_handle_sie_intercept uses a jump table to get the intercept handler
for a SIE intercept. Static code analysis revealed a potential problem:
the intercept_funcs jump table was defined to contain (0x48 >> 2) entries,
but we only checked for code > 0x48 which would cause an off-by-one
array overflow if code == 0x48.

Use the compiler and ARRAY_SIZE to automatically set the limits.

Cc: stable@kernel.org
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-01-25 12:26:39 -02:00
..
diag.c
gaccess.h
intercept.c KVM: S390: fix potential array overrun in intercept handling 2010-01-25 12:26:39 -02:00
interrupt.c
Kconfig [S390] Improve address space mode selection. 2009-12-07 12:51:33 +01:00
kvm-s390.c
kvm-s390.h
Makefile
priv.c
sie64a.S
sigp.c