aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2010-01-21 12:19:07 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2010-01-25 12:26:39 -0200
commit062d5e9b0d714f449b261bb522eadaaf6f00f438 (patch)
treecd0e9b7e7449a2b067614865998218fd4462e581 /kernel/sys.c
parentKVM: fix spurious interrupt with irqfd (diff)
downloadlinux-rng-062d5e9b0d714f449b261bb522eadaaf6f00f438.tar.xz
linux-rng-062d5e9b0d714f449b261bb522eadaaf6f00f438.zip
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>
Diffstat (limited to 'kernel/sys.c')
0 files changed, 0 insertions, 0 deletions