Paolo Bonzini f18c69cfc5 exec: avoid possible overwriting of mmaped area in qemu_ram_remap
It is not necessary to munmap an area before remapping it with MAP_FIXED;
if the memory region specified by addr and len overlaps pages of any
existing mapping, then the overlapped part of the existing mapping will
be discarded.

On the other hand, if QEMU does munmap the pages, there is a small
probability that another mmap sneaks in and catches the just-freed
portion of the address space.  In effect, munmap followed by
mmap(MAP_FIXED) is a use-after-free error, and Coverity flags it
as such.  Fix it.

Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-03-26 10:43:54 +01:00
2015-03-19 17:47:08 +00:00
2015-03-04 13:00:36 -05:00
2015-02-06 16:11:38 +00:00
2015-03-19 11:30:37 +03:00
2015-03-20 10:37:03 +00:00
2015-03-19 11:39:18 +03:00
2015-03-19 11:11:55 +03:00
2015-03-09 09:14:28 +00:00
2015-02-23 10:56:09 -05:00
2015-03-16 12:10:30 -04:00
2015-03-08 06:43:32 +00:00
2015-03-19 11:17:27 +03:00
2015-03-25 13:38:07 +01:00
2015-02-16 17:30:19 +01:00
2015-03-19 11:35:52 +03:00
2015-03-17 17:11:33 +00:00
2015-03-17 14:31:15 +01:00
2015-03-12 09:13:07 +00:00
2015-02-05 17:16:14 +01:00
2015-03-20 09:50:08 +00:00
2015-02-16 15:07:19 +00:00
2015-03-19 17:47:08 +00:00
2015-03-19 17:47:08 +00:00
2015-03-10 11:33:35 +01:00
2015-01-14 10:38:57 +01:00
2015-02-12 21:21:38 -08:00
2015-03-10 09:26:22 +01:00
2015-03-17 18:58:33 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%