diff options
author | 2014-11-02 11:54:47 +0200 | |
---|---|---|
committer | 2014-11-05 12:36:58 +0100 | |
commit | d29b9d7ed76c0b961603ca692b8a562556a20212 (patch) | |
tree | 73703f51dcce80a433eb6e628f59258896e2319b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'kvm-s390-20141103' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into kvm-master (diff) | |
download | wireguard-linux-d29b9d7ed76c0b961603ca692b8a562556a20212.tar.xz wireguard-linux-d29b9d7ed76c0b961603ca692b8a562556a20212.zip |
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 <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions