diff options
author | Igor Mammedov <imammedo@redhat.com> | 2013-06-10 18:31:11 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-06-19 12:25:28 +0200 |
commit | 07868fc6aaf57847b0f3a3d53086b7556eb83f4a (patch) | |
tree | 34dbdf48308f67b1820a1a4cbf156a68c00dc5ef /arch/ia64 | |
parent | f8941fbe204fa2fb51e7acd8bfd0f51225fe03b4 (diff) |
x86: kvmclock: zero initialize pvclock shared memory area
kernel might hung in pvclock_clocksource_read() due to
uninitialized memory might contain odd version value in
following cycle:
do {
version = __pvclock_read_cycles(src, &ret, &flags);
} while ((src->version & 1) || version != src->version);
if secondary kvmclock is accessed before it's registered with kvm.
Clear garbage in pvclock shared memory area right after it's
allocated to avoid this issue.
Ref: https://bugzilla.kernel.org/show_bug.cgi?id=59521
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
[See BZ for analysis. We may want a different fix for 3.11, but
this is the safest for now - Paolo]
Cc: <stable@vger.kernel.org> # 3.8
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/ia64')
0 files changed, 0 insertions, 0 deletions