summary refs log tree commit diff stats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2018-07-14 21:35:53 +0200
committerLaurent Vivier <laurent@vivier.eu>2018-07-15 16:01:31 +0200
commitdc18baaef36d95e5a7b4fbc60daff3d92afe737c (patch)
treeac3fd3863cbe6848c5cfd1ac599e6a790a626295 /linux-user/syscall.c
parentaf8ab2bf223e1e4406108708b47476ef0d148a52 (diff)
downloadfocaccia-qemu-dc18baaef36d95e5a7b4fbc60daff3d92afe737c.tar.gz
focaccia-qemu-dc18baaef36d95e5a7b4fbc60daff3d92afe737c.zip
linux-user: fix mmap_find_vma_reserved()
The value given by mmap_find_vma_reserved() is used with mmap(),
so it is needed to be aligned with the host page size.

Since commit 18e80c55bb, reserved_va is only aligned to TARGET_PAGE_SIZE,
and it works well if this size is greater or equal to the host page size.

But ppc64 hosts have 64kB page size and when we start a 4kiB page size
guest (like i386), it fails when it tries to mmap the stack:

    mmap stack: Invalid argument

Fixes: 18e80c55bb (linux-user: Tidy and enforce reserved_va initialization)
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20180714193553.30846-1-laurent@vivier.eu>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions