From: Andrew Honig Date: Wed, 18 Nov 2015 22:50:23 +0000 (-0800) Subject: KVM: x86: Reload pit counters for all channels when restoring state X-Git-Tag: v3.2.76~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08b8d1a6ccdefd3d517d04c472b7f42f51b3059b;p=pandora-kernel.git KVM: x86: Reload pit counters for all channels when restoring state commit 0185604c2d82c560dab2f2933a18f797e74ab5a8 upstream. Currently if userspace restores the pit counters with a count of 0 on channels 1 or 2 and the guest attempts to read the count on those channels, then KVM will perform a mod of 0 and crash. This will ensure that 0 values are converted to 65536 as per the spec. This is CVE-2015-7513. Signed-off-by: Andy Honig Signed-off-by: Paolo Bonzini [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed