commit | 1d6a821277aaa0cdd666278aaff93298df313d41 | [log] [tgz] |
---|---|---|
author | Marc Zyngier <marc.zyngier@arm.com> | Mon Feb 15 17:04:04 2016 +0000 |
committer | Marc Zyngier <marc.zyngier@arm.com> | Wed Feb 24 11:53:09 2016 +0000 |
tree | 1e2326fcf2543367d7b7b47166eb2191224940e2 | |
parent | 236cf17c2502007a9d2dda3c39fb0d9a6bd03cc2 [diff] |
arm/arm64: KVM: Feed initialized memory to MMIO accesses On an MMIO access, we always copy the on-stack buffer info the shared "run" structure, even if this is a read access. This ends up leaking up to 8 bytes of uninitialized memory into userspace, depending on the size of the access. An obvious fix for this one is to only perform the copy if this is an actual write. Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>