diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-04-18 16:34:24 +0100 |
---|---|---|
committer | Riku Voipio <riku.voipio@iki.fi> | 2011-06-21 20:29:01 +0300 |
commit | 00faf08c951fcc351467faac5697307a86edb077 (patch) | |
tree | 3a85f8adb1b674999861b2cee5ff658e2d41d86b /m68k-semi.c | |
parent | f3ed1f5d476bfc18c4b2e27bf2386f54c98561f1 (diff) | |
download | qemu-00faf08c951fcc351467faac5697307a86edb077.zip qemu-00faf08c951fcc351467faac5697307a86edb077.tar.gz qemu-00faf08c951fcc351467faac5697307a86edb077.tar.bz2 |
linux-user: Don't use MAP_FIXED in do_brk()
Since mmap() with MAP_FIXED will map over the top of existing mappings,
it's a bad idea to use it to implement brk(), because brk() with a
large size is likely to overwrite important things like qemu itself
or the host libc. So we drop MAP_FIXED and handle "mapped but at
different address" as an error case instead.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Diffstat (limited to 'm68k-semi.c')
0 files changed, 0 insertions, 0 deletions