target-ppc: Confirm That .bss Pages Are Valid
commitf46e9a0b9911fcfbc13f85f3a8808067990a0f5c
authorTom Musta <tommusta@gmail.com>
Thu, 29 May 2014 14:12:23 +0000 (29 09:12 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:40 +0000 (16 13:24 +0200)
treefdd6216ff10318759f83514714f7fd84d0f90205
parent5b274ed74d21929c5ec399b32f47ad46105b3721
target-ppc: Confirm That .bss Pages Are Valid

The existing code does a check to ensure that a .bss region is properly
mmap'd.  When additional mmap is required, the (guest) pages are also
validated.  However, this code has a bug: when host page size is larger
than target page size, it is possible for the .bss pages to already be
(host) mapped but the guest .bss pages may not be valid.

The check to mmap additional space is separated from the flagging of the
target (guest) pages, thus ensuring that both aspects are done properly.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
linux-user/elfload.c