diff options
author | Prasad J Pandit <pjp@fedoraproject.org> | 2017-07-12 18:08:40 +0530 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2017-09-01 18:10:46 -0500 |
commit | 15d8f91446fe922ccabb20b7e4ab4b32d8f7b5a7 (patch) | |
tree | 9c5775d7e2804aed9d78d4d02554daed45dab1a7 /bitops.h | |
parent | f9c313f70f3c269e301a04c6ba1dd9a813589d7a (diff) | |
download | qemu-15d8f91446fe922ccabb20b7e4ab4b32d8f7b5a7.zip qemu-15d8f91446fe922ccabb20b7e4ab4b32d8f7b5a7.tar.gz qemu-15d8f91446fe922ccabb20b7e4ab4b32d8f7b5a7.tar.bz2 |
exec: use qemu_ram_ptr_length to access guest ram
When accessing guest's ram block during DMA operation, use
'qemu_ram_ptr_length' to get ram block pointer. It ensures
that DMA operation of given length is possible; And avoids
any OOB memory access situations.
Reported-by: Alex <broscutamaker@gmail.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-Id: <20170712123840.29328-1-ppandit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 04bf2526ce87f21b32c9acba1c5518708c243ad0)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'bitops.h')
0 files changed, 0 insertions, 0 deletions