From: Nadav Amit Date: Sun, 2 Nov 2014 09:54:47 +0000 (+0200) Subject: KVM: x86: Fix uninitialized op->type for some immediate values X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~127^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d29b9d7ed76c0b961603ca692b8a562556a20212;p=pandora-kernel.git KVM: x86: Fix uninitialized op->type for some immediate values The emulator could reuse an op->type from a previous instruction for some immediate values. If it mistakenly considers the operands as memory operands, it will performs a memory read and overwrite op->val. Consider for instance the ROR instruction - src2 (the number of times) would be read from memory instead of being used as immediate. Mark every immediate operand as such to avoid this problem. Cc: stable@vger.kernel.org Fixes: c44b4c6ab80eef3a9c52c7b3f0c632942e6489aa Signed-off-by: Nadav Amit Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed