]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: fix emulation of /proc/self/maps
authorAlexander Graf <agraf@suse.de>
Tue, 1 May 2012 15:30:28 +0000 (16:30 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Thu, 3 May 2012 14:31:52 +0000 (17:31 +0300)
commit1a49ef2ad3c1c3c50e6aea348260412f98ea862d
tree07ed5e0f3c229bc6695e9960eeb4b55aca09b8e2
parent209c48491835db84ab728f93209c00954c9e4470
linux-user: fix emulation of /proc/self/maps

Improve the emulation of /proc/self/maps by reading the underlying
host maps file and passing lines through with addresses adjusted
to be guest addresses. This is necessary to avoid false triggers
of the glibc check that a format string containing '%n' is not in
writable memory. (For an example see the bug reported in
https://bugs.launchpad.net/qemu-linaro/+bug/947888 where gpg aborts.)

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c