projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e18ed26
)
linux-user: Make sure initial brk(0) is page-aligned
author
Andreas Schwab
<schwab@suse.de>
Thu, 6 Jul 2023 11:34:19 +0000
(13:34 +0200)
committer
Richard Henderson
<richard.henderson@linaro.org>
Sat, 15 Jul 2023 07:02:32 +0000
(08:02 +0100)
Fixes: 86f04735ac ("linux-user: Fix brk() to release pages")
Signed-off-by: Andreas Schwab <schwab@suse.de>
Message-Id: <mvmpm55qnno.fsf@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/syscall.c
patch
|
blob
|
history
diff --git
a/linux-user/syscall.c
b/linux-user/syscall.c
index b78eb686d8bc29e8541be29532bdea020504e11d..02d3b6c90a2488bb42ad306fa0dd28da1d02a455 100644
(file)
--- a/
linux-user/syscall.c
+++ b/
linux-user/syscall.c
@@
-806,7
+806,7
@@
static abi_ulong brk_page;
void target_set_brk(abi_ulong new_brk)
{
- target_brk =
new_brk
;
+ target_brk =
TARGET_PAGE_ALIGN(new_brk)
;
brk_page = HOST_PAGE_ALIGN(target_brk);
}