]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: i8259: return initialized data on invalid-size read
authorPetr Matousek <pmatouse@redhat.com>
Wed, 11 Mar 2015 11:16:09 +0000 (12:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 30 Mar 2015 14:40:07 +0000 (16:40 +0200)
commitfe58273dfc9d87b548a8e76a8b2d20f9d0fc25fc
treefa2ca1d0b2df5ac8e31a1bc1c47be2673cce15eb
parent59748ee960d49bca74299c63b35db26a1601d27b
kvm: x86: i8259: return initialized data on invalid-size read

If data is read from PIC with invalid access size, the return data stays
uninitialized even though success is returned.

Fix this by always initializing the data.

Signed-off-by: Petr Matousek <pmatouse@redhat.com>
Reported-by: Nadav Amit <nadav.amit@gmail.com>
Message-Id: <20150311111609.GG8544@dhcp-25-225.brq.redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/i8259.c